sendKeys

abstract suspend fun sendKeys(text: String)

Sends a sequence of keys to the element, simulating user input.

This method focuses the element and dispatches key events for each character in the provided text.

If the text contains special characters or needs to be handled differently, prefer calling sendKeysWithSpecialChars(text: String) instead.

Parameters

text

The text to send to the element.