Expand description
Accessibility — accessibility-tree snapshot via the CDP Accessibility
domain.
Page::accessibility returns an
Accessibility handle bound to the page-level CDP session.
Accessibility::snapshot captures a point-in-time view of the page’s
accessibility tree and returns it as an AccessibilityNode tree.
CDP exposes two relevant commands:
Accessibility.getFullAXTree— the entire page’s accessibility tree (used when norootis requested).Accessibility.getPartialAXTree— the subtree rooted at a givenbackendNodeId(used whenrootis supplied).
Both return a flat nodes array. We rebuild the parent/child relationships
from each node’s childIds into the nested AccessibilityNode shape that
mirrors Playwright’s Accessibility.snapshot.
Structs§
- Accessibility
- An accessibility snapshot handle for a
Page. - Accessibility
Node - A single node in an accessibility-tree snapshot.
- Accessibility
Snapshot Options - Options for
Accessibility::snapshot.