You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param depth: *(Optional)* The maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned.
471
-
:param max_depth: **(DEPRECATED)** *(Optional)* Deprecated. This parameter has been renamed to ```depth```. If depth is not provided, max_depth will be used.
472
-
:param frame_id: *(Optional)* The frame for whose document the AX tree should be retrieved. If omited, the root frame is used.
496
+
:param frame_id: *(Optional)* The frame for whose document the AX tree should be retrieved. If omitted, the root frame is used.
473
497
:returns:
474
498
'''
475
499
params: T_JSON_DICT=dict()
476
500
ifdepthisnotNone:
477
501
params['depth'] =depth
478
-
ifmax_depthisnotNone:
479
-
params['max_depth'] =max_depth
480
502
ifframe_idisnotNone:
481
503
params['frameId'] =frame_id.to_json()
482
504
cmd_dict: T_JSON_DICT= {
@@ -577,7 +599,7 @@ def query_ax_tree(
577
599
r'''
578
600
Query a DOM node's accessibility subtree for accessible name and role.
579
601
This command computes the name and role for all nodes in the subtree, including those that are
580
-
ignored for accessibility, and returns those that mactch the specified name and role. If no DOM
602
+
ignored for accessibility, and returns those that match the specified name and role. If no DOM
581
603
node is specified, or the DOM node does not exist, the command returns an error. If neither
582
604
``accessibleName`` or ``role`` is specified, it returns all the accessibility nodes in the subtree.
0 commit comments