pl.wendigo.chrome.domain.domsnapshot / DOMNode

DOMNode

data class DOMNode (source)

A Node in the DOM tree.

Constructors

<init>

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)

A Node in the DOM tree.

Properties

attributes

val attributes: List<NameValue>?

Attributes of an Element node.

backendNodeId

val backendNodeId: BackendNodeId

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

baseURL

val baseURL: String?

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

childNodeIndexes

val childNodeIndexes: List<Int>?

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

contentDocumentIndex

val contentDocumentIndex: Int?

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

contentLanguage

val contentLanguage: String?

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

currentSourceURL

val currentSourceURL: String?

The selected url for nodes with a srcset attribute.

documentEncoding

val documentEncoding: String?

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

documentURL

val documentURL: String?

Document URL that Document or FrameOwner node points to.

eventListeners

val eventListeners: List<EventListener>?

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

frameId

val frameId: FrameId?

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

inputChecked

val inputChecked: Boolean?

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

inputValue

val inputValue: String?

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

isClickable

val isClickable: Boolean?

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.

layoutNodeIndex

val layoutNodeIndex: Int?

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

nodeName

val nodeName: String

Node's nodeName.

nodeType

val nodeType: Int

Node's nodeType.

nodeValue

val nodeValue: String

Node's nodeValue.

optionSelected

val optionSelected: Boolean?

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

originURL

val originURL: String?

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

pseudoElementIndexes

val pseudoElementIndexes: List<Int>?

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

pseudoType

val pseudoType: PseudoType?

Type of a pseudo element node.

publicId

val publicId: String?

DocumentType node's publicId.

scrollOffsetX

val scrollOffsetX: Double?

Scroll offsets, set when this node is a Document.

scrollOffsetY

val scrollOffsetY: Double?

shadowRootType

val shadowRootType: ShadowRootType?

Shadow root type.

systemId

val systemId: String?

DocumentType node's systemId.

textValue

val textValue: String?

Only set for textarea elements, contains the text value.