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

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -