I need to send a combination of key strokes in a test case. These keys below act as hotkeys and do things like open a pop up box, or open another window with some content. I can successfully send ones such as:
F1
WebUI.sendKeys(findTestObject(null), Keys.chord(Keys.F1))
Shift-F3
WebUI.sendKeys(findTestObject(null), Keys.chord(Keys.SHIFT, Keys.F3))
Shift-F4
WebUI.sendKeys(findTestObject(null), Keys.chord(Keys.SHIFT, Keys.F4))
Control-A
WebUI.sendKeys(findTestObject(‘Add Bill/Page_/input_Shipper_1’), Keys.chord(Keys.CONTROL, ‘a’))
When I try and use ALT in a combination with a letter, and set the letter as a string, it is not working…any suggestions?
ALT-E - Enters some default text into a field
WebUI.sendKeys(findTestObject(null), Keys.chord(Keys.ALT, ‘E’))
Alt-Q - Clears all the fields on the screen
WebUI.sendKeys(findTestObject(null), Keys.chord(Keys.ALT, ‘Q’))