Skip to main content
Version: 16.2.0

JSHandle.asElement() method

Signature:

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

Returns:

ElementHandle<Node> | null

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