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
Parameter | Type | Description |
---|---|---|
keys | string | Name of the key to press. |
Basic Usage
await I.pressKey("a");
pressUpKey
Method allowing to stop pressing a keyboard key.
Parameter | Type | Description |
---|---|---|
keys | string | Name of the key to stop pressing. |
Basic Usage
await I.pressUpKey("a");
pressDownKey
Method allowing to keep pressing a keyboard key.
Parameter | Type | Description |
---|---|---|
keys | string | Name 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();