Optional
abilityOptional
callStatic
charactersPress the specified keys sequentially for each string character To press a special key, like Control or ArrowDown, use key.
the locator.
the keys of characters to press.
Optional
options: PressActionOptions(optional) options for the press action.
new Press instance
keys of characters
Press.characters('abcdefghijklmnopqrstuvwxyz');
Static
keyPress a key on the keyboard. (or multiple keys with +, e.g. Shift+A)
the key(s) to press.
Optional
options: PressActionOptions(optional) options for the press action.
new Press instance
single key
Press.key('A');
multiple keys
Press.key('Control+A')
Generated using TypeDoc
Press the specified key on the keyboard.