ApplesauceOS
Read Markdown ↗Download .md

Element.snapshot

Read the snapshot captured by the last query.

js
element.snapshot

Arguments

No arguments.

Returns

Cached attribute object; not a live view.

Example

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

Notes

A property, not a function. Use getAttributes() for fresh state.

All JavaScript APIs · Automation playbook