Skip to main content
Version: 9.0.0

Button actions

pressKey

Method allowing to emulate the action of pressing a keyboard key. The keys parameter can take any value of this list. Note that shortcuts as Control+v or Control+ are also supported

ParameterTypeDescription
keysstringName of the key to press.

Basic Usage

await I.pressKey("a");

pressUpKey

Method allowing to stop pressing a keyboard key.

ParameterTypeDescription
keysstringName of the key to stop pressing.

Basic Usage

await I.pressUpKey("a");

pressDownKey

Method allowing to keep pressing a keyboard key.

ParameterTypeDescription
keysstringName of the key to keep pressing.

Basic Usage

await I.pressDownKey("a");

pressEnterKey

Method allowing to press the enter keyboard key.

Basic Usage

await I.pressEnterKey();

pressTabKey

Method allowing to press the tab keyboard key.

Basic Usage

await I.pressTabKey();

pressArrowUpKey

Method allowing to press the up arrow keyboard key.

Basic Usage

await I.pressArrowUpKey();

pressArrowDownKey

Method allowing to press the down arrow keyboard key.

Basic Usage

await I.pressArrowDownKey();

pressArrowLeftKey

Method allowing to press the left arrow keyboard key.

Basic Usage

await I.pressArrowLeftKey();

pressArrowRightKey

Method allowing to press the right arrow keyboard key.

Basic Usage

await I.pressArrowRightKey();