Class NodeTreeSnapshot
- java.lang.Object
-
- org.openqa.selenium.devtools.v112.domsnapshot.model.NodeTreeSnapshot
-
public class NodeTreeSnapshot extends java.lang.Object
Table containing nodes.
-
-
Constructor Summary
Constructors Constructor Description NodeTreeSnapshot(java.util.Optional<java.util.List<java.lang.Integer>> parentIndex, java.util.Optional<java.util.List<java.lang.Integer>> nodeType, java.util.Optional<RareStringData> shadowRootType, java.util.Optional<java.util.List<StringIndex>> nodeName, java.util.Optional<java.util.List<StringIndex>> nodeValue, java.util.Optional<java.util.List<BackendNodeId>> backendNodeId, java.util.Optional<java.util.List<ArrayOfStrings>> attributes, java.util.Optional<RareStringData> textValue, java.util.Optional<RareStringData> inputValue, java.util.Optional<RareBooleanData> inputChecked, java.util.Optional<RareBooleanData> optionSelected, java.util.Optional<RareIntegerData> contentDocumentIndex, java.util.Optional<RareStringData> pseudoType, java.util.Optional<RareStringData> pseudoIdentifier, java.util.Optional<RareBooleanData> isClickable, java.util.Optional<RareStringData> currentSourceURL, java.util.Optional<RareStringData> originURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.util.List<ArrayOfStrings>>
getAttributes()
Attributes of an `Element` node.java.util.Optional<java.util.List<BackendNodeId>>
getBackendNodeId()
`Node`'s id, corresponds to DOM.Node.backendNodeId.java.util.Optional<RareIntegerData>
getContentDocumentIndex()
The index of the document in the list of the snapshot documents.java.util.Optional<RareStringData>
getCurrentSourceURL()
The selected url for nodes with a srcset attribute.java.util.Optional<RareBooleanData>
getInputChecked()
Only set for radio and checkbox input elements, indicates if the element has been checkedjava.util.Optional<RareStringData>
getInputValue()
Only set for input elements, contains the input's associated text value.java.util.Optional<RareBooleanData>
getIsClickable()
Whether this DOM node responds to mouse clicks.java.util.Optional<java.util.List<StringIndex>>
getNodeName()
`Node`'s nodeName.java.util.Optional<java.util.List<java.lang.Integer>>
getNodeType()
`Node`'s nodeType.java.util.Optional<java.util.List<StringIndex>>
getNodeValue()
`Node`'s nodeValue.java.util.Optional<RareBooleanData>
getOptionSelected()
Only set for option elements, indicates if the element has been selectedjava.util.Optional<RareStringData>
getOriginURL()
The url of the script (if any) that generates this node.java.util.Optional<java.util.List<java.lang.Integer>>
getParentIndex()
Parent node index.java.util.Optional<RareStringData>
getPseudoIdentifier()
Pseudo element identifier for this node.java.util.Optional<RareStringData>
getPseudoType()
Type of a pseudo element node.java.util.Optional<RareStringData>
getShadowRootType()
Type of the shadow root the `Node` is in.java.util.Optional<RareStringData>
getTextValue()
Only set for textarea elements, contains the text value.
-
-
-
Constructor Detail
-
NodeTreeSnapshot
public NodeTreeSnapshot(java.util.Optional<java.util.List<java.lang.Integer>> parentIndex, java.util.Optional<java.util.List<java.lang.Integer>> nodeType, java.util.Optional<RareStringData> shadowRootType, java.util.Optional<java.util.List<StringIndex>> nodeName, java.util.Optional<java.util.List<StringIndex>> nodeValue, java.util.Optional<java.util.List<BackendNodeId>> backendNodeId, java.util.Optional<java.util.List<ArrayOfStrings>> attributes, java.util.Optional<RareStringData> textValue, java.util.Optional<RareStringData> inputValue, java.util.Optional<RareBooleanData> inputChecked, java.util.Optional<RareBooleanData> optionSelected, java.util.Optional<RareIntegerData> contentDocumentIndex, java.util.Optional<RareStringData> pseudoType, java.util.Optional<RareStringData> pseudoIdentifier, java.util.Optional<RareBooleanData> isClickable, java.util.Optional<RareStringData> currentSourceURL, java.util.Optional<RareStringData> originURL)
-
-
Method Detail
-
getParentIndex
public java.util.Optional<java.util.List<java.lang.Integer>> getParentIndex()
Parent node index.
-
getNodeType
public java.util.Optional<java.util.List<java.lang.Integer>> getNodeType()
`Node`'s nodeType.
-
getShadowRootType
public java.util.Optional<RareStringData> getShadowRootType()
Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum.
-
getNodeName
public java.util.Optional<java.util.List<StringIndex>> getNodeName()
`Node`'s nodeName.
-
getNodeValue
public java.util.Optional<java.util.List<StringIndex>> getNodeValue()
`Node`'s nodeValue.
-
getBackendNodeId
public java.util.Optional<java.util.List<BackendNodeId>> getBackendNodeId()
`Node`'s id, corresponds to DOM.Node.backendNodeId.
-
getAttributes
public java.util.Optional<java.util.List<ArrayOfStrings>> getAttributes()
Attributes of an `Element` node. Flatten name, value pairs.
-
getTextValue
public java.util.Optional<RareStringData> getTextValue()
Only set for textarea elements, contains the text value.
-
getInputValue
public java.util.Optional<RareStringData> getInputValue()
Only set for input elements, contains the input's associated text value.
-
getInputChecked
public java.util.Optional<RareBooleanData> getInputChecked()
Only set for radio and checkbox input elements, indicates if the element has been checked
-
getOptionSelected
public java.util.Optional<RareBooleanData> getOptionSelected()
Only set for option elements, indicates if the element has been selected
-
getContentDocumentIndex
public java.util.Optional<RareIntegerData> getContentDocumentIndex()
The index of the document in the list of the snapshot documents.
-
getPseudoType
public java.util.Optional<RareStringData> getPseudoType()
Type of a pseudo element node.
-
getPseudoIdentifier
public java.util.Optional<RareStringData> getPseudoIdentifier()
Pseudo element identifier for this node. Only present if there is a valid pseudoType.
-
getIsClickable
public java.util.Optional<RareBooleanData> getIsClickable()
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.
-
getCurrentSourceURL
public java.util.Optional<RareStringData> getCurrentSourceURL()
The selected url for nodes with a srcset attribute.
-
getOriginURL
public java.util.Optional<RareStringData> getOriginURL()
The url of the script (if any) that generates this node.
-
-