chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.domsnapshot / DOMNode

DOMNode

data class DOMNode

A Node in the DOM tree.

Constructors

<init>

A Node in the DOM tree.

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

Attributes of an Element node.

val attributes: List<NameValue>?

backendNodeId

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

val backendNodeId: BackendNodeId

baseURL

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

val baseURL: String?

childNodeIndexes

The indexes of the node's child nodes in the domNodes array returned by getSnapshot, if any.

val childNodeIndexes: List<Int>?

contentDocumentIndex

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

val contentDocumentIndex: Int?

contentLanguage

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

val contentLanguage: String?

currentSourceURL

The selected url for nodes with a srcset attribute.

val currentSourceURL: String?

documentEncoding

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

val documentEncoding: String?

documentURL

Document URL that Document or FrameOwner node points to.

val documentURL: String?

eventListeners

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

val eventListeners: List<EventListener>?

frameId

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

val frameId: FrameId?

inputChecked

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

val inputChecked: Boolean?

inputValue

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

val inputValue: String?

isClickable

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.

val isClickable: Boolean?

layoutNodeIndex

The index of the node's related layout tree node in the layoutTreeNodes array returned by getSnapshot, if any.

val layoutNodeIndex: Int?

nodeName

Node's nodeName.

val nodeName: String

nodeType

Node's nodeType.

val nodeType: Int

nodeValue

Node's nodeValue.

val nodeValue: String

optionSelected

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

val optionSelected: Boolean?

originURL

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

val originURL: String?

pseudoElementIndexes

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

val pseudoElementIndexes: List<Int>?

pseudoType

Type of a pseudo element node.

val pseudoType: PseudoType?

publicId

DocumentType node's publicId.

val publicId: String?

scrollOffsetX

Scroll offsets, set when this node is a Document.

val scrollOffsetX: Double?

scrollOffsetY

val scrollOffsetY: Double?

shadowRootType

Shadow root type.

val shadowRootType: ShadowRootType?

systemId

DocumentType node's systemId.

val systemId: String?

textValue

Only set for textarea elements, contains the text value.

val textValue: String?