Skip to main content
Version: 16.1.1

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.