Skip to content

ElectronWebContents.insertText method

ElectronWebContents › insertText

Unofficial

Inserts text into the focused element.

Signature:

insertText(text: string): Promise<void>

Parameters:

Parameter Type Description
text string The text to insert.

Returns: Promise<void>A promise that resolves when the text is inserted.