Search on the default android keyboard does not work with Appium 1.10


#1

I have latest Appium 1.10 and i am trying to search for a text by entering the text and click on search button on the default keyboard.

I tried

((AndroidDriver) driver).pressKey(new KeyEvent(AndroidKey.SEARCH).
withFlag(KeyEventFlag.SOFT_KEYBOARD).
withFlag(KeyEventFlag.KEEP_TOUCH_MODE).
withFlag(KeyEventFlag.EDITOR_ACTION));

does not work for me, somebody has a working solution ?

#2

I tried this as well and does not work

((AndroidDriver) driver).pressKey(new KeyEvent(AndroidKey.ENTER).
withFlag(KeyEventFlag.SOFT_KEYBOARD).
withFlag(KeyEventFlag.KEEP_TOUCH_MODE).
withFlag(KeyEventFlag.EDITOR_ACTION));


#3

#4

Thanks @mykola-mokhnach : Its working as expected. Thanks a lot for your help on this.