Element.toJSON
Serialize this native element reference.
js
element.toJSON()Arguments
No arguments.
Returns
Object containing its W3C-style element reference; not a complete attribute snapshot.
Example
js
const element = UIHelper.waitForElement({id: "target"}, 5000);
console.log(element.toJSON());Notes
Use getAttributes() to inspect the element. Do not persist this handle for later runs or substitute it for an observation ref.