import { Accessibility } from "https://deno.land/x/pptr@1.2.0/src/Accessibility.ts";
The Accessibility class provides methods for inspecting Chromium's accessibility tree. The accessibility tree is used by assistive technology such as screen readers or switches.
Constructors
new
Accessibility(client: CDPSession)Properties
private
_client: CDPSessionMethods
private
collectInterestingNodes(collection: Set<AXNode>,
node: AXNode,
insideControl: boolean,
private
serializeTree(node: AXNode, interestingNodes?: Set<AXNode>): SerializedAXNode[]snapshot(options?: SnapshotOptions): Promise<SerializedAXNode>
Captures the current state of the accessibility tree. The returned object represents the root accessible node of the page.