Commands that support Keyboard actions
Worksoft SaaS supports a number of Keyboard actions to help you implement Keyboard operations within your automated tests.
You can perform some of the keyboard actions
- Enter
- Alt+<any key>
- Shift+Tab
- Up arrow
- Down arrow
- Right arrow
- Left arrow
In this table below, you can see a listing of the commands grouped by the Keyboard action along with a high-level purpose of those commands. Please note that these are supported within QaSCRIBE as well Worksoft SaaS application (Edit Test Script screen).
Keyboard Action | Purpose | Command(s) | Target | Value |
---|---|---|---|---|
Hit "Enter" key | To shift the focus from a particular element | sendKeysEnter | locator | |
ctrl+click | To select multiple options from a drop down | |||
locator for click | ||||
Down Arrow | To press down arrow in the Keyboard | sendKeys | locator | Keys.ARROW_DOWN |
Backspace | To clear the contents.Key "Backspace" | sendKeys | locator | Keys.BACK_SPACE |
Esc | To Close a overlay on the screen."Esc" key to perform close action. | sendKeys | locator | Keys.ESCAPE |
Up Arrow | To Press 'Up' arrow in the Keyboard | sendKeys | locator | Keys.ARROW_UP |
Right Arrow | Press right arrow | sendKeys | locator | Keys.ARROW_RIGHT |
Left Arrow | Press left arrow | sendKeys | locator | Keys.ARROW_LEFT |
shift+tab | Press shift and tab keys | sendKeys | locator | Keys.SHIFT,Keys.TAB |
alt+"<Keys>" | To press Alt key and any key along with it. Such as Alt+N, Alt+P etc,. | altKeyDown | ||
sendKeys | locator for sendKeys | "Keys"( Example: N ) | ||
altKeyUp |