Open BorisKenne opened 5 years ago
Does either UIAutomation.injectInputEvent(KeyEvent.VOLUME_DOWN) or Instrumentation.sendKeySync((KeyEvent.VOLUME_DOWN) work for you?
Hello Mr @brettchabot, Neither work for me! UiAutomation does'nt show me the "injectInputEvent".same think for Instrumentation with is sendKeySync. Thank you for your help! Do you have any other solution?
Hi, I think this can be helpful: https://github.com/fireicewolf/EasyUIautomator/blob/master/app/src/main/java/com/dukeg/easyuiautomator/KeyEvent.java
Hello everyone, I really want to know how to click on the volume hardware button by using uiAutomator. thank you!