ApplesauceOS
Read Markdown ↗Download .md

Element.setText

Replace the value of a supported UIKit text field/view.

js
element.setText(text)

Arguments

ArgumentTypeMeaning
textstringReplacement text.

Returns

The same element.

Example

js
const element = UIHelper.waitForElement({id: "target", visible: true, enabled: true}, 5000);
element.setText("Hello");

Notes

Custom controls may require typeText or physical input. Verify the value.

Also available as

Element.setValue.

All JavaScript APIs · Automation playbook