Class DOMNode

java.lang.Object
io.webfolder.cdp.type.domsnapshot.DOMNode

public class DOMNode extends Object
A Node in the DOM tree
  • Constructor Details

    • DOMNode

      public DOMNode()
  • Method Details

    • getNodeType

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public 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(Integer layoutNodeIndex)
      The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.
    • getDocumentURL

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public 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(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 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(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 List<EventListener> getEventListeners()
      Details of the node's event listeners, if any.
    • setEventListeners

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

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

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

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

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

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

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

      public Double getScrollOffsetY()
    • setScrollOffsetY

      public void setScrollOffsetY(Double scrollOffsetY)