Class DOMNode


  • public class DOMNode
    extends java.lang.Object
    A Node in the DOM tree
    • Constructor Summary

      Constructors 
      Constructor Description
      DOMNode()  
    • Method Summary

      Modifier and Type Method Description
      java.util.List<NameValue> getAttributes()
      Attributes of an Element node.
      java.lang.Integer getBackendNodeId()
      Node's id, corresponds to DOM.Node.backendNodeId.
      java.lang.String getBaseURL()
      Base URL that Document or FrameOwner node uses for URL completion.
      java.util.List<java.lang.Integer> getChildNodeIndexes()
      The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.
      java.lang.Integer getContentDocumentIndex()
      The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.
      java.lang.String getContentLanguage()
      Only set for documents, contains the document's content language.
      java.lang.String getCurrentSourceURL()
      The selected url for nodes with a srcset attribute.
      java.lang.String getDocumentEncoding()
      Only set for documents, contains the document's character set encoding.
      java.lang.String getDocumentURL()
      Document URL that Document or FrameOwner node points to.
      java.util.List<EventListener> getEventListeners()
      Details of the node's event listeners, if any.
      java.lang.String getFrameId()
      Frame ID for frame owner elements and also for the document node.
      java.lang.Boolean getInputChecked()  
      java.lang.String getInputValue()
      Only set for input elements, contains the input's associated text value.
      java.lang.Boolean getIsClickable()  
      java.lang.Integer getLayoutNodeIndex()
      The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.
      java.lang.String getNodeName()
      Node's nodeName.
      java.lang.Integer getNodeType()
      Node's nodeType.
      java.lang.String getNodeValue()
      Node's nodeValue.
      java.lang.Boolean getOptionSelected()  
      java.lang.String getOriginURL()
      The url of the script (if any) that generates this node.
      java.util.List<java.lang.Integer> getPseudoElementIndexes()
      Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.
      PseudoType getPseudoType()
      Type of a pseudo element node.
      java.lang.String getPublicId()
      DocumentType node's publicId.
      java.lang.Double getScrollOffsetX()
      Scroll offsets, set when this node is a Document.
      java.lang.Double getScrollOffsetY()  
      ShadowRootType getShadowRootType()
      Shadow root type.
      java.lang.String getSystemId()
      DocumentType node's systemId.
      java.lang.String getTextValue()
      Only set for textarea elements, contains the text value.
      java.lang.Boolean isInputChecked()
      Only set for radio and checkbox input elements, indicates if the element has been checked
      java.lang.Boolean isIsClickable()
      Whether this DOM node responds to mouse clicks.
      java.lang.Boolean isOptionSelected()
      Only set for option elements, indicates if the element has been selected
      void setAttributes​(java.util.List<NameValue> attributes)
      Attributes of an Element node.
      void setBackendNodeId​(java.lang.Integer backendNodeId)
      Node's id, corresponds to DOM.Node.backendNodeId.
      void setBaseURL​(java.lang.String baseURL)
      Base URL that Document or FrameOwner node uses for URL completion.
      void setChildNodeIndexes​(java.util.List<java.lang.Integer> childNodeIndexes)
      The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.
      void setContentDocumentIndex​(java.lang.Integer contentDocumentIndex)
      The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.
      void setContentLanguage​(java.lang.String contentLanguage)
      Only set for documents, contains the document's content language.
      void setCurrentSourceURL​(java.lang.String currentSourceURL)
      The selected url for nodes with a srcset attribute.
      void setDocumentEncoding​(java.lang.String documentEncoding)
      Only set for documents, contains the document's character set encoding.
      void setDocumentURL​(java.lang.String documentURL)
      Document URL that Document or FrameOwner node points to.
      void setEventListeners​(java.util.List<EventListener> eventListeners)
      Details of the node's event listeners, if any.
      void setFrameId​(java.lang.String frameId)
      Frame ID for frame owner elements and also for the document node.
      void setInputChecked​(java.lang.Boolean inputChecked)
      Only set for radio and checkbox input elements, indicates if the element has been checked
      void setInputValue​(java.lang.String inputValue)
      Only set for input elements, contains the input's associated text value.
      void setIsClickable​(java.lang.Boolean isClickable)
      Whether this DOM node responds to mouse clicks.
      void setLayoutNodeIndex​(java.lang.Integer layoutNodeIndex)
      The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.
      void setNodeName​(java.lang.String nodeName)
      Node's nodeName.
      void setNodeType​(java.lang.Integer nodeType)
      Node's nodeType.
      void setNodeValue​(java.lang.String nodeValue)
      Node's nodeValue.
      void setOptionSelected​(java.lang.Boolean optionSelected)
      Only set for option elements, indicates if the element has been selected
      void setOriginURL​(java.lang.String originURL)
      The url of the script (if any) that generates this node.
      void setPseudoElementIndexes​(java.util.List<java.lang.Integer> pseudoElementIndexes)
      Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.
      void setPseudoType​(PseudoType pseudoType)
      Type of a pseudo element node.
      void setPublicId​(java.lang.String publicId)
      DocumentType node's publicId.
      void setScrollOffsetX​(java.lang.Double scrollOffsetX)
      Scroll offsets, set when this node is a Document.
      void setScrollOffsetY​(java.lang.Double scrollOffsetY)  
      void setShadowRootType​(ShadowRootType shadowRootType)
      Shadow root type.
      void setSystemId​(java.lang.String systemId)
      DocumentType node's systemId.
      void setTextValue​(java.lang.String textValue)
      Only set for textarea elements, contains the text value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DOMNode

        public DOMNode()
    • Method Detail

      • getNodeType

        public java.lang.Integer getNodeType()
        Node's nodeType.
      • setNodeType

        public void setNodeType​(java.lang.Integer nodeType)
        Node's nodeType.
      • getNodeName

        public java.lang.String getNodeName()
        Node's nodeName.
      • setNodeName

        public void setNodeName​(java.lang.String nodeName)
        Node's nodeName.
      • getNodeValue

        public java.lang.String getNodeValue()
        Node's nodeValue.
      • setNodeValue

        public void setNodeValue​(java.lang.String nodeValue)
        Node's nodeValue.
      • getTextValue

        public java.lang.String getTextValue()
        Only set for textarea elements, contains the text value.
      • setTextValue

        public void setTextValue​(java.lang.String textValue)
        Only set for textarea elements, contains the text value.
      • getInputValue

        public java.lang.String getInputValue()
        Only set for input elements, contains the input's associated text value.
      • setInputValue

        public void setInputValue​(java.lang.String inputValue)
        Only set for input elements, contains the input's associated text value.
      • isInputChecked

        public java.lang.Boolean isInputChecked()
        Only set for radio and checkbox input elements, indicates if the element has been checked
      • setInputChecked

        public void setInputChecked​(java.lang.Boolean inputChecked)
        Only set for radio and checkbox input elements, indicates if the element has been checked
      • isOptionSelected

        public java.lang.Boolean isOptionSelected()
        Only set for option elements, indicates if the element has been selected
      • setOptionSelected

        public void setOptionSelected​(java.lang.Boolean optionSelected)
        Only set for option elements, indicates if the element has been selected
      • getBackendNodeId

        public java.lang.Integer getBackendNodeId()
        Node's id, corresponds to DOM.Node.backendNodeId.
      • setBackendNodeId

        public void setBackendNodeId​(java.lang.Integer backendNodeId)
        Node's id, corresponds to DOM.Node.backendNodeId.
      • getChildNodeIndexes

        public java.util.List<java.lang.Integer> getChildNodeIndexes()
        The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.
      • setChildNodeIndexes

        public void setChildNodeIndexes​(java.util.List<java.lang.Integer> childNodeIndexes)
        The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.
      • getAttributes

        public java.util.List<NameValue> getAttributes()
        Attributes of an Element node.
      • setAttributes

        public void setAttributes​(java.util.List<NameValue> attributes)
        Attributes of an Element node.
      • getPseudoElementIndexes

        public java.util.List<java.lang.Integer> getPseudoElementIndexes()
        Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.
      • setPseudoElementIndexes

        public void setPseudoElementIndexes​(java.util.List<java.lang.Integer> pseudoElementIndexes)
        Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.
      • getLayoutNodeIndex

        public java.lang.Integer getLayoutNodeIndex()
        The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.
      • setLayoutNodeIndex

        public void setLayoutNodeIndex​(java.lang.Integer layoutNodeIndex)
        The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.
      • getDocumentURL

        public java.lang.String getDocumentURL()
        Document URL that Document or FrameOwner node points to.
      • setDocumentURL

        public void setDocumentURL​(java.lang.String documentURL)
        Document URL that Document or FrameOwner node points to.
      • getBaseURL

        public java.lang.String getBaseURL()
        Base URL that Document or FrameOwner node uses for URL completion.
      • setBaseURL

        public void setBaseURL​(java.lang.String baseURL)
        Base URL that Document or FrameOwner node uses for URL completion.
      • getContentLanguage

        public java.lang.String getContentLanguage()
        Only set for documents, contains the document's content language.
      • setContentLanguage

        public void setContentLanguage​(java.lang.String contentLanguage)
        Only set for documents, contains the document's content language.
      • getDocumentEncoding

        public java.lang.String getDocumentEncoding()
        Only set for documents, contains the document's character set encoding.
      • setDocumentEncoding

        public void setDocumentEncoding​(java.lang.String documentEncoding)
        Only set for documents, contains the document's character set encoding.
      • getPublicId

        public java.lang.String getPublicId()
        DocumentType node's publicId.
      • setPublicId

        public void setPublicId​(java.lang.String publicId)
        DocumentType node's publicId.
      • getSystemId

        public java.lang.String getSystemId()
        DocumentType node's systemId.
      • setSystemId

        public void setSystemId​(java.lang.String systemId)
        DocumentType node's systemId.
      • getFrameId

        public java.lang.String getFrameId()
        Frame ID for frame owner elements and also for the document node.
      • setFrameId

        public void setFrameId​(java.lang.String frameId)
        Frame ID for frame owner elements and also for the document node.
      • getContentDocumentIndex

        public java.lang.Integer getContentDocumentIndex()
        The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.
      • setContentDocumentIndex

        public void setContentDocumentIndex​(java.lang.Integer contentDocumentIndex)
        The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.
      • getPseudoType

        public PseudoType getPseudoType()
        Type of a pseudo element node.
      • setPseudoType

        public void setPseudoType​(PseudoType pseudoType)
        Type of a pseudo element node.
      • getShadowRootType

        public ShadowRootType getShadowRootType()
        Shadow root type.
      • setShadowRootType

        public void setShadowRootType​(ShadowRootType shadowRootType)
        Shadow root type.
      • isIsClickable

        public java.lang.Boolean isIsClickable()
        Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.
      • setIsClickable

        public void setIsClickable​(java.lang.Boolean isClickable)
        Whether this DOM node responds to mouse clicks. This includes nodes that have had click event listeners attached via JavaScript as well as anchor tags that naturally navigate when clicked.
      • getEventListeners

        public java.util.List<EventListener> getEventListeners()
        Details of the node's event listeners, if any.
      • setEventListeners

        public void setEventListeners​(java.util.List<EventListener> eventListeners)
        Details of the node's event listeners, if any.
      • getCurrentSourceURL

        public java.lang.String getCurrentSourceURL()
        The selected url for nodes with a srcset attribute.
      • setCurrentSourceURL

        public void setCurrentSourceURL​(java.lang.String currentSourceURL)
        The selected url for nodes with a srcset attribute.
      • getOriginURL

        public java.lang.String getOriginURL()
        The url of the script (if any) that generates this node.
      • setOriginURL

        public void setOriginURL​(java.lang.String originURL)
        The url of the script (if any) that generates this node.
      • getScrollOffsetX

        public java.lang.Double getScrollOffsetX()
        Scroll offsets, set when this node is a Document.
      • setScrollOffsetX

        public void setScrollOffsetX​(java.lang.Double scrollOffsetX)
        Scroll offsets, set when this node is a Document.
      • getScrollOffsetY

        public java.lang.Double getScrollOffsetY()
      • setScrollOffsetY

        public void setScrollOffsetY​(java.lang.Double scrollOffsetY)
      • getInputChecked

        public java.lang.Boolean getInputChecked()
      • getOptionSelected

        public java.lang.Boolean getOptionSelected()
      • getIsClickable

        public java.lang.Boolean getIsClickable()