clearInput

in Japanese(日本語)

Empties an input field.

Functions

function description
clearInput(settle:) Empties the currently focused input field. When no element in the screen's element list reports focus, it cannot check that the field was emptied, so it passes with the note clear-input-unverified (check the value with valueIs).
clearInput(sel, settle:waitSeconds:scroll:maxSwipes:) Empties the specified input field.

Example

tap("#note")
clearInput()
type("new content")

clearInput("#note")
type("#note", "new content")

// one step instead of clearInput + type
type("#note", "new content", replace: true)

Notes