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