class WebDriverKeys (View source)

Representations of pressable keys that aren't text.

These are stored in the Unicode PUA (Private Use Area) code points.

Constants

NULL

CANCEL

HELP

BACKSPACE

TAB

CLEAR

RETURN_KEY

ENTER

SHIFT

CONTROL

ALT

PAUSE

ESCAPE

SPACE

PAGE_UP

PAGE_DOWN

END

HOME

ARROW_LEFT

ARROW_UP

ARROW_RIGHT

ARROW_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

ZENKAKU_HANKAKU

RIGHT_SHIFT

RIGHT_CONTROL

RIGHT_ALT

RIGHT_META

NUMPAD_PAGE_UP

NUMPAD_PAGE_DOWN

NUMPAD_END

NUMPAD_HOME

NUMPAD_ARROW_LEFT

NUMPAD_ARROW_UP

NUMPAD_ARROW_RIGHT

NUMPAD_ARROW_DOWN

NUMPAD_ARROW_INSERT

NUMPAD_ARROW_DELETE

LEFT_SHIFT

LEFT_CONTROL

LEFT_ALT

LEFT

UP

RIGHT

DOWN

COMMAND

Methods

static array|string
encode(string|array|int|float $keys, bool $isW3cCompliant = false)

Encode input of sendKeys() to appropriate format according to protocol.

Details

static array|string encode(string|array|int|float $keys, bool $isW3cCompliant = false)

Encode input of sendKeys() to appropriate format according to protocol.

Parameters

string|array|int|float $keys
bool $isW3cCompliant

Return Value

array|string