Hi, i am currently trying to test keyboard shortcuts for a website. The shortcut should bei CONTROL + ‘<’. Somehow the Sendkeys Command:
WebUI.sendKeys(testObject, Keys.chord(Keys.CONTROL, ‘<’))
does not execute the shortcut. (Before executing i have clicked the testObject.)
Does anybody know why the shortcut is working when i do it manually and not when Katalon does the SendKeys?
Thank you for your help
1 Like
Hi there,
Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.
Thanks!
Instead of clicking on your TestObject, how about just putting focus on it and then let the shortcut do its thing:
WebUI.waitForElementVisible(findTestObject('...'), 10)
WebUI.verifyElementClickable(findTestObject('...'))
WebUI.focus(findTestObject('...'))
WebUI.sendKeys(findTestObject('...'), Keys.chord(Keys.CONTROL, '<'))