sendKeys Method, Keyboard Enter Press

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)
Or any variables.

I search at the oficial documentation aswell and found nothing about Enter Key.[Mobile]+Send+Keys

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


yeah i am facing the same issue.

yeah i am facing the same issue

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

Hey Tanaya,

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

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. :frowning:

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

AndroidDriver<?> driver = MobileDriverFactory.getDriver()
1 Like

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

try it.