Assistive-Webdriver

Home > assistive-playwright-client > VMKeyboard > insertText

VMKeyboard.insertText() method

An alias of VMKeyboard.type(). In playwright, insertText differs from type by the fact that insertText only dispatches an input event and no keydown, keyup or keypress event. Here, as the goal is to use only low-level events, there is no distinction between insertText and type.

Signature:

insertText(text: string): Promise<void>;

Parameters

Parameter Type Description
text string  

Returns:

Promise<void>