Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 381 Bytes

puppeteer.jshandle.aselement.md

File metadata and controls

19 lines (13 loc) · 381 Bytes
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.