Actions
session.performActions(actionSequences)
Sends virtualised device input to the web browser like keyboard or pointer events in a series of actions.
PARAMETERS
actionSequences
: ActionSequence[] - Array with actions to be performed on the current page
RETURNS
Promise<void>
EXAMPLES
SEE ALSO
session.releaseActions()
Release all the keys and pointer buttons that are currently depressed
RETURNS
Promise<void>
EXAMPLES
SEE ALSO
ActionSequence
POSSIBLE VALUES
NullActionSequence
PROPERTIES
type
:'none'
id
: stringactions
: PauseAction[]
PauseAction
PROPERTIES
type
:'pause'
duration
: number
KeyActionSequence
PROPERTIES
type
:'key'
id
: stringactions
: KeyAction[]
KeyAction
POSSIBLE VALUES
KeyDownAction
PROPERTIES
type
:'keyDown'
value
: string
KeyUpAction
PROPERTIES
type
:'keyUp'
value
: string
PointerActionSequence
PROPERTIES
type
:'pointer'
id
: stringactions
: PointerAction[]parameters?
: PointerParameters
PointerAction
POSSIBLE VALUES
PointerMoveAction
PROPERTIES
type
:'pointerMove'
x
: numbery
: numberduration?
: numberorigin
: Element |'pointer'
|'viewport'
PointerUpAction
PROPERTIES
type
:'pointerUp'
button
: number
PointerDownAction
PROPERTIES
type
:'pointerDown'
button
: number
PointerParameters
PROPERTIES
pointerType
:'mouse'
|'pen'
|'touch'
NullAction
PROPERTIES
type
:'pause'
duration
: number
Key
POSSIBLE VALUES
NULL
CANCEL
HELP
BACKSPACE
TAB
CLEAR
RETURN
ENTER
SHIFT
CONTROL
ALT
PAUSE
ESCAPE
SPACE
PAGE_UP
PAGE_DOWN
END
HOME
LEFT
UP
RIGHT
DOWN
INSERT
DELETE
SEMICOLON
EQUALS
NUMPAD0
NUMPAD1
NUMPAD2
NUMPAD3
NUMPAD4
NUMPAD5
NUMPAD6
NUMPAD7
NUMPAD8
NUMPAD9
MULTIPLY
ADD
SEPARATOR
SUBTRACT
DECIMAL
DIVIDE
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
META
ZENKAKUHANKAKU
R_SHIFT
R_CONTROL
R_ALT
R_META
R_PAGEUP
R_PAGEDOWN
R_END
R_HOME
R_ARROWLEFT
R_ARROWUP
R_ARROWRIGHT
R_ARROWDOWN
R_INSERT
R_DELETE
Last updated