Class DOMNode
java.lang.Object
org.openqa.selenium.devtools.v119.domsnapshot.model.DOMNode
A Node in the DOM tree.
-
Constructor Summary
ConstructorDescriptionDOMNode
(Integer nodeType, String nodeName, String nodeValue, Optional<String> textValue, Optional<String> inputValue, Optional<Boolean> inputChecked, Optional<Boolean> optionSelected, BackendNodeId backendNodeId, Optional<List<Integer>> childNodeIndexes, Optional<List<NameValue>> attributes, Optional<List<Integer>> pseudoElementIndexes, Optional<Integer> layoutNodeIndex, Optional<String> documentURL, Optional<String> baseURL, Optional<String> contentLanguage, Optional<String> documentEncoding, Optional<String> publicId, Optional<String> systemId, Optional<FrameId> frameId, Optional<Integer> contentDocumentIndex, Optional<PseudoType> pseudoType, Optional<ShadowRootType> shadowRootType, Optional<Boolean> isClickable, Optional<List<EventListener>> eventListeners, Optional<String> currentSourceURL, Optional<String> originURL, Optional<Number> scrollOffsetX, Optional<Number> scrollOffsetY) -
Method Summary
Modifier and TypeMethodDescriptionAttributes of an `Element` node.`Node`'s id, corresponds to DOM.Node.backendNodeId.Base URL that `Document` or `FrameOwner` node uses for URL completion.The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if any.The index of a frame owner element's content document in the `domNodes` array returned by `getSnapshot`, if any.Only set for documents, contains the document's content language.The selected url for nodes with a srcset attribute.Only set for documents, contains the document's character set encoding.Document URL that `Document` or `FrameOwner` node points to.Details of the node's event listeners, if any.Frame ID for frame owner elements and also for the document node.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.The index of the node's related layout tree node in the `layoutTreeNodes` array returned by `getSnapshot`, if any.`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.Indexes of pseudo elements associated with this node in the `domNodes` array returned by `getSnapshot`, if any.Type of a pseudo element node.`DocumentType` node's publicId.Scroll offsets, set when this node is a Document.Shadow root type.`DocumentType` node's systemId.Only set for textarea elements, contains the text value.
-
Constructor Details
-
DOMNode
public DOMNode(Integer nodeType, String nodeName, String nodeValue, Optional<String> textValue, Optional<String> inputValue, Optional<Boolean> inputChecked, Optional<Boolean> optionSelected, BackendNodeId backendNodeId, Optional<List<Integer>> childNodeIndexes, Optional<List<NameValue>> attributes, Optional<List<Integer>> pseudoElementIndexes, Optional<Integer> layoutNodeIndex, Optional<String> documentURL, Optional<String> baseURL, Optional<String> contentLanguage, Optional<String> documentEncoding, Optional<String> publicId, Optional<String> systemId, Optional<FrameId> frameId, Optional<Integer> contentDocumentIndex, Optional<PseudoType> pseudoType, Optional<ShadowRootType> shadowRootType, Optional<Boolean> isClickable, Optional<List<EventListener>> eventListeners, Optional<String> currentSourceURL, Optional<String> originURL, Optional<Number> scrollOffsetX, Optional<Number> scrollOffsetY)
-
-
Method Details
-
getNodeType
`Node`'s nodeType. -
getNodeName
`Node`'s nodeName. -
getNodeValue
`Node`'s nodeValue. -
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 -
getBackendNodeId
`Node`'s id, corresponds to DOM.Node.backendNodeId. -
getChildNodeIndexes
The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if any. -
getAttributes
Attributes of an `Element` node. -
getPseudoElementIndexes
Indexes of pseudo elements associated with this node in the `domNodes` array returned by `getSnapshot`, if any. -
getLayoutNodeIndex
The index of the node's related layout tree node in the `layoutTreeNodes` array returned by `getSnapshot`, if any. -
getDocumentURL
Document URL that `Document` or `FrameOwner` node points to. -
getBaseURL
Base URL that `Document` or `FrameOwner` node uses for URL completion. -
getContentLanguage
Only set for documents, contains the document's content language. -
getDocumentEncoding
Only set for documents, contains the document's character set encoding. -
getPublicId
`DocumentType` node's publicId. -
getSystemId
`DocumentType` node's systemId. -
getFrameId
Frame ID for frame owner elements and also for the document node. -
getContentDocumentIndex
The index of a frame owner element's content document in the `domNodes` array returned by `getSnapshot`, if any. -
getPseudoType
Type of a pseudo element node. -
getShadowRootType
Shadow root type. -
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. -
getEventListeners
Details of the node's event listeners, if any. -
getCurrentSourceURL
The selected url for nodes with a srcset attribute. -
getOriginURL
The url of the script (if any) that generates this node. -
getScrollOffsetX
Scroll offsets, set when this node is a Document. -
getScrollOffsetY
-