setText

suspend fun setText(value: String, timeout: Duration? = null, sensitive: Boolean = false)(source)

Accessibility text replacement (ACTION_SET_TEXT) on the one matching node. Fails with ACTION_REJECTED only when the node refuses the action; the field is not read back, so assert the effect yourself with a selector that survives the edit: app.await(res("email")).textEquals("new").

With sensitive (a password, a token) the server logs the call without value, so the connection's event log, tap-watcher and exports never hold it.