Package 

Class DOMExtensionsKt

    • Method Detail

      • 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.

      • getNodeBySelector

         final Integer getNodeBySelector(DOMDomain $self, String selector)

        Retrieves the ID of the node corresponding to the given selector, or throw an exception 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.

      • getAttributes

         final DOMAttributes getAttributes(DOMDomain $self, String nodeSelector)

        Gets the attributes of the node corresponding to the given nodeSelector, or null if the selector didn't match any node.

      • getAttributeValue

         final String getAttributeValue(DOMDomain $self, String nodeSelector, String attributeName)

        Gets the value of the attribute attributeName of the node corresponding to the given nodeSelector, or null if the selector didn't match any node or if the attribute was not present on the node.

      • getAttributeValue

         final String getAttributeValue(DOMDomain $self, Integer nodeId, String attributeName)

        Gets the value of the attribute attributeName of the node corresponding to the given nodeId, or null if the attribute was not present on the node.

      • setAttributeValue

         final Unit setAttributeValue(DOMDomain $self, String nodeSelector, String name, String value)

        Sets the attribute of the given name to the given value on the node corresponding to the given nodeSelector. Throws an exception if the selector didn't match any node.

      • getBoxModel

         final BoxModel getBoxModel(DOMDomain $self, String selector)

        Returns boxes for the node corresponding to the given selector, or null if the selector didn't match any node.