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

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -