How to simulate enter button keyboard

Hello Everbody,

I need simulate the action of press enter button keyboard, I don’t found any command to do it, someone knows how do it?

Thanks

Hi, yes I tried it, but the page doesn’t work, so I used the Submit command and works :slight_smile:

Thanks for your help.

Try this:
WebUI.sendKeys(findTestObject(‘Your locator’), Keys.chord(Keys.ENTER))

1 Like

how to press enter if I don’t have spesific object, I just want to click Enter

1 Like

Hi,
How can I perform enter after typing some text in Search Box on Mobile device ?
If someone know please answer me
Thanks,

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

try it.

Hi,

pls, follow the steps on the video link here:

https://www.screencast.com/t/t67IyBjFE

c’ya

On Android, you can interact with the keyboard through:

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

Where AndroidKeyCode is an enum with all of the possible key entries.

Hello brother :smiling_face_with_three_hearts:
Thank you very much, i tried this code and my test of Enter button Keyboard is OK !