Federico Jimenez said:
replace @ with Keys.chord(Keys.CONTROL, Keys.ALT,‘2’)
In your case :
WebUI.setText(findTestObject(‘EXTERNAL/inputs/input_requestoremail’), ‘test’ +Keys.chord(Keys.CONTROL, Keys.ALT,‘2’) + ‘test.cz’
The suggested solution is not independent of the keyboard layout set on the executing system.
For instance, on a German keyboard layout you would need
Keys.chord(Keys.CONTROL, Keys.ALT, 'q')
On a French keyboard layout you would need
Keys.chord(Keys.CONTROL, Keys.ALT, '0')
and so on…
This will be a problem when you are going to execute tests on a remote host where you
- cannot set the keyboard layout to a specific one
- do not know the keyboard layout set on the remote system
The underlying problem has been addressed in a recent IEDriver release (see GitHub issue #4523). For a correct solution without (partially working) workarounds we have to wait for a Katalon release that includes the latest IEDriver release.