Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否能实现long_press() keycode 的功能 #889

Closed
zzm-note opened this issue May 10, 2023 · 1 comment
Closed

是否能实现long_press() keycode 的功能 #889

zzm-note opened this issue May 10, 2023 · 1 comment

Comments

@zzm-note
Copy link

  • 手机型号:No
  • uiautomator2的版本号:2.16.23
  • 手机截图:No
  • 相关日志(Python控制台错误信息, adb logcat完整信息, atxagent.log日志)
  • 最好能附上可能复现问题的代码。

背景:Android TV上模拟遥控器长按OK键,无法实现。而且该元素用long_click()是无效的。

@codeskyblue
Copy link
Member

可以先用 adb shell input keyevent --longpress VOLUME_UP 代替

codeskyblue added a commit that referenced this issue May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants