Back to Puppeteer

JSHandle.asElement() method

docs/api/puppeteer.jshandle.aselement.md

19.2.2330 B
Original Source

JSHandle.asElement() method

Either null or the handle itself if the handle is an instance of ElementHandle.

Signature

typescript
class JSHandle {
  abstract asElement(): ElementHandle<Node> | null;
}

Returns:

ElementHandle<Node> | null