Class DOMNode
java.lang.Object
org.openqa.selenium.devtools.v150.domsnapshot.model.DOMNode
A Node in the DOM tree.
-
Constructor Summary
ConstructorsConstructorDescriptionDOMNode(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
-
getInputValue
-
getInputChecked
-
getOptionSelected
-
getBackendNodeId
`Node`'s id, corresponds to DOM.Node.backendNodeId. -
getChildNodeIndexes
-
getAttributes
-
getPseudoElementIndexes
-
getLayoutNodeIndex
-
getDocumentURL
-
getBaseURL
-
getContentLanguage
-
getDocumentEncoding
-
getPublicId
-
getSystemId
-
getFrameId
-
getContentDocumentIndex
-
getPseudoType
Type of a pseudo element node. -
getShadowRootType
Shadow root type. -
getIsClickable
-
getEventListeners
Details of the node's event listeners, if any. -
getCurrentSourceURL
-
getOriginURL
-
getScrollOffsetX
-
getScrollOffsetY
-