Table of Contents

Class DOMNode

Namespace
Selenium.WebDriver.BiDi.Cdp.DOMSnapshot
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

A Node in the DOM tree.

public sealed record DOMNode : IEquatable<DOMNode>
Inheritance
DOMNode
Implements
Inherited Members

Constructors

DOMNode(long, string, string, BackendNodeId)

A Node in the DOM tree.

public DOMNode(long NodeType, string NodeName, string NodeValue, BackendNodeId BackendNodeId)

Parameters

NodeType long

Node's nodeType.

NodeName string

Node's nodeName.

NodeValue string

Node's nodeValue.

BackendNodeId BackendNodeId

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

Properties

Attributes

Attributes of an Element node.

public ImmutableArray<NameValue>? Attributes { get; init; }

Property Value

ImmutableArray<NameValue>?

BackendNodeId

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

public BackendNodeId BackendNodeId { get; init; }

Property Value

BackendNodeId

BaseURL

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

public string? BaseURL { get; init; }

Property Value

string

ChildNodeIndexes

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

public ImmutableArray<long>? ChildNodeIndexes { get; init; }

Property Value

ImmutableArray<long>?

ContentDocumentIndex

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

public long? ContentDocumentIndex { get; init; }

Property Value

long?

ContentLanguage

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

public string? ContentLanguage { get; init; }

Property Value

string

CurrentSourceURL

The selected url for nodes with a srcset attribute.

public string? CurrentSourceURL { get; init; }

Property Value

string

DocumentEncoding

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

public string? DocumentEncoding { get; init; }

Property Value

string

DocumentURL

Document URL that Document or FrameOwner node points to.

public string? DocumentURL { get; init; }

Property Value

string

EventListeners

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

public ImmutableArray<EventListener>? EventListeners { get; init; }

Property Value

ImmutableArray<EventListener>?

FrameId

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

public FrameId? FrameId { get; init; }

Property Value

FrameId

InputChecked

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

public bool? InputChecked { get; init; }

Property Value

bool?

InputValue

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

public string? InputValue { get; init; }

Property Value

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.

public bool? IsClickable { get; init; }

Property Value

bool?

LayoutNodeIndex

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

public long? LayoutNodeIndex { get; init; }

Property Value

long?

NodeName

Node's nodeName.

public string NodeName { get; init; }

Property Value

string

NodeType

Node's nodeType.

public long NodeType { get; init; }

Property Value

long

NodeValue

Node's nodeValue.

public string NodeValue { get; init; }

Property Value

string

OptionSelected

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

public bool? OptionSelected { get; init; }

Property Value

bool?

OriginURL

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

public string? OriginURL { get; init; }

Property Value

string

PseudoElementIndexes

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

public ImmutableArray<long>? PseudoElementIndexes { get; init; }

Property Value

ImmutableArray<long>?

PseudoType

Type of a pseudo element node.

public PseudoType? PseudoType { get; init; }

Property Value

PseudoType?

PublicId

DocumentType node's publicId.

public string? PublicId { get; init; }

Property Value

string

ScrollOffsetX

Scroll offsets, set when this node is a Document.

public double? ScrollOffsetX { get; init; }

Property Value

double?

ScrollOffsetY

public double? ScrollOffsetY { get; init; }

Property Value

double?

ShadowRootType

Shadow root type.

public ShadowRootType? ShadowRootType { get; init; }

Property Value

ShadowRootType?

SystemId

DocumentType node's systemId.

public string? SystemId { get; init; }

Property Value

string

TextValue

Only set for textarea elements, contains the text value.

public string? TextValue { get; init; }

Property Value

string