Skip to main content
Module

x/puppeteer/mod.ts>Accessibility

A port of puppeteer running on Deno
Latest
class Accessibility
Re-export
import { Accessibility } from "https://deno.land/x/puppeteer@16.2.0/mod.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
collectInterestingNodes
private
serializeTree

Methods

snapshot(options?: SnapshotOptions): Promise<SerializedAXNode | null>

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