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

在安卓真机上执行 keyevent( "volumeUp" ) 或 keyevent( "volumeDown" ) 无效 #1196

Open
xiaoCong2014 opened this issue Feb 8, 2024 · 0 comments

Comments

@xiaoCong2014
Copy link

反馈两个 BUG:
1, Android 平台的 加音量, 我用文档里写的 keyevent( "volumeUp" ) 无效, 也不报错, 我传入谷歌提供的 keyEvent 字符串才成功, 例如:
keyevent( "24" )
2, 同理, 减音量得用 keyevent( "25" )

而且我不知道官方文档里是否链接上谷歌提供的 keyEvent 字符串, 如果没有, 我建议链接上. 谷歌官方文档如下:
https://developer.android.com/reference/android/view/KeyEvent#KEYCODE_VOLUME_MUTE

设备: 红米手机 真机, 型号 K50 至尊版

airtestIDE 版本: 1.2.17
airtest 版本: 1.3.3.1
没用到 poco

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

1 participant