keyboard.down
Dispatches akeydown event.
If
key is a single character and no modifier keys besides Shift are being held down,
a keypress/input event will also be generated. The text option can be specified
to force an input event to be generated.Modifier keys DO affect keyboard.down. Holding down Shift will type the text in upper case.Name of key to press, such as
ArrowLeft.Options for the key down event.
keyboard.up
Dispatches akeyup event.
Upstream docs
Name of key to release, such as
ArrowLeft.keyboard.press
Shortcut forKeyboard.down and Keyboard.up.
If
key is a single character and no modifier keys besides Shift are being held down,
a keypress/input event will also be generated. The text option can be specified
to force an input event to be generated.Modifier keys DO affect keyboard.press. Holding down Shift will type the text in upper case.Name of key to press, such as
ArrowLeft.Options for the key press event including
delay, text, and commands.keyboard.sendCharacter
Dispatches akeypress and input event. This does not send a keydown or keyup event.
Modifier keys DO NOT affect
keyboard.sendCharacter. Holding down Shift will not
type the text in upper case.Character to send into the page.
keyboard.type
Sends akeydown, keypress/input, and keyup event for each character in the text.
To press a special key, like
Control or ArrowDown, use Keyboard.press.Modifier keys DO NOT affect keyboard.type. Holding down Shift will not type the text
in upper case.A text to type into a focused element.
Options for typing including
delay between key presses.
