-
public final class DOMNodeA Node in the DOM tree.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DOMNode(Integer nodeType, String nodeName, String nodeValue, String textValue, String inputValue, Boolean inputChecked, Boolean optionSelected, Integer backendNodeId, List<Integer> childNodeIndexes, List<NameValue> attributes, List<Integer> pseudoElementIndexes, Integer layoutNodeIndex, String documentURL, String baseURL, String contentLanguage, String documentEncoding, String publicId, String systemId, String frameId, Integer contentDocumentIndex, PseudoType pseudoType, ShadowRootType shadowRootType, Boolean isClickable, List<EventListener> eventListeners, String currentSourceURL, String originURL, Double scrollOffsetX, Double scrollOffsetY)
-
Method Summary
Modifier and Type Method Description final Integercomponent1()final Stringcomponent2()final Stringcomponent3()final Stringcomponent4()final Stringcomponent5()final Booleancomponent6()final Booleancomponent7()final Integercomponent8()final List<Integer>component9()final List<NameValue>component10()final List<Integer>component11()final Integercomponent12()final Stringcomponent13()final Stringcomponent14()final Stringcomponent15()final Stringcomponent16()final Stringcomponent17()final Stringcomponent18()final Stringcomponent19()final Integercomponent20()final PseudoTypecomponent21()final ShadowRootTypecomponent22()final Booleancomponent23()final List<EventListener>component24()final Stringcomponent25()final Stringcomponent26()final Doublecomponent27()final Doublecomponent28()final DOMNodecopy(Integer nodeType, String nodeName, String nodeValue, String textValue, String inputValue, Boolean inputChecked, Boolean optionSelected, Integer backendNodeId, List<Integer> childNodeIndexes, List<NameValue> attributes, List<Integer> pseudoElementIndexes, Integer layoutNodeIndex, String documentURL, String baseURL, String contentLanguage, String documentEncoding, String publicId, String systemId, String frameId, Integer contentDocumentIndex, PseudoType pseudoType, ShadowRootType shadowRootType, Boolean isClickable, List<EventListener> eventListeners, String currentSourceURL, String originURL, Double scrollOffsetX, Double scrollOffsetY)final IntegergetNodeType()Node's nodeType.final StringgetNodeName()Node's nodeName.final StringgetNodeValue()Node's nodeValue.final StringgetTextValue()Only set for textarea elements, contains the text value. final StringgetInputValue()Only set for input elements, contains the input's associated text value. final BooleangetInputChecked()Only set for radio and checkbox input elements, indicates if the element has been checked final BooleangetOptionSelected()Only set for option elements, indicates if the element has been selected final IntegergetBackendNodeId()Node's id, corresponds to DOM.Node.backendNodeId.final List<Integer>getChildNodeIndexes()The indexes of the node's child nodes in the domNodesarray returned bygetSnapshot, if any.final List<NameValue>getAttributes()Attributes of an Elementnode.final List<Integer>getPseudoElementIndexes()Indexes of pseudo elements associated with this node in the domNodesarray returned bygetSnapshot, if any.final IntegergetLayoutNodeIndex()The index of the node's related layout tree node in the layoutTreeNodesarray returned bygetSnapshot, if any.final StringgetDocumentURL()Document URL that DocumentorFrameOwnernode points to.final StringgetBaseURL()Base URL that DocumentorFrameOwnernode uses for URL completion.final StringgetContentLanguage()Only set for documents, contains the document's content language. final StringgetDocumentEncoding()Only set for documents, contains the document's character set encoding. final StringgetPublicId()DocumentTypenode's publicId.final StringgetSystemId()DocumentTypenode's systemId.final StringgetFrameId()Frame ID for frame owner elements and also for the document node. final IntegergetContentDocumentIndex()The index of a frame owner element's content document in the domNodesarray returned bygetSnapshot, if any.final PseudoTypegetPseudoType()Type of a pseudo element node. final ShadowRootTypegetShadowRootType()Shadow root type. final BooleangetIsClickable()Whether this DOM node responds to mouse clicks. final List<EventListener>getEventListeners()Details of the node's event listeners, if any. final StringgetCurrentSourceURL()The selected url for nodes with a srcset attribute. final StringgetOriginURL()The url of the script (if any) that generates this node. final DoublegetScrollOffsetX()Scroll offsets, set when this node is a Document. final DoublegetScrollOffsetY()-
-
Constructor Detail
-
DOMNode
DOMNode(Integer nodeType, String nodeName, String nodeValue, String textValue, String inputValue, Boolean inputChecked, Boolean optionSelected, Integer backendNodeId, List<Integer> childNodeIndexes, List<NameValue> attributes, List<Integer> pseudoElementIndexes, Integer layoutNodeIndex, String documentURL, String baseURL, String contentLanguage, String documentEncoding, String publicId, String systemId, String frameId, Integer contentDocumentIndex, PseudoType pseudoType, ShadowRootType shadowRootType, Boolean isClickable, List<EventListener> eventListeners, String currentSourceURL, String originURL, Double scrollOffsetX, Double scrollOffsetY)
-
-
Method Detail
-
component1
final Integer component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final String component4()
-
component5
final String component5()
-
component6
final Boolean component6()
-
component7
final Boolean component7()
-
component8
final Integer component8()
-
component9
final List<Integer> component9()
-
component10
final List<NameValue> component10()
-
component11
final List<Integer> component11()
-
component12
final Integer component12()
-
component13
final String component13()
-
component14
final String component14()
-
component15
final String component15()
-
component16
final String component16()
-
component17
final String component17()
-
component18
final String component18()
-
component19
final String component19()
-
component20
final Integer component20()
-
component21
final PseudoType component21()
-
component22
final ShadowRootType component22()
-
component23
final Boolean component23()
-
component24
final List<EventListener> component24()
-
component25
final String component25()
-
component26
final String component26()
-
component27
final Double component27()
-
component28
final Double component28()
-
copy
final DOMNode copy(Integer nodeType, String nodeName, String nodeValue, String textValue, String inputValue, Boolean inputChecked, Boolean optionSelected, Integer backendNodeId, List<Integer> childNodeIndexes, List<NameValue> attributes, List<Integer> pseudoElementIndexes, Integer layoutNodeIndex, String documentURL, String baseURL, String contentLanguage, String documentEncoding, String publicId, String systemId, String frameId, Integer contentDocumentIndex, PseudoType pseudoType, ShadowRootType shadowRootType, Boolean isClickable, List<EventListener> eventListeners, String currentSourceURL, String originURL, Double scrollOffsetX, Double scrollOffsetY)
-
getNodeType
final Integer getNodeType()
Node's nodeType.
-
getNodeName
final String getNodeName()
Node's nodeName.
-
getNodeValue
final String getNodeValue()
Node's nodeValue.
-
getTextValue
final String getTextValue()
Only set for textarea elements, contains the text value.
-
getInputValue
final String getInputValue()
Only set for input elements, contains the input's associated text value.
-
getInputChecked
final Boolean getInputChecked()
Only set for radio and checkbox input elements, indicates if the element has been checked
-
getOptionSelected
final Boolean getOptionSelected()
Only set for option elements, indicates if the element has been selected
-
getBackendNodeId
final Integer getBackendNodeId()
Node's id, corresponds to DOM.Node.backendNodeId.
-
getChildNodeIndexes
final List<Integer> getChildNodeIndexes()
The indexes of the node's child nodes in the
domNodesarray returned bygetSnapshot, if any.
-
getAttributes
final List<NameValue> getAttributes()
Attributes of an
Elementnode.
-
getPseudoElementIndexes
final List<Integer> getPseudoElementIndexes()
Indexes of pseudo elements associated with this node in the
domNodesarray returned bygetSnapshot, if any.
-
getLayoutNodeIndex
final Integer getLayoutNodeIndex()
The index of the node's related layout tree node in the
layoutTreeNodesarray returned bygetSnapshot, if any.
-
getDocumentURL
final String getDocumentURL()
Document URL that
DocumentorFrameOwnernode points to.
-
getBaseURL
final String getBaseURL()
Base URL that
DocumentorFrameOwnernode uses for URL completion.
-
getContentLanguage
final String getContentLanguage()
Only set for documents, contains the document's content language.
-
getDocumentEncoding
final String getDocumentEncoding()
Only set for documents, contains the document's character set encoding.
-
getPublicId
final String getPublicId()
DocumentTypenode's publicId.
-
getSystemId
final String getSystemId()
DocumentTypenode's systemId.
-
getFrameId
final String getFrameId()
Frame ID for frame owner elements and also for the document node.
-
getContentDocumentIndex
final Integer getContentDocumentIndex()
The index of a frame owner element's content document in the
domNodesarray returned bygetSnapshot, if any.
-
getPseudoType
final PseudoType getPseudoType()
Type of a pseudo element node.
-
getShadowRootType
final ShadowRootType getShadowRootType()
Shadow root type.
-
getIsClickable
final Boolean 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
final List<EventListener> getEventListeners()
Details of the node's event listeners, if any.
-
getCurrentSourceURL
final String getCurrentSourceURL()
The selected url for nodes with a srcset attribute.
-
getOriginURL
final String getOriginURL()
The url of the script (if any) that generates this node.
-
getScrollOffsetX
final Double getScrollOffsetX()
Scroll offsets, set when this node is a Document.
-
getScrollOffsetY
final Double getScrollOffsetY()
-
-
-
-