Table of Contents

Class NodeProperties

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.dll

Object containing information about a Node object.

public record NodeProperties : IEquatable<NodeProperties>
Inheritance
NodeProperties
Implements
Inherited Members

Constructors

NodeProperties(NodeProperties)

protected NodeProperties(NodeProperties original)

Parameters

original NodeProperties

Properties

Attributes

Gets a read-only dictionary of the attributes of this node.

[JsonIgnore]
public NodeAttributes? Attributes { get; }

Property Value

NodeAttributes

ChildNodeCount

Gets the count of the child nodes.

[JsonPropertyName("childNodeCount")]
[JsonRequired]
[JsonInclude]
public ulong ChildNodeCount { get; }

Property Value

ulong

Children

Gets a read-only list of the children of the node.

[JsonIgnore]
public IList<NodeRemoteValue>? Children { get; }

Property Value

IList<NodeRemoteValue>

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

LocalName

Gets the local name of the node.

[JsonPropertyName("localName")]
[JsonInclude]
public string? LocalName { get; }

Property Value

string

Mode

Gets the mode of this node when it is a shadow root; otherwise null.

[JsonPropertyName("mode")]
[JsonInclude]
public ShadowRootMode? Mode { get; }

Property Value

ShadowRootMode?

NamespaceUri

Gets the namespace URI of the node.

[JsonPropertyName("namespaceURI")]
[JsonInclude]
public string? NamespaceUri { get; }

Property Value

string

NodeType

Gets the type of node.

[JsonPropertyName("nodeType")]
[JsonRequired]
[JsonInclude]
public ulong NodeType { get; }

Property Value

ulong

NodeValue

Gets the value of the node.

[JsonPropertyName("nodeValue")]
[JsonInclude]
public string? NodeValue { get; }

Property Value

string

ShadowRoot

Gets the RemoteValue representing the shadow root of this node, if available.

[JsonPropertyName("shadowRoot")]
[JsonInclude]
[JsonConverter(typeof(NestedValueJsonConverter<NodeRemoteValue>))]
public NodeRemoteValue? ShadowRoot { get; }

Property Value

NodeRemoteValue

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(NodeProperties?)

public virtual bool Equals(NodeProperties? other)

Parameters

other NodeProperties

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(NodeProperties?, NodeProperties?)

public static bool operator ==(NodeProperties? left, NodeProperties? right)

Parameters

left NodeProperties
right NodeProperties

Returns

bool

operator !=(NodeProperties?, NodeProperties?)

public static bool operator !=(NodeProperties? left, NodeProperties? right)

Parameters

left NodeProperties
right NodeProperties

Returns

bool