-
public final class DOMExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final IntegergetDocumentRootNodeId(DOMDomain $self)Retrieves the ID of the root node of the current document. final IntegerfindNodeBySelector(DOMDomain $self, String selector)Retrieves the ID of the node corresponding to the given selector, or null if not found. final UnitfocusNodeBySelector(DOMDomain $self, String selector)Moves the focus to the node corresponding to the given selector, or null if not found. -
-
Method Detail
-
getDocumentRootNodeId
final Integer getDocumentRootNodeId(DOMDomain $self)
Retrieves the ID of the root node of the current document.
-
findNodeBySelector
final Integer findNodeBySelector(DOMDomain $self, String selector)
Retrieves the ID of the node corresponding to the given selector, or null if not found.
Note that the returned NodeId cannot really be used to retrieve actual node information, and this is apparently by design of the DOM domain. It can be used to perform other CDP commands that require a NodeId, though.
-
focusNodeBySelector
final Unit focusNodeBySelector(DOMDomain $self, String selector)
Moves the focus to the node corresponding to the given selector, or null if not found.
-
-
-
-