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