View Source Improve this doc

keys

Send a sequence of key strokes to the active element. This command is similar to the send keys command in every aspect except the implicit termination: The modifiers are not released at the end of the call. Rather, the state of the modifier keys is kept between calls, so mouse interactions can be performed while modifier keys are depressed.

You can also use characters like “Left arrow” or “Back space”. WebdriverIO will take care of translating them into unicode characters. You’ll find all supported characters here. To do that, the value has to correspond to a key from the table.

Usage

1
2
browser.keys(value);

Parameters

Param Type Details
value String/String[] The sequence of keys to type. An array must be provided. The server should flatten the array items to a single string to be typed.