How to simulate ENTER Key Press in Katalon Studio?

I do it as the example and it’s works for me but maybe you are confusing to use the keyword “Send Keys” so I’m going to try to explain you step by step.

1.- Add a new “Web UI Keyword”
2.- Choose the keyword “Send Keys”
3.- Doubleclick on the object column and find the object that you want to send the key (they original value to your object is null)
4.- Doubleclick on the Input column. Katalon will show you a new modal with others columns.
5.- Change the value type “String” to “Keys”
6.- Doubleclick on the column value. Katalon will show you other modal and you can tap the keys directly to your keyboard or choose it/write it by yourself.

Or if you want you can copy and paste the next line to your script but you need to change the object value to a real object in your proyect.
WebUI.sendKeys(findTestObject(‘Object location’), Keys.chord(Keys.ENTER))

I hope this will help you and sorry for the bad english.

25 Likes