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
Either null
or the handle itself if the handle is an instance of ElementHandle.
class JSHandle {
abstract asElement(): ElementHandle<Node> | null;
}
Returns:
ElementHandle<Node> | null