DOMNode

data class DOMNode(nodeType: Int, nodeName: String, nodeValue: String, textValue: String?, inputValue: String?, inputChecked: Boolean?, optionSelected: Boolean?, backendNodeId: BackendNodeId, childNodeIndexes: List<Int>?, attributes: List<NameValue>?, pseudoElementIndexes: List<Int>?, layoutNodeIndex: Int?, documentURL: String?, baseURL: String?, contentLanguage: String?, documentEncoding: String?, publicId: String?, systemId: String?, frameId: FrameId?, contentDocumentIndex: Int?, pseudoType: PseudoType?, shadowRootType: ShadowRootType?, isClickable: Boolean?, eventListeners: List<EventListener>?, currentSourceURL: String?, originURL: String?, scrollOffsetX: Double?, scrollOffsetY: Double?)

A Node in the DOM tree.

Constructors

DOMNode
Link copied to clipboard
fun DOMNode(nodeType: Int, nodeName: String, nodeValue: String, textValue: String? = null, inputValue: String? = null, inputChecked: Boolean? = null, optionSelected: Boolean? = null, backendNodeId: BackendNodeId, childNodeIndexes: List<Int>? = null, attributes: List<NameValue>? = null, pseudoElementIndexes: List<Int>? = null, layoutNodeIndex: Int? = null, documentURL: String? = null, baseURL: String? = null, contentLanguage: String? = null, documentEncoding: String? = null, publicId: String? = null, systemId: String? = null, frameId: FrameId? = null, contentDocumentIndex: Int? = null, pseudoType: PseudoType? = null, shadowRootType: ShadowRootType? = null, isClickable: Boolean? = null, eventListeners: List<EventListener>? = null, currentSourceURL: String? = null, originURL: String? = null, scrollOffsetX: Double? = null, scrollOffsetY: Double? = null)

Properties

attributes
Link copied to clipboard
val attributes: List<NameValue>? = null
Attributes of an Element node.
backendNodeId
Link copied to clipboard
val backendNodeId: BackendNodeId
Node's id, corresponds to DOM.Node.backendNodeId.
baseURL
Link copied to clipboard
val baseURL: String? = null
Base URL that Document or FrameOwner node uses for URL completion.
childNodeIndexes
Link copied to clipboard
val childNodeIndexes: List<Int>? = null
The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.
contentDocumentIndex
Link copied to clipboard
val contentDocumentIndex: Int? = null
The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.
contentLanguage
Link copied to clipboard
val contentLanguage: String? = null
Only set for documents, contains the document's content language.
currentSourceURL
Link copied to clipboard
val currentSourceURL: String? = null
The selected url for nodes with a srcset attribute.
documentEncoding
Link copied to clipboard
val documentEncoding: String? = null
Only set for documents, contains the document's character set encoding.
documentURL
Link copied to clipboard
val documentURL: String? = null
Document URL that Document or FrameOwner node points to.
eventListeners
Link copied to clipboard
val eventListeners: List<EventListener>? = null
Details of the node's event listeners, if any.
frameId
Link copied to clipboard
val frameId: FrameId? = null
Frame ID for frame owner elements and also for the document node.
inputChecked
Link copied to clipboard
val inputChecked: Boolean? = null
Only set for radio and checkbox input elements, indicates if the element has been checked
inputValue
Link copied to clipboard
val inputValue: String? = null
Only set for input elements, contains the input's associated text value.
isClickable
Link copied to clipboard
val isClickable: Boolean? = null
Whether this DOM node responds to mouse clicks.
layoutNodeIndex
Link copied to clipboard
val layoutNodeIndex: Int? = null
The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.
nodeName
Link copied to clipboard
val nodeName: String
Node's nodeName.
nodeType
Link copied to clipboard
val nodeType: Int
Node's nodeType.
nodeValue
Link copied to clipboard
val nodeValue: String
Node's nodeValue.
optionSelected
Link copied to clipboard
val optionSelected: Boolean? = null
Only set for option elements, indicates if the element has been selected
originURL
Link copied to clipboard
val originURL: String? = null
The url of the script (if any) that generates this node.
pseudoElementIndexes
Link copied to clipboard
val pseudoElementIndexes: List<Int>? = null
Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.
pseudoType
Link copied to clipboard
val pseudoType: PseudoType? = null
Type of a pseudo element node.
publicId
Link copied to clipboard
val publicId: String? = null
DocumentType node's publicId.
scrollOffsetX
Link copied to clipboard
val scrollOffsetX: Double? = null
Scroll offsets, set when this node is a Document.
scrollOffsetY
Link copied to clipboard
val scrollOffsetY: Double? = null
shadowRootType
Link copied to clipboard
val shadowRootType: ShadowRootType? = null
Shadow root type.
systemId
Link copied to clipboard
val systemId: String? = null
DocumentType node's systemId.
textValue
Link copied to clipboard
val textValue: String? = null
Only set for textarea elements, contains the text value.

Sources

jvm source
Link copied to clipboard