Is there any way to simulate keyevent on "OK" or "CANCEL" buttons of Android dialogue box using adb commands?
相关问题
- How to implement a Slider within an AlertDialog in
- adb shell: can't use the ESCAPE key
- Samsung Galaxy S adb driver details?
- USB Debugging Moverio on Mac
- Using latest material outlined buttons with alertd
相关文章
- ANdroid - Run APK file after edited using apktool
- windows 7 adb driver Samsung galaxy S3
- Adb install progress bar
- Error while executing adb command programmatically
- ZTE V9 not detected by ADB
- How can I enable/disable the Debug-mode on my Sams
- Alert Dialog Customization
- Extract database of an application from android de
One indirect way is:-
calculate OK button coordinates from the relative coordinates given in the xml file. Then do
Hope works.
Using AndroidViewClient/culebra you can simply do:
java -jar androidviewclient-2.3.25.jar culebra --verbose --verbose-comments --find-views-with-text=true --output=myscript.py
myscript.py
and addvc.findViewWithTextOrRaise('Cancel').touch()
at the end (you can delete the unnecessary finds too)