Click or drag to resize

AccessibilityClient.QueryAXTreeAsync Method

Version 89.0.170
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.

Namespace:  CefSharp.DevTools.Accessibility
Assembly:  CefSharp (in CefSharp.dll) Version: 89.0.170.0 (89.0.170.0)
Syntax
public Task<QueryAXTreeResponse> QueryAXTreeAsync(
	Nullable<int> nodeId = null,
	Nullable<int> backendNodeId = null,
	string objectId = null,
	string accessibleName = null,
	string role = null
)

Parameters

nodeId (Optional)
Type: System.Nullable<Int32>
Identifier of the node for the root to query.
backendNodeId (Optional)
Type: System.Nullable<Int32>
Identifier of the backend node for the root to query.
objectId (Optional)
Type: System.String
JavaScript object id of the node wrapper for the root to query.
accessibleName (Optional)
Type: System.String
Find nodes with this computed name.
role (Optional)
Type: System.String
Find nodes with this computed role.

Return Value

Type: Task<QueryAXTreeResponse>
returns System.Threading.Tasks.Task<QueryAXTreeResponse>
See Also