1717
1818
1919class AXNodeId (str ):
20- '''
20+ r '''
2121 Unique accessibility node identifier.
2222 '''
2323 def to_json (self ) -> str :
@@ -32,7 +32,7 @@ def __repr__(self):
3232
3333
3434class AXValueType (enum .Enum ):
35- '''
35+ r '''
3636 Enum of possible property types.
3737 '''
3838 BOOLEAN = "boolean"
@@ -62,7 +62,7 @@ def from_json(cls, json: str) -> AXValueType:
6262
6363
6464class AXValueSourceType (enum .Enum ):
65- '''
65+ r '''
6666 Enum of possible property sources.
6767 '''
6868 ATTRIBUTE = "attribute"
@@ -81,7 +81,7 @@ def from_json(cls, json: str) -> AXValueSourceType:
8181
8282
8383class AXValueNativeSourceType (enum .Enum ):
84- '''
84+ r '''
8585 Enum of possible native property sources (as a subtype of a particular AXValueSourceType).
8686 '''
8787 DESCRIPTION = "description"
@@ -105,7 +105,7 @@ def from_json(cls, json: str) -> AXValueNativeSourceType:
105105
106106@dataclass
107107class AXValueSource :
108- '''
108+ r '''
109109 A single source for a computed AX property.
110110 '''
111111 #: What type of source this is.
@@ -224,7 +224,7 @@ def from_json(cls, json: T_JSON_DICT) -> AXProperty:
224224
225225@dataclass
226226class AXValue :
227- '''
227+ r '''
228228 A single computed AX property.
229229 '''
230230 #: The type of this value.
@@ -261,7 +261,7 @@ def from_json(cls, json: T_JSON_DICT) -> AXValue:
261261
262262
263263class AXPropertyName (enum .Enum ):
264- '''
264+ r '''
265265 Values of AXProperty name:
266266 - from 'busy' to 'roledescription': states which apply to every AX node
267267 - from 'live' to 'root': attributes which apply to nodes in live regions
@@ -319,7 +319,7 @@ def from_json(cls, json: str) -> AXPropertyName:
319319
320320@dataclass
321321class AXNode :
322- '''
322+ r '''
323323 A node in the accessibility tree.
324324 '''
325325 #: Unique identifier for this node.
@@ -403,7 +403,7 @@ def from_json(cls, json: T_JSON_DICT) -> AXNode:
403403
404404
405405def disable () -> typing .Generator [T_JSON_DICT ,T_JSON_DICT ,None ]:
406- '''
406+ r '''
407407 Disables the accessibility domain.
408408 '''
409409 cmd_dict : T_JSON_DICT = {
@@ -413,7 +413,7 @@ def disable() -> typing.Generator[T_JSON_DICT,T_JSON_DICT,None]:
413413
414414
415415def enable () -> typing .Generator [T_JSON_DICT ,T_JSON_DICT ,None ]:
416- '''
416+ r '''
417417 Enables the accessibility domain which causes ``AXNodeId``'s to remain consistent between method calls.
418418 This turns on accessibility for the page, which can impact performance until accessibility is disabled.
419419 '''
@@ -429,7 +429,7 @@ def get_partial_ax_tree(
429429 object_id : typing .Optional [runtime .RemoteObjectId ] = None ,
430430 fetch_relatives : typing .Optional [bool ] = None
431431 ) -> typing .Generator [T_JSON_DICT ,T_JSON_DICT ,typing .List [AXNode ]]:
432- '''
432+ r '''
433433 Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
434434
435435 **EXPERIMENTAL**
@@ -462,7 +462,7 @@ def get_full_ax_tree(
462462 max_depth : typing .Optional [int ] = None ,
463463 frame_id : typing .Optional [page .FrameId ] = None
464464 ) -> typing .Generator [T_JSON_DICT ,T_JSON_DICT ,typing .List [AXNode ]]:
465- '''
465+ r '''
466466 Fetches the entire accessibility tree for the root Document
467467
468468 **EXPERIMENTAL**
@@ -490,7 +490,7 @@ def get_full_ax_tree(
490490def get_root_ax_node (
491491 frame_id : typing .Optional [page .FrameId ] = None
492492 ) -> typing .Generator [T_JSON_DICT ,T_JSON_DICT ,AXNode ]:
493- '''
493+ r '''
494494 Fetches the root node.
495495 Requires ``enable()`` to have been called previously.
496496
@@ -515,7 +515,7 @@ def get_ax_node_and_ancestors(
515515 backend_node_id : typing .Optional [dom .BackendNodeId ] = None ,
516516 object_id : typing .Optional [runtime .RemoteObjectId ] = None
517517 ) -> typing .Generator [T_JSON_DICT ,T_JSON_DICT ,typing .List [AXNode ]]:
518- '''
518+ r '''
519519 Fetches a node and all ancestors up to and including the root.
520520 Requires ``enable()`` to have been called previously.
521521
@@ -545,7 +545,7 @@ def get_child_ax_nodes(
545545 id_ : AXNodeId ,
546546 frame_id : typing .Optional [page .FrameId ] = None
547547 ) -> typing .Generator [T_JSON_DICT ,T_JSON_DICT ,typing .List [AXNode ]]:
548- '''
548+ r '''
549549 Fetches a particular accessibility node by AXNodeId.
550550 Requires ``enable()`` to have been called previously.
551551
@@ -574,7 +574,7 @@ def query_ax_tree(
574574 accessible_name : typing .Optional [str ] = None ,
575575 role : typing .Optional [str ] = None
576576 ) -> typing .Generator [T_JSON_DICT ,T_JSON_DICT ,typing .List [AXNode ]]:
577- '''
577+ r '''
578578 Query a DOM node's accessibility subtree for accessible name and role.
579579 This command computes the name and role for all nodes in the subtree, including those that are
580580 ignored for accessibility, and returns those that mactch the specified name and role. If no DOM
@@ -612,7 +612,7 @@ def query_ax_tree(
612612@event_class ('Accessibility.loadComplete' )
613613@dataclass
614614class LoadComplete :
615- '''
615+ r '''
616616 **EXPERIMENTAL**
617617
618618 The loadComplete event mirrors the load complete event sent by the browser to assistive
@@ -631,7 +631,7 @@ def from_json(cls, json: T_JSON_DICT) -> LoadComplete:
631631@event_class ('Accessibility.nodesUpdated' )
632632@dataclass
633633class NodesUpdated :
634- '''
634+ r '''
635635 **EXPERIMENTAL**
636636
637637 The nodesUpdated event is sent every time a previously requested node has changed the in tree.
0 commit comments