Class DOMNode
java.lang.Object
io.webfolder.cdp.type.domsnapshot.DOMNode
A Node in the DOM tree.
-
Constructor Summary
Constructors -
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 input elements, contains the input's associated text value.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.The 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.Only set for radio and checkbox input elements, indicates if the element has been checkedWhether this DOM node responds to mouse clicks.Only set for option elements, indicates if the element has been selectedvoid
setAttributes
(List<NameValue> attributes) Attributes of an Element node.void
setBackendNodeId
(Integer backendNodeId) Node's id, corresponds to DOM.Node.backendNodeId.void
setBaseURL
(String baseURL) Base URL that Document or FrameOwner node uses for URL completion.void
setChildNodeIndexes
(List<Integer> childNodeIndexes) The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.void
setContentDocumentIndex
(Integer contentDocumentIndex) The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.void
setContentLanguage
(String contentLanguage) Only set for documents, contains the document's content language.void
setCurrentSourceURL
(String currentSourceURL) The selected url for nodes with a srcset attribute.void
setDocumentEncoding
(String documentEncoding) Only set for documents, contains the document's character set encoding.void
setDocumentURL
(String documentURL) Document URL that Document or FrameOwner node points to.void
setEventListeners
(List<EventListener> eventListeners) Details of the node's event listeners, if any.void
setFrameId
(String frameId) Frame ID for frame owner elements and also for the document node.void
setInputChecked
(Boolean inputChecked) Only set for radio and checkbox input elements, indicates if the element has been checkedvoid
setInputValue
(String inputValue) Only set for input elements, contains the input's associated text value.void
setIsClickable
(Boolean isClickable) Whether this DOM node responds to mouse clicks.void
setLayoutNodeIndex
(Integer layoutNodeIndex) The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.void
setNodeName
(String nodeName) Node's nodeName.void
setNodeType
(Integer nodeType) Node's nodeType.void
setNodeValue
(String nodeValue) Node's nodeValue.void
setOptionSelected
(Boolean optionSelected) Only set for option elements, indicates if the element has been selectedvoid
setOriginURL
(String originURL) The url of the script (if any) that generates this node.void
setPseudoElementIndexes
(List<Integer> pseudoElementIndexes) Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.void
setPseudoType
(PseudoType pseudoType) Type of a pseudo element node.void
setPublicId
(String publicId) DocumentType node's publicId.void
setScrollOffsetX
(Double scrollOffsetX) Scroll offsets, set when this node is a Document.void
setScrollOffsetY
(Double scrollOffsetY) void
setShadowRootType
(ShadowRootType shadowRootType) Shadow root type.void
setSystemId
(String systemId) DocumentType node's systemId.void
setTextValue
(String textValue) Only set for textarea elements, contains the text value.toString()
-
Constructor Details
-
DOMNode
public DOMNode()
-
-
Method Details
-
getNodeType
Node's nodeType. -
setNodeType
Node's nodeType. -
getNodeName
Node's nodeName. -
setNodeName
Node's nodeName. -
getNodeValue
Node's nodeValue. -
setNodeValue
Node's nodeValue. -
getTextValue
Only set for textarea elements, contains the text value. -
setTextValue
Only set for textarea elements, contains the text value. -
getInputValue
Only set for input elements, contains the input's associated text value. -
setInputValue
Only set for input elements, contains the input's associated text value. -
isInputChecked
Only set for radio and checkbox input elements, indicates if the element has been checked -
setInputChecked
Only set for radio and checkbox input elements, indicates if the element has been checked -
isOptionSelected
Only set for option elements, indicates if the element has been selected -
setOptionSelected
Only set for option elements, indicates if the element has been selected -
getBackendNodeId
Node's id, corresponds to DOM.Node.backendNodeId. -
setBackendNodeId
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. -
setChildNodeIndexes
The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any. -
getAttributes
Attributes of an Element node. -
setAttributes
Attributes of an Element node. -
getPseudoElementIndexes
Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any. -
setPseudoElementIndexes
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. -
setLayoutNodeIndex
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. -
setDocumentURL
Document URL that Document or FrameOwner node points to. -
getBaseURL
Base URL that Document or FrameOwner node uses for URL completion. -
setBaseURL
Base URL that Document or FrameOwner node uses for URL completion. -
getContentLanguage
Only set for documents, contains the document's content language. -
setContentLanguage
Only set for documents, contains the document's content language. -
getDocumentEncoding
Only set for documents, contains the document's character set encoding. -
setDocumentEncoding
Only set for documents, contains the document's character set encoding. -
getPublicId
DocumentType node's publicId. -
setPublicId
DocumentType node's publicId. -
getSystemId
DocumentType node's systemId. -
setSystemId
DocumentType node's systemId. -
getFrameId
Frame ID for frame owner elements and also for the document node. -
setFrameId
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. -
setContentDocumentIndex
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. -
setPseudoType
Type of a pseudo element node. -
getShadowRootType
Shadow root type. -
setShadowRootType
Shadow root type. -
isIsClickable
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. -
setIsClickable
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. -
setEventListeners
Details of the node's event listeners, if any. -
getCurrentSourceURL
The selected url for nodes with a srcset attribute. -
setCurrentSourceURL
The selected url for nodes with a srcset attribute. -
getOriginURL
The url of the script (if any) that generates this node. -
setOriginURL
The url of the script (if any) that generates this node. -
getScrollOffsetX
Scroll offsets, set when this node is a Document. -
setScrollOffsetX
Scroll offsets, set when this node is a Document. -
getScrollOffsetY
-
setScrollOffsetY
-
toString
-