Below mentioned are the action keywords along with their example usage.
...
Action
...
Parameters
...
Example Usage
pressEnterKey
Web
To perform the keyboard operation Enter on object (mentioned in objectName).
...
Example :
pressEnterKey : <Object : bqObject>
Presses Enter on the mentioned object bqObject
...
The keyboard action keywords help us to perform certain keyboard actions on an element in our script.
Suppose you wish to enter the credentials & press Enter key on the Login button of a login page.
Structure :
launchApp <parameter>
setValue <parameter>
setValue <parameter>
pressEnterKey
Info |
---|
All the keywords under this list hard fail in negative scenarios. |
Action | Parameters | Example Usage |
---|---|---|
pressBackspaceKey
To perform the keyboard operation Tab Backspace on object (mentioned in objectName). If Parameter 1 is not defined, then the key will be pressed once. | Param 1 (Optional) : The number of times the tab backspace key needs to be pressed | Example 1 :
Presses Tab Backspace key twice on the mentioned object bqObject pressTabKey Example 2 :
Presses Tab Backspace key once on the mentioned object bqObject pressBackspaceKey |
pressDownKey
To perform the keyboard operation Backspace press down-arrow key on object (mentioned in objectName). If Parameter 1 is not defined, then the key will be pressed once. | Param 1 (Optional) : The number of times the backspace down key needs to be pressed | Example 1 :
Presses Backspace Down key twice on the mentioned object bqObject pressBackspaceKey Example 2 :
Presses Backspace key once Down key once on the mentioned object bqObject |
pressEnterKey
To perform the keyboard operation Enter on object (mentioned in objectName). | Example :
Presses Enter on the mentioned object bqObject pressUpKey | |
pressLeftKey
To press upleft-arrow key on object (mentioned in objectName). If Parameter 1 is not defined, then the key will be pressed once. | Param 1 (Optional) : The number of times the up left key needs to be pressed | Example 1 :
Presses Up Left key twice on the mentioned object bqObject pressUpKey Example 2 :
Presses Up Left key once on the mentioned object bqObject |
pressDownKeypressRightKey
To press downright-arrow key on object (mentioned in objectName). If Parameter 1 is not defined, then the key will be pressed once. | Param 1 (Optional) : The number of times the down right key needs to be pressed | Example 1 :
Presses Down Right key twice on the mentioned object bqObject Example 2 :
Presses Down Right key once on the mentioned object bqObject |
pressLeftKeypressTabKey
To press left-arrow key perform the keyboard operation Tab on object (mentioned in objectName). If Parameter 1 is not defined, then the key will be pressed once. | Param 1 (Optional): The number of times the left tab key needs to be pressed | Example 1 :
Presses Left key Tab twice on the mentioned object bqObject pressLeftKey Example 2 :
Presses Left key Tab once on the mentioned object bqObject |
pressRightKeypressUpKey
To press rightup-arrow key on object (mentioned in objectName). If Parameter 1 is not defined, then the key will be pressed once. | Param 1 (Optional) : The number of times the right up key needs to be pressed | Example 1 :
Presses Right Up key twice on the mentioned object bqObject pressRightKey Example 2 :
Presses Right Up key once on the mentioned object bqObject |