AccessibilityClientQueryAXTreeAsync Method |
Version 130.1.90
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 match 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.AccessibilityAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<QueryAXTreeResponse> QueryAXTreeAsync(
int? nodeId = null,
int? backendNodeId = null,
string objectId = null,
string accessibleName = null,
string role = null
)
public:
Task<QueryAXTreeResponse^>^ QueryAXTreeAsync(
Nullable<int> nodeId = nullptr,
Nullable<int> backendNodeId = nullptr,
String^ objectId = nullptr,
String^ accessibleName = nullptr,
String^ role = nullptr
)
Parameters
- nodeId NullableInt32 (Optional)
- Identifier of the node for the root to query.
- backendNodeId NullableInt32 (Optional)
- Identifier of the backend node for the root to query.
- objectId String (Optional)
- JavaScript object id of the node wrapper for the root to query.
- accessibleName String (Optional)
- Find nodes with this computed name.
- role String (Optional)
- Find nodes with this computed role.
Return Value
TaskQueryAXTreeResponsereturns System.Threading.Tasks.Task<QueryAXTreeResponse>
See Also