Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class Accessibility
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: CDPSession

Methods

private
collectInterestingNodes(
collection: Set<AXNode>,
node: AXNode,
insideControl: boolean,
): void
private
serializeTree(node: AXNode, interestingNodes?: Set<AXNode>): SerializedAXNode[]

Captures the current state of the accessibility tree. The returned object represents the root accessible node of the page.