devtools-protocol 0.0.939359 → 0.0.939404
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -423,6 +423,25 @@
|
|
|
423
423
|
}
|
|
424
424
|
]
|
|
425
425
|
},
|
|
426
|
+
{
|
|
427
|
+
"name": "getRootAXNode",
|
|
428
|
+
"description": "Fetches the root node.\nRequires `enable()` to have been called previously.",
|
|
429
|
+
"experimental": true,
|
|
430
|
+
"parameters": [
|
|
431
|
+
{
|
|
432
|
+
"name": "frameId",
|
|
433
|
+
"description": "The frame in whose document the node resides.\nIf omitted, the root frame is used.",
|
|
434
|
+
"optional": true,
|
|
435
|
+
"$ref": "Page.FrameId"
|
|
436
|
+
}
|
|
437
|
+
],
|
|
438
|
+
"returns": [
|
|
439
|
+
{
|
|
440
|
+
"name": "node",
|
|
441
|
+
"$ref": "AXNode"
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
426
445
|
{
|
|
427
446
|
"name": "getChildAXNodes",
|
|
428
447
|
"description": "Fetches a particular accessibility node by AXNodeId.\nRequires `enable()` to have been called previously.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
|
@@ -222,6 +222,16 @@ experimental domain Accessibility
|
|
|
222
222
|
returns
|
|
223
223
|
array of AXNode nodes
|
|
224
224
|
|
|
225
|
+
# Fetches the root node.
|
|
226
|
+
# Requires `enable()` to have been called previously.
|
|
227
|
+
experimental command getRootAXNode
|
|
228
|
+
parameters
|
|
229
|
+
# The frame in whose document the node resides.
|
|
230
|
+
# If omitted, the root frame is used.
|
|
231
|
+
optional Page.FrameId frameId
|
|
232
|
+
returns
|
|
233
|
+
AXNode node
|
|
234
|
+
|
|
225
235
|
# Fetches a particular accessibility node by AXNodeId.
|
|
226
236
|
# Requires `enable()` to have been called previously.
|
|
227
237
|
experimental command getChildAXNodes
|
|
@@ -1243,6 +1243,14 @@ export namespace ProtocolMapping {
|
|
|
1243
1243
|
paramsType: [Protocol.Accessibility.GetFullAXTreeRequest?];
|
|
1244
1244
|
returnType: Protocol.Accessibility.GetFullAXTreeResponse;
|
|
1245
1245
|
};
|
|
1246
|
+
/**
|
|
1247
|
+
* Fetches the root node.
|
|
1248
|
+
* Requires `enable()` to have been called previously.
|
|
1249
|
+
*/
|
|
1250
|
+
'Accessibility.getRootAXNode': {
|
|
1251
|
+
paramsType: [Protocol.Accessibility.GetRootAXNodeRequest?];
|
|
1252
|
+
returnType: Protocol.Accessibility.GetRootAXNodeResponse;
|
|
1253
|
+
};
|
|
1246
1254
|
/**
|
|
1247
1255
|
* Fetches a particular accessibility node by AXNodeId.
|
|
1248
1256
|
* Requires `enable()` to have been called previously.
|
|
@@ -626,6 +626,12 @@ export namespace ProtocolProxyApi {
|
|
|
626
626
|
*/
|
|
627
627
|
getFullAXTree(params: Protocol.Accessibility.GetFullAXTreeRequest): Promise<Protocol.Accessibility.GetFullAXTreeResponse>;
|
|
628
628
|
|
|
629
|
+
/**
|
|
630
|
+
* Fetches the root node.
|
|
631
|
+
* Requires `enable()` to have been called previously.
|
|
632
|
+
*/
|
|
633
|
+
getRootAXNode(params: Protocol.Accessibility.GetRootAXNodeRequest): Promise<Protocol.Accessibility.GetRootAXNodeResponse>;
|
|
634
|
+
|
|
629
635
|
/**
|
|
630
636
|
* Fetches a particular accessibility node by AXNodeId.
|
|
631
637
|
* Requires `enable()` to have been called previously.
|
package/types/protocol.d.ts
CHANGED
|
@@ -2697,6 +2697,18 @@ export namespace Protocol {
|
|
|
2697
2697
|
nodes: AXNode[];
|
|
2698
2698
|
}
|
|
2699
2699
|
|
|
2700
|
+
export interface GetRootAXNodeRequest {
|
|
2701
|
+
/**
|
|
2702
|
+
* The frame in whose document the node resides.
|
|
2703
|
+
* If omitted, the root frame is used.
|
|
2704
|
+
*/
|
|
2705
|
+
frameId?: Page.FrameId;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
export interface GetRootAXNodeResponse {
|
|
2709
|
+
node: AXNode;
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2700
2712
|
export interface GetChildAXNodesRequest {
|
|
2701
2713
|
id: AXNodeId;
|
|
2702
2714
|
/**
|