puppeteer/docs/api/puppeteer.jshandle.aselement.md
jrandolf 5ff205dc8b
fix: extends ElementHandle to Nodes (#8552)
* fix: extends `ElementHandle` to `Node`s (#8552)
2022-07-06 09:05:37 +02:00

381 B

sidebar_label
JSHandle.asElement

JSHandle.asElement() method

Signature:

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

Returns:

ElementHandle<Node> | null

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