Docs · API reference · Motus.Abstractions

AccessibilityNode Class#

Represents a single node in the browser's accessibility tree.

public sealed record AccessibilityNode : System.IEquatable<Motus.Abstractions.AccessibilityNode>

Inheritance System.Object → AccessibilityNode

Implements System.IEquatable<AccessibilityNode>

Constructors#

AccessibilityNode(string, string, string, string, string, IReadOnlyDictionary<string,string>, IReadOnlyList<AccessibilityNode>, Nullable<long>, bool) Constructor#

Represents a single node in the browser's accessibility tree.

public AccessibilityNode(string NodeId, string? Role, string? Name, string? Value, string? Description, System.Collections.Generic.IReadOnlyDictionary<string,string?> Properties, System.Collections.Generic.IReadOnlyList<Motus.Abstractions.AccessibilityNode> Children, System.Nullable<long> BackendDOMNodeId, bool Ignored=false);

Parameters#

NodeId System.String

The protocol-assigned node identifier.

Role System.String

The ARIA or implicit role (e.g. "button", "img").

Name System.String

The accessible name.

Value System.String

The current value, for form controls.

Description System.String

The accessible description.

Properties System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>

Additional AX properties keyed by property name.

Children System.Collections.Generic.IReadOnlyList<AccessibilityNode>

Child nodes in tree order.

BackendDOMNodeId System.Nullable<System.Int64>

The backend DOM node ID for element resolution.

Ignored System.Boolean

True if the node was ignored by the browser and excluded from the walkable tree.

Properties#

BackendDOMNodeId Property#

The backend DOM node ID for element resolution.

public System.Nullable<long> BackendDOMNodeId { get; init; }

Property Value#

System.Nullable<System.Int64>

Children Property#

Child nodes in tree order.

public System.Collections.Generic.IReadOnlyList<Motus.Abstractions.AccessibilityNode> Children { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<AccessibilityNode>

Description Property#

The accessible description.

public string? Description { get; init; }

Property Value#

System.String

Ignored Property#

True if the node was ignored by the browser and excluded from the walkable tree.

public bool Ignored { get; init; }

Property Value#

System.Boolean

Name Property#

The accessible name.

public string? Name { get; init; }

Property Value#

System.String

NodeId Property#

The protocol-assigned node identifier.

public string NodeId { get; init; }

Property Value#

System.String

Properties Property#

Additional AX properties keyed by property name.

public System.Collections.Generic.IReadOnlyDictionary<string,string?> Properties { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>

Role Property#

The ARIA or implicit role (e.g. "button", "img").

public string? Role { get; init; }

Property Value#

System.String

Value Property#

The current value, for form controls.

public string? Value { get; init; }

Property Value#

System.String