Skip to main content
Version: 17.1.2

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.