Skip to main content
Version: 15.3.2

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.