android - How to simulate IME ACTION in an UiObject2 from UiAutomator? -
i have uiobject2 represents edittext:
uiobject2 objsearch = testhelper.findobjectbyid("textsearch"); i want simulate ime action of object programmatically. there no method in uiobject2 let me view , transform in edittext.
how can simulate ime action in objsearch?
i found solution:
device.pressenter(); where device uidevice.
Comments
Post a Comment