DOMNode

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

A Node in the DOM tree.

Constructors

Link copied to clipboard
constructor(nodeType: Int, nodeName: String, nodeValue: String, textValue: String? = null, inputValue: String? = null, inputChecked: Boolean? = null, optionSelected: Boolean? = null, backendNodeId: Int, childNodeIndexes: List<Int>? = null, attributes: List<DOMSnapshot.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: String? = null, contentDocumentIndex: Int? = null, pseudoType: DOM.PseudoType? = null, shadowRootType: DOM.ShadowRootType? = null, isClickable: Boolean? = null, eventListeners: List<DOMDebugger.EventListener>? = null, currentSourceURL: String? = null, originURL: String? = null, scrollOffsetX: Double? = null, scrollOffsetY: Double? = null)

Properties

Link copied to clipboard

Attributes of an Element node.

Link copied to clipboard

Node's id, corresponds to DOM.Node.backendNodeId.

Link copied to clipboard
val baseURL: String? = null

Base URL that Document or FrameOwner node uses for URL completion.

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.

Link copied to clipboard

The index of a frame owner element's content document in the domNodes array returned by getSnapshot, if any.

Link copied to clipboard
val contentLanguage: String? = null

Only set for documents, contains the document's content language.

Link copied to clipboard

The selected url for nodes with a srcset attribute.

Link copied to clipboard

Only set for documents, contains the document's character set encoding.

Link copied to clipboard
val documentURL: String? = null

Document URL that Document or FrameOwner node points to.

Link copied to clipboard

Details of the node's event listeners, if any.

Link copied to clipboard
val frameId: String? = null

Frame ID for frame owner elements and also for the document node.

Link copied to clipboard
val inputChecked: Boolean? = null

Only set for radio and checkbox input elements, indicates if the element has been checked

Link copied to clipboard
val inputValue: String? = null

Only set for input elements, contains the input's associated text value.

Link copied to clipboard
val isClickable: Boolean? = null

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.

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.

Link copied to clipboard

Node's nodeName.

Link copied to clipboard

Node's nodeType.

Link copied to clipboard

Node's nodeValue.

Link copied to clipboard
val optionSelected: Boolean? = null

Only set for option elements, indicates if the element has been selected

Link copied to clipboard
val originURL: String? = null

The url of the script (if any) that generates this node.

Link copied to clipboard

Indexes of pseudo elements associated with this node in the domNodes array returned by getSnapshot, if any.

Link copied to clipboard

Type of a pseudo element node.

Link copied to clipboard
val publicId: String? = null

DocumentType node's publicId.

Link copied to clipboard
val scrollOffsetX: Double? = null

Scroll offsets, set when this node is a Document.

Link copied to clipboard
val scrollOffsetY: Double? = null
Link copied to clipboard

Shadow root type.

Link copied to clipboard
val systemId: String? = null

DocumentType node's systemId.

Link copied to clipboard
val textValue: String? = null

Only set for textarea elements, contains the text value.