devtools-protocol 0.0.1498597 → 0.0.1501221

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.
Files changed (54) hide show
  1. package/json/browser_protocol.json +17895 -17678
  2. package/package.json +1 -1
  3. package/pdl/browser_protocol.pdl +47 -13824
  4. package/pdl/domains/Accessibility.pdl +290 -0
  5. package/pdl/domains/Animation.pdl +195 -0
  6. package/pdl/domains/Audits.pdl +755 -0
  7. package/pdl/domains/Autofill.pdl +106 -0
  8. package/pdl/domains/BackgroundService.pdl +77 -0
  9. package/pdl/domains/BluetoothEmulation.pdl +227 -0
  10. package/pdl/domains/Browser.pdl +345 -0
  11. package/pdl/domains/CSS.pdl +996 -0
  12. package/pdl/domains/CacheStorage.pdl +125 -0
  13. package/pdl/domains/Cast.pdl +62 -0
  14. package/pdl/domains/DOM.pdl +932 -0
  15. package/pdl/domains/DOMDebugger.pdl +128 -0
  16. package/pdl/domains/DOMSnapshot.pdl +319 -0
  17. package/pdl/domains/DOMStorage.pdl +72 -0
  18. package/pdl/domains/DeviceAccess.pdl +43 -0
  19. package/pdl/domains/DeviceOrientation.pdl +20 -0
  20. package/pdl/domains/Emulation.pdl +608 -0
  21. package/pdl/domains/EventBreakpoints.pdl +24 -0
  22. package/pdl/domains/Extensions.pdl +72 -0
  23. package/pdl/domains/FedCm.pdl +100 -0
  24. package/pdl/domains/Fetch.pdl +251 -0
  25. package/pdl/domains/FileSystem.pdl +41 -0
  26. package/pdl/domains/HeadlessExperimental.pdl +56 -0
  27. package/pdl/domains/IO.pdl +45 -0
  28. package/pdl/domains/IndexedDB.pdl +226 -0
  29. package/pdl/domains/Input.pdl +336 -0
  30. package/pdl/domains/Inspector.pdl +25 -0
  31. package/pdl/domains/LayerTree.pdl +178 -0
  32. package/pdl/domains/Log.pdl +93 -0
  33. package/pdl/domains/Media.pdl +106 -0
  34. package/pdl/domains/Memory.pdl +112 -0
  35. package/pdl/domains/Network.pdl +2039 -0
  36. package/pdl/domains/Overlay.pdl +498 -0
  37. package/pdl/domains/PWA.pdl +142 -0
  38. package/pdl/domains/Page.pdl +1767 -0
  39. package/pdl/domains/Performance.pdl +54 -0
  40. package/pdl/domains/PerformanceTimeline.pdl +71 -0
  41. package/pdl/domains/Preload.pdl +290 -0
  42. package/pdl/domains/Security.pdl +196 -0
  43. package/pdl/domains/ServiceWorker.pdl +121 -0
  44. package/pdl/domains/Storage.pdl +913 -0
  45. package/pdl/domains/SystemInfo.pdl +145 -0
  46. package/pdl/domains/Target.pdl +325 -0
  47. package/pdl/domains/Tethering.pdl +28 -0
  48. package/pdl/domains/Tracing.pdl +157 -0
  49. package/pdl/domains/WebAudio.pdl +205 -0
  50. package/pdl/domains/WebAuthn.pdl +230 -0
  51. package/types/protocol-mapping.d.ts +659 -635
  52. package/types/protocol-proxy-api.d.ts +543 -522
  53. package/types/protocol-tests-proxy-api.d.ts +628 -607
  54. package/types/protocol.d.ts +8062 -7911
@@ -0,0 +1,932 @@
1
+ # Copyright 2017 The Chromium Authors
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+ #
5
+ # Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
6
+
7
+ # This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object
8
+ # that has an `id`. This `id` can be used to get additional information on the Node, resolve it into
9
+ # the JavaScript object wrapper, etc. It is important that client receives DOM events only for the
10
+ # nodes that are known to the client. Backend keeps track of the nodes that were sent to the client
11
+ # and never sends the same node twice. It is client's responsibility to collect information about
12
+ # the nodes that were sent to the client. Note that `iframe` owner elements will return
13
+ # corresponding document elements as their child nodes.
14
+ domain DOM
15
+ depends on Runtime
16
+
17
+ # Unique DOM node identifier.
18
+ type NodeId extends integer
19
+
20
+ # Unique DOM node identifier used to reference a node that may not have been pushed to the
21
+ # front-end.
22
+ type BackendNodeId extends integer
23
+
24
+ # Backend node with a friendly name.
25
+ type BackendNode extends object
26
+ properties
27
+ # `Node`'s nodeType.
28
+ integer nodeType
29
+ # `Node`'s nodeName.
30
+ string nodeName
31
+ BackendNodeId backendNodeId
32
+
33
+ # Pseudo element type.
34
+ type PseudoType extends string
35
+ enum
36
+ first-line
37
+ first-letter
38
+ checkmark
39
+ before
40
+ after
41
+ picker-icon
42
+ interest-hint
43
+ marker
44
+ backdrop
45
+ column
46
+ selection
47
+ search-text
48
+ target-text
49
+ spelling-error
50
+ grammar-error
51
+ highlight
52
+ first-line-inherited
53
+ scroll-marker
54
+ scroll-marker-group
55
+ scroll-button
56
+ scrollbar
57
+ scrollbar-thumb
58
+ scrollbar-button
59
+ scrollbar-track
60
+ scrollbar-track-piece
61
+ scrollbar-corner
62
+ resizer
63
+ input-list-button
64
+ view-transition
65
+ view-transition-group
66
+ view-transition-image-pair
67
+ view-transition-group-children
68
+ view-transition-old
69
+ view-transition-new
70
+ placeholder
71
+ file-selector-button
72
+ details-content
73
+ picker
74
+ permission-icon
75
+
76
+ # Shadow root type.
77
+ type ShadowRootType extends string
78
+ enum
79
+ user-agent
80
+ open
81
+ closed
82
+
83
+ # Document compatibility mode.
84
+ type CompatibilityMode extends string
85
+ enum
86
+ QuirksMode
87
+ LimitedQuirksMode
88
+ NoQuirksMode
89
+
90
+ # ContainerSelector physical axes
91
+ type PhysicalAxes extends string
92
+ enum
93
+ Horizontal
94
+ Vertical
95
+ Both
96
+
97
+ # ContainerSelector logical axes
98
+ type LogicalAxes extends string
99
+ enum
100
+ Inline
101
+ Block
102
+ Both
103
+
104
+ # Physical scroll orientation
105
+ type ScrollOrientation extends string
106
+ enum
107
+ horizontal
108
+ vertical
109
+
110
+ # DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.
111
+ # DOMNode is a base node mirror type.
112
+ type Node extends object
113
+ properties
114
+ # Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend
115
+ # will only push node with given `id` once. It is aware of all requested nodes and will only
116
+ # fire DOM events for nodes known to the client.
117
+ NodeId nodeId
118
+ # The id of the parent node if any.
119
+ optional NodeId parentId
120
+ # The BackendNodeId for this node.
121
+ BackendNodeId backendNodeId
122
+ # `Node`'s nodeType.
123
+ integer nodeType
124
+ # `Node`'s nodeName.
125
+ string nodeName
126
+ # `Node`'s localName.
127
+ string localName
128
+ # `Node`'s nodeValue.
129
+ string nodeValue
130
+ # Child count for `Container` nodes.
131
+ optional integer childNodeCount
132
+ # Child nodes of this node when requested with children.
133
+ optional array of Node children
134
+ # Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.
135
+ optional array of string attributes
136
+ # Document URL that `Document` or `FrameOwner` node points to.
137
+ optional string documentURL
138
+ # Base URL that `Document` or `FrameOwner` node uses for URL completion.
139
+ optional string baseURL
140
+ # `DocumentType`'s publicId.
141
+ optional string publicId
142
+ # `DocumentType`'s systemId.
143
+ optional string systemId
144
+ # `DocumentType`'s internalSubset.
145
+ optional string internalSubset
146
+ # `Document`'s XML version in case of XML documents.
147
+ optional string xmlVersion
148
+ # `Attr`'s name.
149
+ optional string name
150
+ # `Attr`'s value.
151
+ optional string value
152
+ # Pseudo element type for this node.
153
+ optional PseudoType pseudoType
154
+ # Pseudo element identifier for this node. Only present if there is a
155
+ # valid pseudoType.
156
+ optional string pseudoIdentifier
157
+ # Shadow root type.
158
+ optional ShadowRootType shadowRootType
159
+ # Frame ID for frame owner elements.
160
+ optional Page.FrameId frameId
161
+ # Content document for frame owner elements.
162
+ optional Node contentDocument
163
+ # Shadow root list for given element host.
164
+ optional array of Node shadowRoots
165
+ # Content document fragment for template elements.
166
+ optional Node templateContent
167
+ # Pseudo elements associated with this node.
168
+ optional array of Node pseudoElements
169
+ # Deprecated, as the HTML Imports API has been removed (crbug.com/937746).
170
+ # This property used to return the imported document for the HTMLImport links.
171
+ # The property is always undefined now.
172
+ deprecated optional Node importedDocument
173
+ # Distributed nodes for given insertion point.
174
+ optional array of BackendNode distributedNodes
175
+ # Whether the node is SVG.
176
+ optional boolean isSVG
177
+ optional CompatibilityMode compatibilityMode
178
+ optional BackendNode assignedSlot
179
+ experimental optional boolean isScrollable
180
+
181
+ # A structure to hold the top-level node of a detached tree and an array of its retained descendants.
182
+ type DetachedElementInfo extends object
183
+ properties
184
+ Node treeNode
185
+ array of NodeId retainedNodeIds
186
+
187
+ # A structure holding an RGBA color.
188
+ type RGBA extends object
189
+ properties
190
+ # The red component, in the [0-255] range.
191
+ integer r
192
+ # The green component, in the [0-255] range.
193
+ integer g
194
+ # The blue component, in the [0-255] range.
195
+ integer b
196
+ # The alpha component, in the [0-1] range (default: 1).
197
+ optional number a
198
+
199
+ # An array of quad vertices, x immediately followed by y for each point, points clock-wise.
200
+ type Quad extends array of number
201
+
202
+ # Box model.
203
+ type BoxModel extends object
204
+ properties
205
+ # Content box
206
+ Quad content
207
+ # Padding box
208
+ Quad padding
209
+ # Border box
210
+ Quad border
211
+ # Margin box
212
+ Quad margin
213
+ # Node width
214
+ integer width
215
+ # Node height
216
+ integer height
217
+ # Shape outside coordinates
218
+ optional ShapeOutsideInfo shapeOutside
219
+
220
+ # CSS Shape Outside details.
221
+ type ShapeOutsideInfo extends object
222
+ properties
223
+ # Shape bounds
224
+ Quad bounds
225
+ # Shape coordinate details
226
+ array of any shape
227
+ # Margin shape bounds
228
+ array of any marginShape
229
+
230
+ # Rectangle.
231
+ type Rect extends object
232
+ properties
233
+ # X coordinate
234
+ number x
235
+ # Y coordinate
236
+ number y
237
+ # Rectangle width
238
+ number width
239
+ # Rectangle height
240
+ number height
241
+
242
+ type CSSComputedStyleProperty extends object
243
+ properties
244
+ # Computed style property name.
245
+ string name
246
+ # Computed style property value.
247
+ string value
248
+
249
+ # Collects class names for the node with given id and all of it's child nodes.
250
+ experimental command collectClassNamesFromSubtree
251
+ parameters
252
+ # Id of the node to collect class names.
253
+ NodeId nodeId
254
+ returns
255
+ # Class name list.
256
+ array of string classNames
257
+
258
+ # Creates a deep copy of the specified node and places it into the target container before the
259
+ # given anchor.
260
+ experimental command copyTo
261
+ parameters
262
+ # Id of the node to copy.
263
+ NodeId nodeId
264
+ # Id of the element to drop the copy into.
265
+ NodeId targetNodeId
266
+ # Drop the copy before this node (if absent, the copy becomes the last child of
267
+ # `targetNodeId`).
268
+ optional NodeId insertBeforeNodeId
269
+ returns
270
+ # Id of the node clone.
271
+ NodeId nodeId
272
+
273
+ # Describes node given its id, does not require domain to be enabled. Does not start tracking any
274
+ # objects, can be used for automation.
275
+ command describeNode
276
+ parameters
277
+ # Identifier of the node.
278
+ optional NodeId nodeId
279
+ # Identifier of the backend node.
280
+ optional BackendNodeId backendNodeId
281
+ # JavaScript object id of the node wrapper.
282
+ optional Runtime.RemoteObjectId objectId
283
+ # The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the
284
+ # entire subtree or provide an integer larger than 0.
285
+ optional integer depth
286
+ # Whether or not iframes and shadow roots should be traversed when returning the subtree
287
+ # (default is false).
288
+ optional boolean pierce
289
+ returns
290
+ # Node description.
291
+ Node node
292
+
293
+ # Scrolls the specified rect of the given node into view if not already visible.
294
+ # Note: exactly one between nodeId, backendNodeId and objectId should be passed
295
+ # to identify the node.
296
+ command scrollIntoViewIfNeeded
297
+ parameters
298
+ # Identifier of the node.
299
+ optional NodeId nodeId
300
+ # Identifier of the backend node.
301
+ optional BackendNodeId backendNodeId
302
+ # JavaScript object id of the node wrapper.
303
+ optional Runtime.RemoteObjectId objectId
304
+ # The rect to be scrolled into view, relative to the node's border box, in CSS pixels.
305
+ # When omitted, center of the node will be used, similar to Element.scrollIntoView.
306
+ optional Rect rect
307
+
308
+ # Disables DOM agent for the given page.
309
+ command disable
310
+
311
+ # Discards search results from the session with the given id. `getSearchResults` should no longer
312
+ # be called for that search.
313
+ experimental command discardSearchResults
314
+ parameters
315
+ # Unique search session identifier.
316
+ string searchId
317
+
318
+ # Enables DOM agent for the given page.
319
+ command enable
320
+ parameters
321
+ # Whether to include whitespaces in the children array of returned Nodes.
322
+ experimental optional enum includeWhitespace
323
+ # Strip whitespaces from child arrays (default).
324
+ none
325
+ # Return all children including block-level whitespace nodes.
326
+ all
327
+
328
+ # Focuses the given element.
329
+ command focus
330
+ parameters
331
+ # Identifier of the node.
332
+ optional NodeId nodeId
333
+ # Identifier of the backend node.
334
+ optional BackendNodeId backendNodeId
335
+ # JavaScript object id of the node wrapper.
336
+ optional Runtime.RemoteObjectId objectId
337
+
338
+ # Returns attributes for the specified node.
339
+ command getAttributes
340
+ parameters
341
+ # Id of the node to retrieve attributes for.
342
+ NodeId nodeId
343
+ returns
344
+ # An interleaved array of node attribute names and values.
345
+ array of string attributes
346
+
347
+ # Returns boxes for the given node.
348
+ command getBoxModel
349
+ parameters
350
+ # Identifier of the node.
351
+ optional NodeId nodeId
352
+ # Identifier of the backend node.
353
+ optional BackendNodeId backendNodeId
354
+ # JavaScript object id of the node wrapper.
355
+ optional Runtime.RemoteObjectId objectId
356
+ returns
357
+ # Box model for the node.
358
+ BoxModel model
359
+
360
+ # Returns quads that describe node position on the page. This method
361
+ # might return multiple quads for inline nodes.
362
+ experimental command getContentQuads
363
+ parameters
364
+ # Identifier of the node.
365
+ optional NodeId nodeId
366
+ # Identifier of the backend node.
367
+ optional BackendNodeId backendNodeId
368
+ # JavaScript object id of the node wrapper.
369
+ optional Runtime.RemoteObjectId objectId
370
+ returns
371
+ # Quads that describe node layout relative to viewport.
372
+ array of Quad quads
373
+
374
+ # Returns the root DOM node (and optionally the subtree) to the caller.
375
+ # Implicitly enables the DOM domain events for the current target.
376
+ command getDocument
377
+ parameters
378
+ # The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the
379
+ # entire subtree or provide an integer larger than 0.
380
+ optional integer depth
381
+ # Whether or not iframes and shadow roots should be traversed when returning the subtree
382
+ # (default is false).
383
+ optional boolean pierce
384
+ returns
385
+ # Resulting node.
386
+ Node root
387
+
388
+ # Returns the root DOM node (and optionally the subtree) to the caller.
389
+ # Deprecated, as it is not designed to work well with the rest of the DOM agent.
390
+ # Use DOMSnapshot.captureSnapshot instead.
391
+ deprecated command getFlattenedDocument
392
+ parameters
393
+ # The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the
394
+ # entire subtree or provide an integer larger than 0.
395
+ optional integer depth
396
+ # Whether or not iframes and shadow roots should be traversed when returning the subtree
397
+ # (default is false).
398
+ optional boolean pierce
399
+ returns
400
+ # Resulting node.
401
+ array of Node nodes
402
+
403
+ # Finds nodes with a given computed style in a subtree.
404
+ experimental command getNodesForSubtreeByStyle
405
+ parameters
406
+ # Node ID pointing to the root of a subtree.
407
+ NodeId nodeId
408
+ # The style to filter nodes by (includes nodes if any of properties matches).
409
+ array of CSSComputedStyleProperty computedStyles
410
+ # Whether or not iframes and shadow roots in the same target should be traversed when returning the
411
+ # results (default is false).
412
+ optional boolean pierce
413
+ returns
414
+ # Resulting nodes.
415
+ array of NodeId nodeIds
416
+
417
+ # Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is
418
+ # either returned or not.
419
+ command getNodeForLocation
420
+ parameters
421
+ # X coordinate.
422
+ integer x
423
+ # Y coordinate.
424
+ integer y
425
+ # False to skip to the nearest non-UA shadow root ancestor (default: false).
426
+ optional boolean includeUserAgentShadowDOM
427
+ # Whether to ignore pointer-events: none on elements and hit test them.
428
+ optional boolean ignorePointerEventsNone
429
+ returns
430
+ # Resulting node.
431
+ BackendNodeId backendNodeId
432
+ # Frame this node belongs to.
433
+ Page.FrameId frameId
434
+ # Id of the node at given coordinates, only when enabled and requested document.
435
+ optional NodeId nodeId
436
+
437
+ # Returns node's HTML markup.
438
+ command getOuterHTML
439
+ parameters
440
+ # Identifier of the node.
441
+ optional NodeId nodeId
442
+ # Identifier of the backend node.
443
+ optional BackendNodeId backendNodeId
444
+ # JavaScript object id of the node wrapper.
445
+ optional Runtime.RemoteObjectId objectId
446
+ # Include all shadow roots. Equals to false if not specified.
447
+ experimental optional boolean includeShadowDOM
448
+ returns
449
+ # Outer HTML markup.
450
+ string outerHTML
451
+
452
+ # Returns the id of the nearest ancestor that is a relayout boundary.
453
+ experimental command getRelayoutBoundary
454
+ parameters
455
+ # Id of the node.
456
+ NodeId nodeId
457
+ returns
458
+ # Relayout boundary node id for the given node.
459
+ NodeId nodeId
460
+
461
+ # Returns search results from given `fromIndex` to given `toIndex` from the search with the given
462
+ # identifier.
463
+ experimental command getSearchResults
464
+ parameters
465
+ # Unique search session identifier.
466
+ string searchId
467
+ # Start index of the search result to be returned.
468
+ integer fromIndex
469
+ # End index of the search result to be returned.
470
+ integer toIndex
471
+ returns
472
+ # Ids of the search result nodes.
473
+ array of NodeId nodeIds
474
+
475
+ # Hides any highlight.
476
+ command hideHighlight
477
+ # Use 'Overlay.hideHighlight' instead
478
+ redirect Overlay
479
+
480
+ # Highlights DOM node.
481
+ command highlightNode
482
+ # Use 'Overlay.highlightNode' instead
483
+ redirect Overlay
484
+
485
+ # Highlights given rectangle.
486
+ command highlightRect
487
+ # Use 'Overlay.highlightRect' instead
488
+ redirect Overlay
489
+
490
+ # Marks last undoable state.
491
+ experimental command markUndoableState
492
+
493
+ # Moves node into the new container, places it before the given anchor.
494
+ command moveTo
495
+ parameters
496
+ # Id of the node to move.
497
+ NodeId nodeId
498
+ # Id of the element to drop the moved node into.
499
+ NodeId targetNodeId
500
+ # Drop node before this one (if absent, the moved node becomes the last child of
501
+ # `targetNodeId`).
502
+ optional NodeId insertBeforeNodeId
503
+ returns
504
+ # New id of the moved node.
505
+ NodeId nodeId
506
+
507
+ # Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or
508
+ # `cancelSearch` to end this search session.
509
+ experimental command performSearch
510
+ parameters
511
+ # Plain text or query selector or XPath search query.
512
+ string query
513
+ # True to search in user agent shadow DOM.
514
+ optional boolean includeUserAgentShadowDOM
515
+ returns
516
+ # Unique search session identifier.
517
+ string searchId
518
+ # Number of search results.
519
+ integer resultCount
520
+
521
+ # Requests that the node is sent to the caller given its path. // FIXME, use XPath
522
+ experimental command pushNodeByPathToFrontend
523
+ parameters
524
+ # Path to node in the proprietary format.
525
+ string path
526
+ returns
527
+ # Id of the node for given path.
528
+ NodeId nodeId
529
+
530
+ # Requests that a batch of nodes is sent to the caller given their backend node ids.
531
+ experimental command pushNodesByBackendIdsToFrontend
532
+ parameters
533
+ # The array of backend node ids.
534
+ array of BackendNodeId backendNodeIds
535
+ returns
536
+ # The array of ids of pushed nodes that correspond to the backend ids specified in
537
+ # backendNodeIds.
538
+ array of NodeId nodeIds
539
+
540
+ # Executes `querySelector` on a given node.
541
+ command querySelector
542
+ parameters
543
+ # Id of the node to query upon.
544
+ NodeId nodeId
545
+ # Selector string.
546
+ string selector
547
+ returns
548
+ # Query selector result.
549
+ NodeId nodeId
550
+
551
+ # Executes `querySelectorAll` on a given node.
552
+ command querySelectorAll
553
+ parameters
554
+ # Id of the node to query upon.
555
+ NodeId nodeId
556
+ # Selector string.
557
+ string selector
558
+ returns
559
+ # Query selector result.
560
+ array of NodeId nodeIds
561
+
562
+ # Returns NodeIds of current top layer elements.
563
+ # Top layer is rendered closest to the user within a viewport, therefore its elements always
564
+ # appear on top of all other content.
565
+ experimental command getTopLayerElements
566
+ returns
567
+ # NodeIds of top layer elements
568
+ array of NodeId nodeIds
569
+
570
+ # Returns the NodeId of the matched element according to certain relations.
571
+ experimental command getElementByRelation
572
+ parameters
573
+ # Id of the node from which to query the relation.
574
+ NodeId nodeId
575
+ # Type of relation to get.
576
+ enum relation
577
+ # Get the popover target for a given element. In this case, this given
578
+ # element can only be an HTMLFormControlElement (<input>, <button>).
579
+ PopoverTarget
580
+ # Get the interestfor target (the attribute used to be named
581
+ # `interesttarget`) for for a given element.
582
+ InterestTarget
583
+ # Get the commandfor target for a given element. In this case, this given
584
+ # element can only be an HTMLButtonElement.
585
+ CommandFor
586
+ returns
587
+ # NodeId of the element matching the queried relation.
588
+ NodeId nodeId
589
+
590
+ # Re-does the last undone action.
591
+ experimental command redo
592
+
593
+ # Removes attribute with given name from an element with given id.
594
+ command removeAttribute
595
+ parameters
596
+ # Id of the element to remove attribute from.
597
+ NodeId nodeId
598
+ # Name of the attribute to remove.
599
+ string name
600
+
601
+ # Removes node with given id.
602
+ command removeNode
603
+ parameters
604
+ # Id of the node to remove.
605
+ NodeId nodeId
606
+
607
+ # Requests that children of the node with given id are returned to the caller in form of
608
+ # `setChildNodes` events where not only immediate children are retrieved, but all children down to
609
+ # the specified depth.
610
+ command requestChildNodes
611
+ parameters
612
+ # Id of the node to get children for.
613
+ NodeId nodeId
614
+ # The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the
615
+ # entire subtree or provide an integer larger than 0.
616
+ optional integer depth
617
+ # Whether or not iframes and shadow roots should be traversed when returning the sub-tree
618
+ # (default is false).
619
+ optional boolean pierce
620
+
621
+ # Requests that the node is sent to the caller given the JavaScript node object reference. All
622
+ # nodes that form the path from the node to the root are also sent to the client as a series of
623
+ # `setChildNodes` notifications.
624
+ command requestNode
625
+ parameters
626
+ # JavaScript object id to convert into node.
627
+ Runtime.RemoteObjectId objectId
628
+ returns
629
+ # Node id for given object.
630
+ NodeId nodeId
631
+
632
+ # Resolves the JavaScript node object for a given NodeId or BackendNodeId.
633
+ command resolveNode
634
+ parameters
635
+ # Id of the node to resolve.
636
+ optional NodeId nodeId
637
+ # Backend identifier of the node to resolve.
638
+ optional DOM.BackendNodeId backendNodeId
639
+ # Symbolic group name that can be used to release multiple objects.
640
+ optional string objectGroup
641
+ # Execution context in which to resolve the node.
642
+ optional Runtime.ExecutionContextId executionContextId
643
+ returns
644
+ # JavaScript object wrapper for given node.
645
+ Runtime.RemoteObject object
646
+
647
+ # Sets attribute for an element with given id.
648
+ command setAttributeValue
649
+ parameters
650
+ # Id of the element to set attribute for.
651
+ NodeId nodeId
652
+ # Attribute name.
653
+ string name
654
+ # Attribute value.
655
+ string value
656
+
657
+ # Sets attributes on element with given id. This method is useful when user edits some existing
658
+ # attribute value and types in several attribute name/value pairs.
659
+ command setAttributesAsText
660
+ parameters
661
+ # Id of the element to set attributes for.
662
+ NodeId nodeId
663
+ # Text with a number of attributes. Will parse this text using HTML parser.
664
+ string text
665
+ # Attribute name to replace with new attributes derived from text in case text parsed
666
+ # successfully.
667
+ optional string name
668
+
669
+ # Sets files for the given file input element.
670
+ command setFileInputFiles
671
+ parameters
672
+ # Array of file paths to set.
673
+ array of string files
674
+ # Identifier of the node.
675
+ optional NodeId nodeId
676
+ # Identifier of the backend node.
677
+ optional BackendNodeId backendNodeId
678
+ # JavaScript object id of the node wrapper.
679
+ optional Runtime.RemoteObjectId objectId
680
+
681
+ # Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.
682
+ experimental command setNodeStackTracesEnabled
683
+ parameters
684
+ # Enable or disable.
685
+ boolean enable
686
+
687
+ # Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.
688
+ experimental command getNodeStackTraces
689
+ parameters
690
+ # Id of the node to get stack traces for.
691
+ NodeId nodeId
692
+ returns
693
+ # Creation stack trace, if available.
694
+ optional Runtime.StackTrace creation
695
+
696
+ # Returns file information for the given
697
+ # File wrapper.
698
+ experimental command getFileInfo
699
+ parameters
700
+ # JavaScript object id of the node wrapper.
701
+ Runtime.RemoteObjectId objectId
702
+ returns
703
+ string path
704
+
705
+ # Returns list of detached nodes
706
+ experimental command getDetachedDomNodes
707
+ returns
708
+ # The list of detached nodes
709
+ array of DetachedElementInfo detachedNodes
710
+
711
+ # Enables console to refer to the node with given id via $x (see Command Line API for more details
712
+ # $x functions).
713
+ experimental command setInspectedNode
714
+ parameters
715
+ # DOM node id to be accessible by means of $x command line API.
716
+ NodeId nodeId
717
+
718
+ # Sets node name for a node with given id.
719
+ command setNodeName
720
+ parameters
721
+ # Id of the node to set name for.
722
+ NodeId nodeId
723
+ # New node's name.
724
+ string name
725
+ returns
726
+ # New node's id.
727
+ NodeId nodeId
728
+
729
+ # Sets node value for a node with given id.
730
+ command setNodeValue
731
+ parameters
732
+ # Id of the node to set value for.
733
+ NodeId nodeId
734
+ # New node's value.
735
+ string value
736
+
737
+ # Sets node HTML markup, returns new node id.
738
+ command setOuterHTML
739
+ parameters
740
+ # Id of the node to set markup for.
741
+ NodeId nodeId
742
+ # Outer HTML markup to set.
743
+ string outerHTML
744
+
745
+ # Undoes the last performed action.
746
+ experimental command undo
747
+
748
+ # Returns iframe node that owns iframe with the given domain.
749
+ experimental command getFrameOwner
750
+ parameters
751
+ Page.FrameId frameId
752
+ returns
753
+ # Resulting node.
754
+ BackendNodeId backendNodeId
755
+ # Id of the node at given coordinates, only when enabled and requested document.
756
+ optional NodeId nodeId
757
+
758
+ # Returns the query container of the given node based on container query
759
+ # conditions: containerName, physical and logical axes, and whether it queries
760
+ # scroll-state or anchored elements. If no axes are provided and
761
+ # queriesScrollState is false, the style container is returned, which is the
762
+ # direct parent or the closest element with a matching container-name.
763
+ experimental command getContainerForNode
764
+ parameters
765
+ NodeId nodeId
766
+ optional string containerName
767
+ optional PhysicalAxes physicalAxes
768
+ optional LogicalAxes logicalAxes
769
+ optional boolean queriesScrollState
770
+ optional boolean queriesAnchored
771
+ returns
772
+ # The container node for the given node, or null if not found.
773
+ optional NodeId nodeId
774
+
775
+ # Returns the descendants of a container query container that have
776
+ # container queries against this container.
777
+ experimental command getQueryingDescendantsForContainer
778
+ parameters
779
+ # Id of the container node to find querying descendants from.
780
+ NodeId nodeId
781
+ returns
782
+ # Descendant nodes with container queries against the given container.
783
+ array of NodeId nodeIds
784
+
785
+ # Returns the target anchor element of the given anchor query according to
786
+ # https://www.w3.org/TR/css-anchor-position-1/#target.
787
+ experimental command getAnchorElement
788
+ parameters
789
+ # Id of the positioned element from which to find the anchor.
790
+ NodeId nodeId
791
+ # An optional anchor specifier, as defined in
792
+ # https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier.
793
+ # If not provided, it will return the implicit anchor element for
794
+ # the given positioned element.
795
+ optional string anchorSpecifier
796
+ returns
797
+ # The anchor element of the given anchor query.
798
+ NodeId nodeId
799
+
800
+ # When enabling, this API force-opens the popover identified by nodeId
801
+ # and keeps it open until disabled.
802
+ experimental command forceShowPopover
803
+ parameters
804
+ # Id of the popover HTMLElement
805
+ NodeId nodeId
806
+ # If true, opens the popover and keeps it open. If false, closes the
807
+ # popover if it was previously force-opened.
808
+ boolean enable
809
+ returns
810
+ # List of popovers that were closed in order to respect popover stacking order.
811
+ array of NodeId nodeIds
812
+
813
+ # Fired when `Element`'s attribute is modified.
814
+ event attributeModified
815
+ parameters
816
+ # Id of the node that has changed.
817
+ NodeId nodeId
818
+ # Attribute name.
819
+ string name
820
+ # Attribute value.
821
+ string value
822
+
823
+ # Fired when `Element`'s attribute is removed.
824
+ event attributeRemoved
825
+ parameters
826
+ # Id of the node that has changed.
827
+ NodeId nodeId
828
+ # A ttribute name.
829
+ string name
830
+
831
+ # Mirrors `DOMCharacterDataModified` event.
832
+ event characterDataModified
833
+ parameters
834
+ # Id of the node that has changed.
835
+ NodeId nodeId
836
+ # New text value.
837
+ string characterData
838
+
839
+ # Fired when `Container`'s child node count has changed.
840
+ event childNodeCountUpdated
841
+ parameters
842
+ # Id of the node that has changed.
843
+ NodeId nodeId
844
+ # New node count.
845
+ integer childNodeCount
846
+
847
+ # Mirrors `DOMNodeInserted` event.
848
+ event childNodeInserted
849
+ parameters
850
+ # Id of the node that has changed.
851
+ NodeId parentNodeId
852
+ # Id of the previous sibling.
853
+ NodeId previousNodeId
854
+ # Inserted node data.
855
+ Node node
856
+
857
+ # Mirrors `DOMNodeRemoved` event.
858
+ event childNodeRemoved
859
+ parameters
860
+ # Parent id.
861
+ NodeId parentNodeId
862
+ # Id of the node that has been removed.
863
+ NodeId nodeId
864
+
865
+ # Called when distribution is changed.
866
+ experimental event distributedNodesUpdated
867
+ parameters
868
+ # Insertion point where distributed nodes were updated.
869
+ NodeId insertionPointId
870
+ # Distributed nodes for given insertion point.
871
+ array of BackendNode distributedNodes
872
+
873
+ # Fired when `Document` has been totally updated. Node ids are no longer valid.
874
+ event documentUpdated
875
+
876
+ # Fired when `Element`'s inline style is modified via a CSS property modification.
877
+ experimental event inlineStyleInvalidated
878
+ parameters
879
+ # Ids of the nodes for which the inline styles have been invalidated.
880
+ array of NodeId nodeIds
881
+
882
+ # Called when a pseudo element is added to an element.
883
+ experimental event pseudoElementAdded
884
+ parameters
885
+ # Pseudo element's parent element id.
886
+ NodeId parentId
887
+ # The added pseudo element.
888
+ Node pseudoElement
889
+
890
+ # Called when top layer elements are changed.
891
+ experimental event topLayerElementsUpdated
892
+
893
+ # Fired when a node's scrollability state changes.
894
+ experimental event scrollableFlagUpdated
895
+ parameters
896
+ # The id of the node.
897
+ DOM.NodeId nodeId
898
+ # If the node is scrollable.
899
+ boolean isScrollable
900
+
901
+ # Called when a pseudo element is removed from an element.
902
+ experimental event pseudoElementRemoved
903
+ parameters
904
+ # Pseudo element's parent element id.
905
+ NodeId parentId
906
+ # The removed pseudo element id.
907
+ NodeId pseudoElementId
908
+
909
+ # Fired when backend wants to provide client with the missing DOM structure. This happens upon
910
+ # most of the calls requesting node ids.
911
+ event setChildNodes
912
+ parameters
913
+ # Parent node id to populate with children.
914
+ NodeId parentId
915
+ # Child nodes array.
916
+ array of Node nodes
917
+
918
+ # Called when shadow root is popped from the element.
919
+ experimental event shadowRootPopped
920
+ parameters
921
+ # Host element id.
922
+ NodeId hostId
923
+ # Shadow root id.
924
+ NodeId rootId
925
+
926
+ # Called when shadow root is pushed into the element.
927
+ experimental event shadowRootPushed
928
+ parameters
929
+ # Host element id.
930
+ NodeId hostId
931
+ # Shadow root.
932
+ Node root