Docs · API reference · Motus.Abstractions

AccessibilitySnapshot Class#

The result of fetching a page's accessibility tree. Carries the root nodes (each with its children, forming the full tree), the number of nodes the browser excluded as not accessibility-relevant, and an optional diagnostic message when a snapshot could not be produced (for example on a transport that does not expose an accessibility tree).

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

Inheritance System.Object → AccessibilitySnapshot

Implements System.IEquatable<AccessibilitySnapshot>

Constructors#

AccessibilitySnapshot(IReadOnlyList<AccessibilityNode>, int, string) Constructor#

The result of fetching a page's accessibility tree. Carries the root nodes (each with its children, forming the full tree), the number of nodes the browser excluded as not accessibility-relevant, and an optional diagnostic message when a snapshot could not be produced (for example on a transport that does not expose an accessibility tree).

public AccessibilitySnapshot(System.Collections.Generic.IReadOnlyList<Motus.Abstractions.AccessibilityNode> Roots, int IgnoredCount, string? DiagnosticMessage);

Parameters#

Roots System.Collections.Generic.IReadOnlyList<AccessibilityNode>

IgnoredCount System.Int32

DiagnosticMessage System.String