I know we can use "adb shell input tap xcoord ycoord" to simulate touch event at coordinates (x, y) of the screen. In my case, I have a checkbox at those coordinates and I need it to be always enabled. So, my input command should execute only if it is not already enabled.
This app in foreground (on which my commands should execute) is not my application and there is no way for me to know/remember if the checkbox is checked or not.
Is there any way I can know if the checkbox is checked by some kind of sampling or so using adb shell commands so that I can run my script only if it is not already checked.
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire