# sendKeys Method, Keyboard Enter Press

**URL:** <https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [January 5, 2018, 5:03pm UTC](https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744 "2018-01-05T17:03:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davi\_Abrantes](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@Davi\_Abrantes](https://forum.katalon.com/u/Davi_Abrantes)\
**Post date:** [January 5, 2018, 5:03pm UTC](https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744/1 "2018-01-05T17:03:24Z")

</div>

Hey guys!

I’m new to Katalon and I’ve started coding a couple Mobile scripts.  
But I’m having a problem with sendKeys method. It just doesn’t work.

There’s a search field in the app and I need to press Keyboard Enter key to advance to the search results. But none of my tries actually worked.

I’ve used the manual recording and he generated me this line:

_Mobile.sendKeys(findTestObject('POC/android.widget.EditText0 - myapp), Keys.chord(Keys.ENTER))_

which doesn’t work.

These won’t work either:

\_Mobile.sendKeys(findTestObject('POC/android.widget.EditText0 - myapp), Keys.ENTER)  
\_  
\_Mobile.sendKeys(Keys.ENTER)  
\_  
Or any variables.

I search at the oficial documentation aswell and found nothing about Enter Key.  
[https://docs.katalon.com/display/Documentation/[Mobile]+Send+Keys](https://docs.katalon.com/display/Documentation/%5BMobile%5D+Send+Keys)

Does this method works for any of you? Can you give me a tip?

Thanks!

---

<div class="post-metadata">

**Author:** ![hamza\_farooq](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@hamza\_farooq](https://forum.katalon.com/u/hamza_farooq)\
**Post date:** [January 10, 2018, 11:03am UTC](https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744/2 "2018-01-10T11:03:36Z")

</div>

yeah i am facing the same issue.

---

<div class="post-metadata">

**Author:** ![hamza\_farooq](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@hamza\_farooq](https://forum.katalon.com/u/hamza_farooq)\
**Post date:** [January 10, 2018, 11:50am UTC](https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744/3 "2018-01-10T11:50:20Z")

</div>

yeah i am facing the same issue

---

<div class="post-metadata">

**Author:** ![Tanaya\_Jena](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@Tanaya\_Jena](https://forum.katalon.com/u/Tanaya_Jena)\
**Post date:** [January 12, 2018, 5:19am UTC](https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744/4 "2018-01-12T05:19:45Z")

</div>

Please try with set text key word in your script .i hope it will work for you

---

<div class="post-metadata">

**Author:** ![Dipak1](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Dipak1](https://forum.katalon.com/u/Dipak1)\
**Post date:** [April 13, 2018, 11:35am UTC](https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744/5 "2018-04-13T11:35:48Z")

</div>

Hey Tanaya,

Can you give exact statement to hit enter/search using set text method from android app? As I am also stuck there.

---

<div class="post-metadata">

**Author:** ![Dipak1](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@Dipak1](https://forum.katalon.com/u/Dipak1)\
**Post date:** [April 13, 2018, 11:42am UTC](https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744/6 "2018-04-13T11:42:26Z")

</div>

Actually it hits enter key into textbox only but search action is not performed. and the inbuilt given key chord is for Hard Keyboard not for Android soft keypad. ☹

---

<div class="post-metadata">

**Author:** ![Chris\_Trevarthen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/chris_trevarthen/32/358_2.png) [@Chris\_Trevarthen](https://forum.katalon.com/u/Chris_Trevarthen)\
**Post date:** [May 31, 2018, 8:09pm UTC](https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744/7 "2018-05-31T20:09:00Z")

</div>

I’ve been able to access to Android keyboard ENTER key using the following:

```auto
AndroidDriver<?> driver = MobileDriverFactory.getDriver()
driver.pressKeyCode(AndroidKeyCode.ENTER)

```

---

<div class="post-metadata">

**Author:** ![sanket\_gharat](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@sanket\_gharat](https://forum.katalon.com/u/sanket_gharat)\
**Post date:** [June 1, 2018, 4:45am UTC](https://forum.katalon.com/t/sendkeys-method-keyboard-enter-press/8744/8 "2018-06-01T04:45:12Z")

</div>

hi,  
use Mobile.tapAtPosition(1075, 1900, FailureHandling.OPTIONAL)

try it.
