# Unable to tap 'search' button on Android softKeyboard

**URL:** <https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598>\
**Category:** Issues/Bugs\
**Created:** [November 21, 2014, 10:49am UTC](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598 "2014-11-21T10:49:48Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![wangceshi2015](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/b9e5f3/32.png) [@wangceshi2015](https://discuss.appium.io/u/wangceshi2015)\
**Post date:** [May 15, 2018, 6:51am UTC](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598/21 "2018-05-15T06:51:18Z")

</div>

I’ve got the same problem,then tried it the way you’ve provided.  
And finally it worked out,wonderful！！！

---

<div class="post-metadata">

**Author:** ![shashank\_shekhar](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@shashank\_shekhar](https://discuss.appium.io/u/shashank_shekhar)\
**Post date:** [June 18, 2018, 1:21am UTC](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598/22 "2018-06-18T01:21:47Z")

</div>

Hi Praveen, I am in a similar issue currently where my mobile app search bar opens mobile softkeyboard with search.  
The above option you mentioned seems like a good way of solving my problem however I am not sure how to implement it.  
I have a class which extends to Helper Class which has all these methods I am writing for clicking mobile device back button,home button etc.  
DO I need to create the public boolean onEditorAction(TextView v, int actionId, KeyEvent event) methods in same class or is it an listener class which I need to create. Can you please send me the complete method code for my reference please.  
Thanks in advance.

Regards  
Shashank

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [June 19, 2018, 10:04am UTC](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598/23 "2018-06-19T10:04:38Z")

</div>

Try the solution from [https://github.com/appium/java-client/issues/916](https://github.com/appium/java-client/issues/916)

---

<div class="post-metadata">

**Author:** ![jarodl](https://discuss.appium.io/user_avatar/discuss.appium.io/jarodl/32/5500_2.png) [@jarodl](https://discuss.appium.io/u/jarodl)\
**Post date:** [May 16, 2019, 5:16pm UTC](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598/24 "2019-05-16T17:16:43Z")

</div>

This solution in JavaScript using wd worked for me:

`return driver.waitForElementById(<elementId>).type(<text to type>).click().execute( "mobile: performEditorAction", { "action": "search" } );`

This allowed me to find a text field, input some text, and submit a search command (same as clicking the search icon in the keyboard). Of course, you have to replace `<elementId>` and `<text to type>` with the proper values. See [http://appium.io/docs/en/commands/mobile-command/](http://appium.io/docs/en/commands/mobile-command/) for details on “mobile: performEditorAction”.

---

<div class="post-metadata">

**Author:** ![i\_m\_Sanguine](https://discuss.appium.io/user_avatar/discuss.appium.io/i_m_sanguine/32/5847_2.png) [@i\_m\_Sanguine](https://discuss.appium.io/u/i_m_Sanguine)\
**Post date:** [June 3, 2019, 6:52am UTC](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598/25 "2019-06-03T06:52:21Z")

</div>

can you help with a Python-client solution please?

---

<div class="post-metadata">

**Author:** ![i\_m\_Sanguine](https://discuss.appium.io/user_avatar/discuss.appium.io/i_m_sanguine/32/5847_2.png) [@i\_m\_Sanguine](https://discuss.appium.io/u/i_m_Sanguine)\
**Post date:** [June 3, 2019, 8:25am UTC](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598/26 "2019-06-03T08:25:36Z")

</div>

> [@jarodl](#):
>
> driver.waitForElementById(\<elementId\>).type(\<text to type\>).click().execute( “mobile: performEditorAction”, { “action”: “search” } )

How can I do this with Python? It has been blocker for me

---

<div class="post-metadata">

**Author:** ![i\_m\_Sanguine](https://discuss.appium.io/user_avatar/discuss.appium.io/i_m_sanguine/32/5847_2.png) [@i\_m\_Sanguine](https://discuss.appium.io/u/i_m_Sanguine)\
**Post date:** [June 3, 2019, 8:33am UTC](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598/27 "2019-06-03T08:33:45Z")

</div>

> [@praveentp009](#):
>
> OnEditorActionListener

This applies only to Java, any idea how this can be resolved in Python?

---

<div class="post-metadata">

**Author:** ![Areo\_Chou](https://discuss.appium.io/user_avatar/discuss.appium.io/areo_chou/32/6682_2.png) [@Areo\_Chou](https://discuss.appium.io/u/Areo_Chou)\
**Post date:** [November 12, 2019, 3:15am UTC](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598/28 "2019-11-12T03:15:04Z")

</div>

driver.execute\_script(“mobile:performEditorAction”,{‘action’:‘search’})  
This is absolutely working for me 🙂  
Hope it works for you.

[Previous page](https://discuss.appium.io/t/unable-to-tap-search-button-on-android-softkeyboard/1598.md?page=1)
