Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Web


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 :

pressTabKey pressBackspaceKey : <Object : bqObject> <Number of Times : 2>

Presses Tab Backspace key twice on the mentioned object bqObject

pressTabKey Example 2 :

pressBackspaceKey : <Object : bqObject> <Number of Times : >

Presses Tab Backspace key once on the mentioned object bqObject

pressBackspaceKey

pressDownKey

Web


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 :

pressBackspaceKey pressDownKey : <Object : bqObject> <Number of Times : 2>

Presses Backspace Down key twice on the mentioned object bqObject

pressBackspaceKey Example 2 :

pressDownKey : <Object : bqObject> <Number of Times : >

Presses Backspace key once Down key once on the mentioned object bqObject

pressEnterKey

Web, Mobile


To perform the keyboard operation Enter on object (mentioned in objectName).

Example :

pressEnterKey : <Object : bqObject>

Presses Enter on the mentioned object bqObject

pressUpKey

pressLeftKey

Web


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 :

pressUpKey pressLeftKey : <Object : bqObject> <Number of Times : 2>

Presses Up Left key twice on the mentioned object bqObject

pressUpKey Example 2 :

pressLeftKey : <Object : bqObject> <Number of Times : >

Presses Up Left key once on the mentioned object bqObject

pressDownKey

pressRightKey

Web


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 :

pressDownKey pressRightKey : <Object : bqObject> <Number of Times : 2>

Presses Down Right key twice on the mentioned object bqObject

Example 2 :

pressDownKey pressRightKey : <Object : bqObject> <Number of Times : >

Presses Down Right key once on the mentioned object bqObject

pressLeftKey

pressTabKey

Web, Mobile


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 :

pressLeftKey pressTabKey : <Object : bqObject> <Number of Times : 2>

Presses Left key Tab twice on the mentioned object bqObject

pressLeftKey Example 2 :

pressTabKey : <Object : bqObject> <Number of Times : >

Presses Left key Tab once on the mentioned object bqObject

pressRightKey

pressUpKey

Web


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 :

pressRightKey pressUpKey : <Object : bqObject> <Number of Times : 2>

Presses Right Up key twice on the mentioned object bqObject

pressRightKey Example 2 :

pressUpKey : <Object : bqObject> <Number of Times : >

Presses Right Up key once on the mentioned object bqObject