ApplesauceOS
Read Markdown ↗Download .md

Element.getValue

Read the fresh element value.

js
element.getValue()

Arguments

No arguments.

Returns

Element value; type depends on the control.

Example

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

Notes

Stale elements throw; reacquire after navigation. Read several fields with getAttributes() in one call.

All JavaScript APIs · Automation playbook