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