Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 376 Bytes

puppeteer.jshandle.aselement.md

File metadata and controls

19 lines (13 loc) · 376 Bytes
sidebar_label
JSHandle.asElement

JSHandle.asElement() method

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

Signature:

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

Returns:

ElementHandle<Node> | null