chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.accessibility / AccessibilityDomain

AccessibilityDomain

class AccessibilityDomain

Official doc

Functions

disable

Disables the accessibility domain.

suspend fun disable(): Unit

enable

Enables the accessibility domain which causes AXNodeIds to remain consistent between method calls. This turns on accessibility for the page, which can impact performance until accessibility is disabled.

suspend fun enable(): Unit

getFullAXTree

Fetches the entire accessibility tree

suspend fun getFullAXTree(): GetFullAXTreeResponse

getPartialAXTree

Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.

suspend fun getPartialAXTree(input: GetPartialAXTreeRequest): GetPartialAXTreeResponse

queryAXTree

Query a DOM node's accessibility subtree for accessible name and role. This command computes the name and role for all nodes in the subtree, including those that are ignored for accessibility, and returns those that mactch the specified name and role. If no DOM node is specified, or the DOM node does not exist, the command returns an error. If neither accessibleName or role is specified, it returns all the accessibility nodes in the subtree.

suspend fun queryAXTree(input: QueryAXTreeRequest): QueryAXTreeResponse