Element.id
Read the cached native object reference.
js
element.id; element.elementIdArguments
No arguments.
Returns
Opaque reference string; id and elementId identify the same native object.
Example
js
const element = UIHelper.waitForElement({id: "target"}, 5000);
console.log(element.snapshot.identifier);Notes
These properties are not accessibility identifiers. The example reads the actual selector identifier from the snapshot. Reacquire references after navigation.