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?
press_keycode 84
http://developer.android.com/reference/android/view/KeyEvent.html
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.
Hi,
Try with the following, Hope this helps..adb -s input keyevent KEYCODE_SEARCH
Thanks,BHaskar.
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
Check https://discuss.appium.io/t/unable-to-execute-search-appium-ruby-1-9-0/23622/17