Assistive-Webdriver

Home > assistive-playwright-client > VMKeyboard > down

VMKeyboard.down() method

Sends a low-level keydown event to the virtual machine.

Signature:

down(key: string): Promise<void>;

Parameters

Parameter Type Description
key string Name of the key (cf Key) or its corresponding character, for example PageUp or a. If the character requires to press the Shift key to be produced, a keydown and a keyup event for the Shift key are also sent before and after.

Returns:

Promise<void>