I am unable to click on search button on my keyboard.I have tried several keyevents but not yet successful.so anyone suggest please
have you tried this?
public static final int KEYCODE_SEARCH
Added in API level 1
Key code constant: Search key.
Constant Value: 84 (0x00000054)
Also, you can dig into appium lib for more infohttp://www.rubydoc.info/github/appium/ruby_lib/Appium/Device:press_keycode
hope it helpsEric
I have already tried this but unable to perform.
Try with the following, Hope this helps..adb -s input keyevent KEYCODE_SEARCH
same here, tried 84, but as I understand this is not what I’m looking for.
the possible thing is https://developer.android.com/reference/android/view/inputmethod/EditorInfo#IME_ACTION_SEARCH
but I have no idea how to use it instead of key events from here https://developer.android.com/reference/android/view/KeyEvent.html