puppeteer/docs/api/puppeteer.serializedaxnode.elementhandle.md

22 lines
434 B
Markdown

---
sidebar_label: SerializedAXNode.elementHandle
---
# SerializedAXNode.elementHandle() method
Get an ElementHandle for this AXNode if available.
If the underlying DOM element has been disposed, the method might return an error.
#### Signature:
```typescript
interface SerializedAXNode {
elementHandle(): Promise<ElementHandle | null>;
}
```
**Returns:**
Promise&lt;[ElementHandle](./puppeteer.elementhandle.md) \| null&gt;