stable (1.2) stable RC (1.3) latest (tip-of-tree) v8-inspector (node) Home
Domains
Accessibility Animation ApplicationCache Audits Browser CSS CacheStorage Console DOM DOMDebugger DOMSnapshot DOMStorage Database Debugger DeviceOrientation Emulation HeadlessExperimental HeapProfiler IO IndexedDB Input Inspector LayerTree Log Memory Network Overlay Page Performance Profiler Runtime Schema Security ServiceWorker Storage SystemInfo Target Tethering Tracing
Chrome DevTools Protocol Viewer - latest (tip-of-tree)

Accessibility Domain

Experimental

Methods

Accessibility.getPartialAXTree

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

Parameters
nodeId
DOM.NodeId ID of node to get the partial accessibility tree for.
fetchRelatives
boolean Whether to fetch this nodes ancestors, siblings and children. Defaults to true.
Return object
nodes
array [ AXNode ] The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and children, if requested.

Types

AXNodeId

Unique accessibility node identifier.

Type: string

AXValueType

Enum of possible property types.

Type: string

Allowed values

boolean, tristate, booleanOrUndefined, idref, idrefList, integer, node, nodeList, number, string, computedString, token, tokenList, domRelation, role, internalRole, valueUndefined.

AXValueSourceType

Enum of possible property sources.

Type: string

Allowed values

attribute, implicit, style, contents, placeholder, relatedElement.

AXValueNativeSourceType

Enum of possible native property sources (as a subtype of a particular AXValueSourceType).

Type: string

Allowed values

figcaption, label, labelfor, labelwrapped, legend, tablecaption, title, other.

AXValueSource

A single source for a computed AX property.

Type: object

Properties
type
AXValueSourceType What type of source this is.
value
AXValue The value of this property source.
attribute
string The name of the relevant attribute, if any.
attributeValue
AXValue The value of the relevant attribute, if any.
superseded
boolean Whether this source is superseded by a higher priority source.
nativeSource
AXValueNativeSourceType The native markup source for this value, e.g. a
nativeSourceValue
AXValue The value, such as a node or node list, of the native source.
invalid
boolean Whether the value for this property is invalid.
invalidReason
string Reason for the value being invalid, if it is.

AXRelatedNode

Type: object

Properties
backendDOMNodeId
DOM.BackendNodeId The BackendNodeId of the related DOM node.
idref
string The IDRef value provided, if any.
text
string The text alternative of this node in the current context.

AXProperty

Type: object

Properties
name
AXPropertyName The name of this property.
value
AXValue The value of this property.

AXValue

A single computed AX property.

Type: object

Properties
type
AXValueType The type of this value.
value
any The computed value of this property.
relatedNodes
array [ AXRelatedNode ] One or more related nodes, if applicable.
sources
array [ AXValueSource ] The sources which contributed to the computation of this property.

AXPropertyName

Values of AXProperty name: from 'busy' to 'roledescription' - states which apply to every AX node, from 'live' to 'root' - attributes which apply to nodes in live regions, from 'autocomplete' to 'valuetext' - attributes which apply to widgets, from 'checked' to 'selected' - states which apply to widgets, from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling.

Type: string

Allowed values

busy, disabled, hidden, hiddenRoot, invalid, keyshortcuts, roledescription, live, atomic, relevant, root, autocomplete, haspopup, level, multiselectable, orientation, multiline, readonly, required, valuemin, valuemax, valuetext, checked, expanded, modal, pressed, selected, activedescendant, controls, describedby, details, errormessage, flowto, labelledby, owns.

AXNode

A node in the accessibility tree.

Type: object

Properties
nodeId
AXNodeId Unique identifier for this node.
ignored
boolean Whether this node is ignored for accessibility
ignoredReasons
array [ AXProperty ] Collection of reasons why this node is hidden.
role
AXValue This `Node`'s role, whether explicit or implicit.
name
AXValue The accessible name for this `Node`.
description
AXValue The accessible description for this `Node`.
value
AXValue The value for this `Node`.
properties
array [ AXProperty ] All other properties
childIds
array [ AXNodeId ] IDs for each of this node's child nodes.
backendDOMNodeId
DOM.BackendNodeId The backend ID for the associated DOM node, if any.