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

434 B

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:

interface SerializedAXNode {
  elementHandle(): Promise<ElementHandle | null>;
}

Returns:

Promise<ElementHandle | null>