# Element.id

Read the cached native object reference.

```js
element.id; element.elementId
```

## Arguments

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.

[All JavaScript APIs](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
