Home > assistive-playwright-client > VMKeyboard > insertText
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>;
| Parameter | Type | Description |
|---|---|---|
| text | string |
Returns:
Promise<void>