Class DOMSnapshot.DOMNode

    • Field Summary

       
      Serializable ID
      Modifier and Type Field
      protected static long serialVersionUID
      For Object Serialization.
       
      Type Properties
      Modifier and Type Field
      DOMSnapshot.NameValue[] attributes
      Attributes of an Element node.
      int backendNodeId
      Node's id, corresponds to DOM.Node.backendNodeId.
      String baseURL
      Base URL that Document or FrameOwner node uses for URL completion.
      int[] childNodeIndexes
      The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.
      Integer contentDocumentIndex
      The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.
      String contentLanguage
      Only set for documents, contains the document's content language.
      String currentSourceURL
      The selected url for nodes with a srcset attribute.
      String documentEncoding
      Only set for documents, contains the document's character set encoding.
      String documentURL
      Document URL that Document or FrameOwner node points to.
      DOMDebugger.EventListener[] eventListeners
      Details of the node's event listeners, if any.
      String frameId
      Frame ID for frame owner elements and also for the document node.
      Boolean inputChecked
      Only set for radio and checkbox input elements, indicates if the element has been checked

      OPTIONAL
      String inputValue
      Only set for input elements, contains the input's associated text value.
      Boolean isClickable
      Whether this DOM node responds to mouse clicks.
      Integer layoutNodeIndex
      The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.
      String nodeName
      Node's nodeName.
      int nodeType
      Node's nodeType.
      String nodeValue
      Node's nodeValue.
      Boolean optionSelected
      Only set for option elements, indicates if the element has been selected

      OPTIONAL
      String originURL
      The url of the script (if any) that generates this node.
      int[] pseudoElementIndexes
      Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.
      String pseudoType
      Type of a pseudo element node.
      String publicId
      DocumentType node's publicId.
      Number scrollOffsetX
      Scroll offsets, set when this node is a Document.
      Number scrollOffsetY
      [No Description Provided by Google]

      OPTIONAL
      String shadowRootType
      Shadow root type.
      String systemId
      DocumentType node's systemId.
      String textValue
      Only set for textarea elements, contains the text value.
    • Constructor Summary

      Constructors 
      Constructor Description
      DOMNode​(int nodeType, String nodeName, String nodeValue, String textValue, String inputValue, Boolean inputChecked, Boolean optionSelected, int backendNodeId, int[] childNodeIndexes, DOMSnapshot.NameValue[] attributes, int[] pseudoElementIndexes, Integer layoutNodeIndex, String documentURL, String baseURL, String contentLanguage, String documentEncoding, String publicId, String systemId, String frameId, Integer contentDocumentIndex, String pseudoType, String shadowRootType, Boolean isClickable, DOMDebugger.EventListener[] eventListeners, String currentSourceURL, String originURL, Number scrollOffsetX, Number scrollOffsetY)
      Constructor
      DOMNode​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • textValue

        🡅  🡇    
        public final java.lang.String textValue
        Only set for textarea elements, contains the text value.

        OPTIONAL
      • inputValue

        🡅  🡇    
        public final java.lang.String inputValue
        Only set for input elements, contains the input's associated text value.

        OPTIONAL
      • inputChecked

        🡅  🡇    
        public final java.lang.Boolean inputChecked
        Only set for radio and checkbox input elements, indicates if the element has been checked

        OPTIONAL
      • optionSelected

        🡅  🡇    
        public final java.lang.Boolean optionSelected
        Only set for option elements, indicates if the element has been selected

        OPTIONAL
      • childNodeIndexes

        🡅  🡇    
        public final int[] childNodeIndexes
        The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.

        OPTIONAL
      • pseudoElementIndexes

        🡅  🡇    
        public final int[] pseudoElementIndexes
        Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.

        OPTIONAL
      • layoutNodeIndex

        🡅  🡇    
        public final java.lang.Integer layoutNodeIndex
        The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.

        OPTIONAL
      • documentURL

        🡅  🡇    
        public final java.lang.String documentURL
        Document URL that Document or FrameOwner node points to.

        OPTIONAL
      • baseURL

        🡅  🡇    
        public final java.lang.String baseURL
        Base URL that Document or FrameOwner node uses for URL completion.

        OPTIONAL
      • contentLanguage

        🡅  🡇    
        public final java.lang.String contentLanguage
        Only set for documents, contains the document's content language.

        OPTIONAL
      • documentEncoding

        🡅  🡇    
        public final java.lang.String documentEncoding
        Only set for documents, contains the document's character set encoding.

        OPTIONAL
      • publicId

        🡅  🡇    
        public final java.lang.String publicId
        DocumentType node's publicId.

        OPTIONAL
      • systemId

        🡅  🡇    
        public final java.lang.String systemId
        DocumentType node's systemId.

        OPTIONAL
      • frameId

        🡅  🡇    
        public final java.lang.String frameId
        Frame ID for frame owner elements and also for the document node.

        OPTIONAL
      • contentDocumentIndex

        🡅  🡇    
        public final java.lang.Integer contentDocumentIndex
        The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.

        OPTIONAL
      • isClickable

        🡅  🡇    
        public final 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.

        OPTIONAL
      • currentSourceURL

        🡅  🡇    
        public final java.lang.String currentSourceURL
        The selected url for nodes with a srcset attribute.

        OPTIONAL
      • originURL

        🡅  🡇    
        public final java.lang.String originURL
        The url of the script (if any) that generates this node.

        OPTIONAL
      • scrollOffsetX

        🡅  🡇    
        public final java.lang.Number scrollOffsetX
        Scroll offsets, set when this node is a Document.

        OPTIONAL
    • Constructor Detail

      • DOMNode

        🡅  🡇    
        public DOMNode​(int nodeType,
                       java.lang.String nodeName,
                       java.lang.String nodeValue,
                       java.lang.String textValue,
                       java.lang.String inputValue,
                       java.lang.Boolean inputChecked,
                       java.lang.Boolean optionSelected,
                       int backendNodeId,
                       int[] childNodeIndexes,
                       DOMSnapshot.NameValue[] attributes,
                       int[] pseudoElementIndexes,
                       java.lang.Integer layoutNodeIndex,
                       java.lang.String documentURL,
                       java.lang.String baseURL,
                       java.lang.String contentLanguage,
                       java.lang.String documentEncoding,
                       java.lang.String publicId,
                       java.lang.String systemId,
                       java.lang.String frameId,
                       java.lang.Integer contentDocumentIndex,
                       java.lang.String pseudoType,
                       java.lang.String shadowRootType,
                       java.lang.Boolean isClickable,
                       DOMDebugger.EventListener[] eventListeners,
                       java.lang.String currentSourceURL,
                       java.lang.String originURL,
                       java.lang.Number scrollOffsetX,
                       java.lang.Number scrollOffsetY)
        Constructor
        Parameters:
        nodeType - Node's nodeType.
        nodeName - Node's nodeName.
        nodeValue - Node's nodeValue.
        textValue - Only set for textarea elements, contains the text value.
        OPTIONAL
        inputValue - Only set for input elements, contains the input's associated text value.
        OPTIONAL
        inputChecked - Only set for radio and checkbox input elements, indicates if the element has been checked
        OPTIONAL
        optionSelected - Only set for option elements, indicates if the element has been selected
        OPTIONAL
        backendNodeId - Node's id, corresponds to DOM.Node.backendNodeId.
        childNodeIndexes - The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.
        OPTIONAL
        attributes - Attributes of an Element node.
        OPTIONAL
        pseudoElementIndexes - Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.
        OPTIONAL
        layoutNodeIndex - The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.
        OPTIONAL
        documentURL - Document URL that Document or FrameOwner node points to.
        OPTIONAL
        baseURL - Base URL that Document or FrameOwner node uses for URL completion.
        OPTIONAL
        contentLanguage - Only set for documents, contains the document's content language.
        OPTIONAL
        documentEncoding - Only set for documents, contains the document's character set encoding.
        OPTIONAL
        publicId - DocumentType node's publicId.
        OPTIONAL
        systemId - DocumentType node's systemId.
        OPTIONAL
        frameId - Frame ID for frame owner elements and also for the document node.
        OPTIONAL
        contentDocumentIndex - The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.
        OPTIONAL
        pseudoType - Type of a pseudo element node.
        OPTIONAL
        shadowRootType - Shadow root type.
        OPTIONAL
        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.
        OPTIONAL
        eventListeners - Details of the node's event listeners, if any.
        OPTIONAL
        currentSourceURL - The selected url for nodes with a srcset attribute.
        OPTIONAL
        originURL - The url of the script (if any) that generates this node.
        OPTIONAL
        scrollOffsetX - Scroll offsets, set when this node is a Document.
        OPTIONAL
        scrollOffsetY - -
        OPTIONAL
      • DOMNode

        🡅  🡇    
        public DOMNode​(JsonObject jo)
        JSON Object Constructor
        Parameters:
        jo - A Json-Object having data about an instance of 'DOMNode'.
    • Method Detail

      • optionals

        🡅    
        public boolean[] optionals()
        Description copied from class: BaseType
        Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding a JsonObject to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array position TRUE.

        NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
        Specified by:
        optionals in class BaseType
        Returns:
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.