Unable to Click on Search Button of Android Keyboard

Hi Team,

Am having challenges to Enter some text and clicking on either enter or search button.

To enter the value and clicking on enter button tried below but didn’t help us

Enter data with element.sendkeys(“71111”+"\n")

Also tried t click on android keyboard search button but didn’t help.

1.((AndroidDeviceActionShortcuts) this.driver).pressKeyCode(AndroidKeyCode.KEYCODE_SEARCH);

Can some one help me on this.


Hi @ravikrishna,

I myself also experienced the same issue on Samsung Galaxy A5 (SM-A500F) such that the Search button on full keypad was not captured. Even manually specified KeyCode did not help.

I ended up downloading third party keyboard from Google Play - GO Keyboard.

Give it a try and it may solve your problem.

Thanks.

Try to send an ‘Enter’ key press:

C#

appium_Driver.Keyboard.SendKeys("{ENTER}");

In some cases the sending 'Enter’equals to press the Go/Search/Send/… in the device keyboard

Thanks for response will try and let you know status

Hi @ravikrishna,

As well as trying sending the “Enter” key as suggested by @mateoaqx, you can also try searching for the “Search” button in the Object Spy (first change “XPath Filter” to “Free Text Filter”). Sometimes the dump isn’t easy to navigate, but you may find the “Search” button/element by searching for it this way (try both uppercase and lowercase options).

Let us know when you have an update.
Regards,
Jonathan Aharon, Support Engineer
Experitest Ltd