Supported keyboard actions
You can use specific keyboard actions in the functional test scripts for HTML applications that are run by using the Web UI Engine.
You can add the inputKeys navigation action to the test script and provide the keyboard strokes to the navigation actions. Also, you can use the combination of special keys such as SHIFT or CTRL along with other keys.
The list of supported navigation key values and their formats are as follows:
Key value | Key format |
---|---|
PgUp | {extPgUp} |
PgDn | {extPgDn} |
Home | {extHome} |
End | {extEnd} |
Left arrow key | {extLeft} |
Right arrow key | {extRight} |
Up arrow key | {extUp} |
Down arrow key | {extDown} |
F1 to F12 | {F1} ….{F12} |
Restriction: If the functional test script has an
input of the F12 key, then the default command mapped to the F12 key takes
precedence over the action expected in the browser window when you run the test
by using the Web UI Engine. You must reassign the key before you run such tests
with function keys in the script.
For more information, refer to How to change the playback hot keys.