insertText

abstract suspend fun insertText(text: String)

Inserts text into the element, simulating user input.

This method focuses the element and uses the input API to insert the provided text. It is useful for filling out input fields or text areas. It acts like a paste operation.

Parameters

text

The text to insert into the element.