Send Keys

Hello,

I am facing issue while working with sendkeys keyword:

WebUI.sendKeys(findTestObject(<>), Keys.chord(Keys.ENTER, Keys.CONTROL))

while running this statement, I am getting below error:

Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to send keys ‘’ to object

Are you using firefox?

If yes, can you try on google chrome browser?

I am using Chrome Browser only.

This is a known issue, and I have a feature request out there to fix it:

Kindly upvote this to give it some attention.

In the meantime, you should use pure selenium to do it. Please check this post for a workaround:

1 Like

How to Send Keys Ctrl + N to open a new tab from the current window.

Steps to be followed :
Log in to the application
Open new tab - ?
Navigate to URL

Kindly share your inputs and my code is as follows :

WebUI.openBrowser(’’)

WebUI.navigateToUrl(GlobalVariable.baseurl)

WebUI.click(findTestObject(‘Login Application/Login_Btn’))

WebUI.sendKeys(findTestObject(‘Login Application/userName’), GlobalVariable.username)

WebUI.sendKeys(findTestObject(‘Login Application/passWord’), GlobalVariable.passwd)

WebUI.click(findTestObject(‘Login Application/SignInbtn’))

'Press Ctrl+N to open new tab apps button ’
not_run: WebUI.sendKeys(findTestObject(‘Login Application/Apps button’), Keys.chord(Keys.CONTROL, ‘n’))

not_run: WebUI.sendKeys(Keys.chord(Keys.CONTROL, ‘n’))