Press Enter button Keyboard

This little code is used to simulate the click of the input Keyboard.

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

hope it will be a helping for some of you :blush:

Don’t forget to add "import org.openqa.selenium.Keys as Keys" to the list of imports at the top of your TC.

1 Like

Yeah of courses
Thank you !!!