Table of Contents

Class Node

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

DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.

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

Constructors

Node(NodeId, BackendNodeId, long, string, string, string)

DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type.

public Node(NodeId NodeId, BackendNodeId BackendNodeId, long NodeType, string NodeName, string LocalName, string NodeValue)

Parameters

NodeId NodeId

Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.

BackendNodeId BackendNodeId

The BackendNodeId for this node.

NodeType long

Node's nodeType.

NodeName string

Node's nodeName.

LocalName string

Node's localName.

NodeValue string

Node's nodeValue.

Properties

AdProvenance

public AdProvenance? AdProvenance { get; init; }

Property Value

AdProvenance

AdoptedStyleSheets

public ImmutableArray<StyleSheetId>? AdoptedStyleSheets { get; init; }

Property Value

ImmutableArray<StyleSheetId>?

AffectedByStartingStyles

public bool? AffectedByStartingStyles { get; init; }

Property Value

bool?

AssignedSlot

public BackendNode? AssignedSlot { get; init; }

Property Value

BackendNode

Attributes

Attributes of the Element node in the form of flat array [name1, value1, name2, value2].

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

Property Value

ImmutableArray<string>?

BackendNodeId

The BackendNodeId for this node.

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

ChildNodeCount

Child count for Container nodes.

public long? ChildNodeCount { get; init; }

Property Value

long?

Children

Child nodes of this node when requested with children.

public ImmutableArray<Node>? Children { get; init; }

Property Value

ImmutableArray<Node>?

CompatibilityMode

public CompatibilityMode? CompatibilityMode { get; init; }

Property Value

CompatibilityMode?

ContentDocument

Content document for frame owner elements.

public Node? ContentDocument { get; init; }

Property Value

Node

DistributedNodes

Distributed nodes for given insertion point.

public ImmutableArray<BackendNode>? DistributedNodes { get; init; }

Property Value

ImmutableArray<BackendNode>?

DocumentURL

Document URL that Document or FrameOwner node points to.

public string? DocumentURL { get; init; }

Property Value

string

FrameId

Frame ID for frame owner elements.

public FrameId? FrameId { get; init; }

Property Value

FrameId

ImportedDocument

Deprecated, as the HTML Imports API has been removed (crbug.com/937746). This property used to return the imported document for the HTMLImport links. The property is always undefined now.

[Obsolete]
public Node? ImportedDocument { get; init; }

Property Value

Node

InternalSubset

DocumentType's internalSubset.

public string? InternalSubset { get; init; }

Property Value

string

IsSVG

Whether the node is SVG.

public bool? IsSVG { get; init; }

Property Value

bool?

IsScrollable

public bool? IsScrollable { get; init; }

Property Value

bool?

LocalName

Node's localName.

public string LocalName { get; init; }

Property Value

string

Name

Attr's name.

public string? Name { get; init; }

Property Value

string

NodeId

Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client.

public NodeId NodeId { get; init; }

Property Value

NodeId

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

ParentId

The id of the parent node if any.

public NodeId? ParentId { get; init; }

Property Value

NodeId

PseudoElements

Pseudo elements associated with this node.

public ImmutableArray<Node>? PseudoElements { get; init; }

Property Value

ImmutableArray<Node>?

PseudoIdentifier

Pseudo element identifier for this node. Only present if there is a valid pseudoType.

public string? PseudoIdentifier { get; init; }

Property Value

string

PseudoType

Pseudo element type for this node.

public PseudoType? PseudoType { get; init; }

Property Value

PseudoType?

PublicId

DocumentType's publicId.

public string? PublicId { get; init; }

Property Value

string

ShadowRootType

Shadow root type.

public ShadowRootType? ShadowRootType { get; init; }

Property Value

ShadowRootType?

ShadowRoots

Shadow root list for given element host.

public ImmutableArray<Node>? ShadowRoots { get; init; }

Property Value

ImmutableArray<Node>?

SystemId

DocumentType's systemId.

public string? SystemId { get; init; }

Property Value

string

TemplateContent

Content document fragment for template elements.

public Node? TemplateContent { get; init; }

Property Value

Node

Value

Attr's value.

public string? Value { get; init; }

Property Value

string

XmlVersion

Document's XML version in case of XML documents.

public string? XmlVersion { get; init; }

Property Value

string