You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using uiautomator to explore an Android app programmatically ( org.liberty.android.fantastischmemo)
I am trying to perform a long click on a ListView to make a context menu visible, however it seems a click a list view item is performed instead. No context menu shows up and it moves to the next screen (which happens when clicking on a menu item) Here's the code I am using:
from uiautomator import Device
import sys
# get the target device
d = Device(sys.argv[1])
# check whether the resourceId exists
if d(resourceId=sys.argv[2]).exists:
d(resourceId=sys.argv[2]).long_click()
After the long click, the app transitions from
to
instead of
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
I am using uiautomator to explore an Android app programmatically ( org.liberty.android.fantastischmemo)
I am trying to perform a long click on a ListView to make a context menu visible, however it seems a click a list view item is performed instead. No context menu shows up and it moves to the next screen (which happens when clicking on a menu item) Here's the code I am using:
After the long click, the app transitions from
![image](https://user-images.githubusercontent.com/35702512/156711786-5eb73797-d6da-4045-9f67-08177ffe486b.png)
![image](https://user-images.githubusercontent.com/35702512/156711932-e25b340b-d2a1-46b2-952a-2c76b4fd9f0b.png)
to
instead of
![image](https://user-images.githubusercontent.com/35702512/156711891-3d132f72-41cc-468b-8a3e-9cb1682fc80d.png)
Thank you!
The text was updated successfully, but these errors were encountered: