forked from chromedp/cdproto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdproto.go
2993 lines (2261 loc) · 118 KB
/
cdproto.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Package cdproto provides the Chrome DevTools Protocol
// commands, types, and events for the cdproto domain.
//
// Chrome DevTools Protocol types.
//
// Generated by the cdproto-gen command.
package cdproto
// Code generated by cdproto-gen. DO NOT EDIT.
import (
"fmt"
"strings"
"github.com/chromedp/cdproto/accessibility"
"github.com/chromedp/cdproto/animation"
"github.com/chromedp/cdproto/audits"
"github.com/chromedp/cdproto/autofill"
"github.com/chromedp/cdproto/backgroundservice"
"github.com/chromedp/cdproto/browser"
"github.com/chromedp/cdproto/cachestorage"
"github.com/chromedp/cdproto/cast"
"github.com/chromedp/cdproto/cdp"
"github.com/chromedp/cdproto/css"
"github.com/chromedp/cdproto/database"
"github.com/chromedp/cdproto/debugger"
"github.com/chromedp/cdproto/deviceaccess"
"github.com/chromedp/cdproto/deviceorientation"
"github.com/chromedp/cdproto/dom"
"github.com/chromedp/cdproto/domdebugger"
"github.com/chromedp/cdproto/domsnapshot"
"github.com/chromedp/cdproto/domstorage"
"github.com/chromedp/cdproto/emulation"
"github.com/chromedp/cdproto/eventbreakpoints"
"github.com/chromedp/cdproto/fedcm"
"github.com/chromedp/cdproto/fetch"
"github.com/chromedp/cdproto/headlessexperimental"
"github.com/chromedp/cdproto/heapprofiler"
"github.com/chromedp/cdproto/indexeddb"
"github.com/chromedp/cdproto/input"
"github.com/chromedp/cdproto/inspector"
"github.com/chromedp/cdproto/io"
"github.com/chromedp/cdproto/layertree"
"github.com/chromedp/cdproto/log"
"github.com/chromedp/cdproto/media"
"github.com/chromedp/cdproto/memory"
"github.com/chromedp/cdproto/network"
"github.com/chromedp/cdproto/overlay"
"github.com/chromedp/cdproto/page"
"github.com/chromedp/cdproto/performance"
"github.com/chromedp/cdproto/performancetimeline"
"github.com/chromedp/cdproto/preload"
"github.com/chromedp/cdproto/profiler"
"github.com/chromedp/cdproto/runtime"
"github.com/chromedp/cdproto/security"
"github.com/chromedp/cdproto/serviceworker"
"github.com/chromedp/cdproto/storage"
"github.com/chromedp/cdproto/systeminfo"
"github.com/chromedp/cdproto/target"
"github.com/chromedp/cdproto/tethering"
"github.com/chromedp/cdproto/tracing"
"github.com/chromedp/cdproto/webaudio"
"github.com/chromedp/cdproto/webauthn"
"github.com/mailru/easyjson"
)
// MethodType chrome DevTools Protocol method type (ie, event and command
// names).
type MethodType string
// String returns the MethodType as string value.
func (t MethodType) String() string {
return string(t)
}
// Domain returns the Chrome DevTools Protocol domain of the event or command.
func (t MethodType) Domain() string {
return string(t[:strings.IndexByte(string(t), '.')])
}
// MethodType values.
const (
CommandAccessibilityDisable = accessibility.CommandDisable
CommandAccessibilityEnable = accessibility.CommandEnable
CommandAccessibilityGetPartialAXTree = accessibility.CommandGetPartialAXTree
CommandAccessibilityGetFullAXTree = accessibility.CommandGetFullAXTree
CommandAccessibilityGetRootAXNode = accessibility.CommandGetRootAXNode
CommandAccessibilityGetAXNodeAndAncestors = accessibility.CommandGetAXNodeAndAncestors
CommandAccessibilityGetChildAXNodes = accessibility.CommandGetChildAXNodes
CommandAccessibilityQueryAXTree = accessibility.CommandQueryAXTree
EventAccessibilityLoadComplete = "Accessibility.loadComplete"
EventAccessibilityNodesUpdated = "Accessibility.nodesUpdated"
CommandAnimationDisable = animation.CommandDisable
CommandAnimationEnable = animation.CommandEnable
CommandAnimationGetCurrentTime = animation.CommandGetCurrentTime
CommandAnimationGetPlaybackRate = animation.CommandGetPlaybackRate
CommandAnimationReleaseAnimations = animation.CommandReleaseAnimations
CommandAnimationResolveAnimation = animation.CommandResolveAnimation
CommandAnimationSeekAnimations = animation.CommandSeekAnimations
CommandAnimationSetPaused = animation.CommandSetPaused
CommandAnimationSetPlaybackRate = animation.CommandSetPlaybackRate
CommandAnimationSetTiming = animation.CommandSetTiming
EventAnimationAnimationCanceled = "Animation.animationCanceled"
EventAnimationAnimationCreated = "Animation.animationCreated"
EventAnimationAnimationStarted = "Animation.animationStarted"
CommandAuditsGetEncodedResponse = audits.CommandGetEncodedResponse
CommandAuditsDisable = audits.CommandDisable
CommandAuditsEnable = audits.CommandEnable
CommandAuditsCheckContrast = audits.CommandCheckContrast
CommandAuditsCheckFormsIssues = audits.CommandCheckFormsIssues
EventAuditsIssueAdded = "Audits.issueAdded"
CommandAutofillTrigger = autofill.CommandTrigger
CommandAutofillSetAddresses = autofill.CommandSetAddresses
CommandAutofillDisable = autofill.CommandDisable
CommandAutofillEnable = autofill.CommandEnable
EventAutofillAddressFormFilled = "Autofill.addressFormFilled"
CommandBackgroundServiceStartObserving = backgroundservice.CommandStartObserving
CommandBackgroundServiceStopObserving = backgroundservice.CommandStopObserving
CommandBackgroundServiceSetRecording = backgroundservice.CommandSetRecording
CommandBackgroundServiceClearEvents = backgroundservice.CommandClearEvents
EventBackgroundServiceRecordingStateChanged = "BackgroundService.recordingStateChanged"
EventBackgroundServiceBackgroundServiceEventReceived = "BackgroundService.backgroundServiceEventReceived"
CommandBrowserSetPermission = browser.CommandSetPermission
CommandBrowserGrantPermissions = browser.CommandGrantPermissions
CommandBrowserResetPermissions = browser.CommandResetPermissions
CommandBrowserSetDownloadBehavior = browser.CommandSetDownloadBehavior
CommandBrowserCancelDownload = browser.CommandCancelDownload
CommandBrowserClose = browser.CommandClose
CommandBrowserCrash = browser.CommandCrash
CommandBrowserCrashGpuProcess = browser.CommandCrashGpuProcess
CommandBrowserGetVersion = browser.CommandGetVersion
CommandBrowserGetBrowserCommandLine = browser.CommandGetBrowserCommandLine
CommandBrowserGetHistograms = browser.CommandGetHistograms
CommandBrowserGetHistogram = browser.CommandGetHistogram
CommandBrowserGetWindowBounds = browser.CommandGetWindowBounds
CommandBrowserGetWindowForTarget = browser.CommandGetWindowForTarget
CommandBrowserSetWindowBounds = browser.CommandSetWindowBounds
CommandBrowserSetDockTile = browser.CommandSetDockTile
CommandBrowserExecuteBrowserCommand = browser.CommandExecuteBrowserCommand
CommandBrowserAddPrivacySandboxEnrollmentOverride = browser.CommandAddPrivacySandboxEnrollmentOverride
EventBrowserDownloadWillBegin = "Browser.downloadWillBegin"
EventBrowserDownloadProgress = "Browser.downloadProgress"
CommandCSSAddRule = css.CommandAddRule
CommandCSSCollectClassNames = css.CommandCollectClassNames
CommandCSSCreateStyleSheet = css.CommandCreateStyleSheet
CommandCSSDisable = css.CommandDisable
CommandCSSEnable = css.CommandEnable
CommandCSSForcePseudoState = css.CommandForcePseudoState
CommandCSSGetBackgroundColors = css.CommandGetBackgroundColors
CommandCSSGetComputedStyleForNode = css.CommandGetComputedStyleForNode
CommandCSSGetInlineStylesForNode = css.CommandGetInlineStylesForNode
CommandCSSGetMatchedStylesForNode = css.CommandGetMatchedStylesForNode
CommandCSSGetMediaQueries = css.CommandGetMediaQueries
CommandCSSGetPlatformFontsForNode = css.CommandGetPlatformFontsForNode
CommandCSSGetStyleSheetText = css.CommandGetStyleSheetText
CommandCSSGetLayersForNode = css.CommandGetLayersForNode
CommandCSSTrackComputedStyleUpdates = css.CommandTrackComputedStyleUpdates
CommandCSSTakeComputedStyleUpdates = css.CommandTakeComputedStyleUpdates
CommandCSSSetEffectivePropertyValueForNode = css.CommandSetEffectivePropertyValueForNode
CommandCSSSetPropertyRulePropertyName = css.CommandSetPropertyRulePropertyName
CommandCSSSetKeyframeKey = css.CommandSetKeyframeKey
CommandCSSSetMediaText = css.CommandSetMediaText
CommandCSSSetContainerQueryText = css.CommandSetContainerQueryText
CommandCSSSetSupportsText = css.CommandSetSupportsText
CommandCSSSetScopeText = css.CommandSetScopeText
CommandCSSSetRuleSelector = css.CommandSetRuleSelector
CommandCSSSetStyleSheetText = css.CommandSetStyleSheetText
CommandCSSSetStyleTexts = css.CommandSetStyleTexts
CommandCSSStartRuleUsageTracking = css.CommandStartRuleUsageTracking
CommandCSSStopRuleUsageTracking = css.CommandStopRuleUsageTracking
CommandCSSTakeCoverageDelta = css.CommandTakeCoverageDelta
CommandCSSSetLocalFontsEnabled = css.CommandSetLocalFontsEnabled
EventCSSFontsUpdated = "CSS.fontsUpdated"
EventCSSMediaQueryResultChanged = "CSS.mediaQueryResultChanged"
EventCSSStyleSheetAdded = "CSS.styleSheetAdded"
EventCSSStyleSheetChanged = "CSS.styleSheetChanged"
EventCSSStyleSheetRemoved = "CSS.styleSheetRemoved"
CommandCacheStorageDeleteCache = cachestorage.CommandDeleteCache
CommandCacheStorageDeleteEntry = cachestorage.CommandDeleteEntry
CommandCacheStorageRequestCacheNames = cachestorage.CommandRequestCacheNames
CommandCacheStorageRequestCachedResponse = cachestorage.CommandRequestCachedResponse
CommandCacheStorageRequestEntries = cachestorage.CommandRequestEntries
CommandCastEnable = cast.CommandEnable
CommandCastDisable = cast.CommandDisable
CommandCastSetSinkToUse = cast.CommandSetSinkToUse
CommandCastStartDesktopMirroring = cast.CommandStartDesktopMirroring
CommandCastStartTabMirroring = cast.CommandStartTabMirroring
CommandCastStopCasting = cast.CommandStopCasting
EventCastSinksUpdated = "Cast.sinksUpdated"
EventCastIssueUpdated = "Cast.issueUpdated"
CommandDOMCollectClassNamesFromSubtree = dom.CommandCollectClassNamesFromSubtree
CommandDOMCopyTo = dom.CommandCopyTo
CommandDOMDescribeNode = dom.CommandDescribeNode
CommandDOMScrollIntoViewIfNeeded = dom.CommandScrollIntoViewIfNeeded
CommandDOMDisable = dom.CommandDisable
CommandDOMDiscardSearchResults = dom.CommandDiscardSearchResults
CommandDOMEnable = dom.CommandEnable
CommandDOMFocus = dom.CommandFocus
CommandDOMGetAttributes = dom.CommandGetAttributes
CommandDOMGetBoxModel = dom.CommandGetBoxModel
CommandDOMGetContentQuads = dom.CommandGetContentQuads
CommandDOMGetDocument = dom.CommandGetDocument
CommandDOMGetNodesForSubtreeByStyle = dom.CommandGetNodesForSubtreeByStyle
CommandDOMGetNodeForLocation = dom.CommandGetNodeForLocation
CommandDOMGetOuterHTML = dom.CommandGetOuterHTML
CommandDOMGetRelayoutBoundary = dom.CommandGetRelayoutBoundary
CommandDOMGetSearchResults = dom.CommandGetSearchResults
CommandDOMMarkUndoableState = dom.CommandMarkUndoableState
CommandDOMMoveTo = dom.CommandMoveTo
CommandDOMPerformSearch = dom.CommandPerformSearch
CommandDOMPushNodeByPathToFrontend = dom.CommandPushNodeByPathToFrontend
CommandDOMPushNodesByBackendIDsToFrontend = dom.CommandPushNodesByBackendIDsToFrontend
CommandDOMQuerySelector = dom.CommandQuerySelector
CommandDOMQuerySelectorAll = dom.CommandQuerySelectorAll
CommandDOMGetTopLayerElements = dom.CommandGetTopLayerElements
CommandDOMRedo = dom.CommandRedo
CommandDOMRemoveAttribute = dom.CommandRemoveAttribute
CommandDOMRemoveNode = dom.CommandRemoveNode
CommandDOMRequestChildNodes = dom.CommandRequestChildNodes
CommandDOMRequestNode = dom.CommandRequestNode
CommandDOMResolveNode = dom.CommandResolveNode
CommandDOMSetAttributeValue = dom.CommandSetAttributeValue
CommandDOMSetAttributesAsText = dom.CommandSetAttributesAsText
CommandDOMSetFileInputFiles = dom.CommandSetFileInputFiles
CommandDOMSetNodeStackTracesEnabled = dom.CommandSetNodeStackTracesEnabled
CommandDOMGetNodeStackTraces = dom.CommandGetNodeStackTraces
CommandDOMGetFileInfo = dom.CommandGetFileInfo
CommandDOMSetInspectedNode = dom.CommandSetInspectedNode
CommandDOMSetNodeName = dom.CommandSetNodeName
CommandDOMSetNodeValue = dom.CommandSetNodeValue
CommandDOMSetOuterHTML = dom.CommandSetOuterHTML
CommandDOMUndo = dom.CommandUndo
CommandDOMGetFrameOwner = dom.CommandGetFrameOwner
CommandDOMGetContainerForNode = dom.CommandGetContainerForNode
CommandDOMGetQueryingDescendantsForContainer = dom.CommandGetQueryingDescendantsForContainer
EventDOMAttributeModified = "DOM.attributeModified"
EventDOMAttributeRemoved = "DOM.attributeRemoved"
EventDOMCharacterDataModified = "DOM.characterDataModified"
EventDOMChildNodeCountUpdated = "DOM.childNodeCountUpdated"
EventDOMChildNodeInserted = "DOM.childNodeInserted"
EventDOMChildNodeRemoved = "DOM.childNodeRemoved"
EventDOMDistributedNodesUpdated = "DOM.distributedNodesUpdated"
EventDOMDocumentUpdated = "DOM.documentUpdated"
EventDOMInlineStyleInvalidated = "DOM.inlineStyleInvalidated"
EventDOMPseudoElementAdded = "DOM.pseudoElementAdded"
EventDOMTopLayerElementsUpdated = "DOM.topLayerElementsUpdated"
EventDOMPseudoElementRemoved = "DOM.pseudoElementRemoved"
EventDOMSetChildNodes = "DOM.setChildNodes"
EventDOMShadowRootPopped = "DOM.shadowRootPopped"
EventDOMShadowRootPushed = "DOM.shadowRootPushed"
CommandDOMDebuggerGetEventListeners = domdebugger.CommandGetEventListeners
CommandDOMDebuggerRemoveDOMBreakpoint = domdebugger.CommandRemoveDOMBreakpoint
CommandDOMDebuggerRemoveEventListenerBreakpoint = domdebugger.CommandRemoveEventListenerBreakpoint
CommandDOMDebuggerRemoveXHRBreakpoint = domdebugger.CommandRemoveXHRBreakpoint
CommandDOMDebuggerSetBreakOnCSPViolation = domdebugger.CommandSetBreakOnCSPViolation
CommandDOMDebuggerSetDOMBreakpoint = domdebugger.CommandSetDOMBreakpoint
CommandDOMDebuggerSetEventListenerBreakpoint = domdebugger.CommandSetEventListenerBreakpoint
CommandDOMDebuggerSetXHRBreakpoint = domdebugger.CommandSetXHRBreakpoint
CommandDOMSnapshotDisable = domsnapshot.CommandDisable
CommandDOMSnapshotEnable = domsnapshot.CommandEnable
CommandDOMSnapshotCaptureSnapshot = domsnapshot.CommandCaptureSnapshot
CommandDOMStorageClear = domstorage.CommandClear
CommandDOMStorageDisable = domstorage.CommandDisable
CommandDOMStorageEnable = domstorage.CommandEnable
CommandDOMStorageGetDOMStorageItems = domstorage.CommandGetDOMStorageItems
CommandDOMStorageRemoveDOMStorageItem = domstorage.CommandRemoveDOMStorageItem
CommandDOMStorageSetDOMStorageItem = domstorage.CommandSetDOMStorageItem
EventDOMStorageDomStorageItemAdded = "DOMStorage.domStorageItemAdded"
EventDOMStorageDomStorageItemRemoved = "DOMStorage.domStorageItemRemoved"
EventDOMStorageDomStorageItemUpdated = "DOMStorage.domStorageItemUpdated"
EventDOMStorageDomStorageItemsCleared = "DOMStorage.domStorageItemsCleared"
CommandDatabaseDisable = database.CommandDisable
CommandDatabaseEnable = database.CommandEnable
CommandDatabaseExecuteSQL = database.CommandExecuteSQL
CommandDatabaseGetDatabaseTableNames = database.CommandGetDatabaseTableNames
EventDatabaseAddDatabase = "Database.addDatabase"
CommandDebuggerContinueToLocation = debugger.CommandContinueToLocation
CommandDebuggerDisable = debugger.CommandDisable
CommandDebuggerEnable = debugger.CommandEnable
CommandDebuggerEvaluateOnCallFrame = debugger.CommandEvaluateOnCallFrame
CommandDebuggerGetPossibleBreakpoints = debugger.CommandGetPossibleBreakpoints
CommandDebuggerGetScriptSource = debugger.CommandGetScriptSource
CommandDebuggerDisassembleWasmModule = debugger.CommandDisassembleWasmModule
CommandDebuggerNextWasmDisassemblyChunk = debugger.CommandNextWasmDisassemblyChunk
CommandDebuggerGetStackTrace = debugger.CommandGetStackTrace
CommandDebuggerPause = debugger.CommandPause
CommandDebuggerRemoveBreakpoint = debugger.CommandRemoveBreakpoint
CommandDebuggerRestartFrame = debugger.CommandRestartFrame
CommandDebuggerResume = debugger.CommandResume
CommandDebuggerSearchInContent = debugger.CommandSearchInContent
CommandDebuggerSetAsyncCallStackDepth = debugger.CommandSetAsyncCallStackDepth
CommandDebuggerSetBlackboxPatterns = debugger.CommandSetBlackboxPatterns
CommandDebuggerSetBlackboxedRanges = debugger.CommandSetBlackboxedRanges
CommandDebuggerSetBreakpoint = debugger.CommandSetBreakpoint
CommandDebuggerSetInstrumentationBreakpoint = debugger.CommandSetInstrumentationBreakpoint
CommandDebuggerSetBreakpointByURL = debugger.CommandSetBreakpointByURL
CommandDebuggerSetBreakpointOnFunctionCall = debugger.CommandSetBreakpointOnFunctionCall
CommandDebuggerSetBreakpointsActive = debugger.CommandSetBreakpointsActive
CommandDebuggerSetPauseOnExceptions = debugger.CommandSetPauseOnExceptions
CommandDebuggerSetReturnValue = debugger.CommandSetReturnValue
CommandDebuggerSetScriptSource = debugger.CommandSetScriptSource
CommandDebuggerSetSkipAllPauses = debugger.CommandSetSkipAllPauses
CommandDebuggerSetVariableValue = debugger.CommandSetVariableValue
CommandDebuggerStepInto = debugger.CommandStepInto
CommandDebuggerStepOut = debugger.CommandStepOut
CommandDebuggerStepOver = debugger.CommandStepOver
EventDebuggerBreakpointResolved = "Debugger.breakpointResolved"
EventDebuggerPaused = "Debugger.paused"
EventDebuggerResumed = "Debugger.resumed"
EventDebuggerScriptFailedToParse = "Debugger.scriptFailedToParse"
EventDebuggerScriptParsed = "Debugger.scriptParsed"
CommandDeviceAccessEnable = deviceaccess.CommandEnable
CommandDeviceAccessDisable = deviceaccess.CommandDisable
CommandDeviceAccessSelectPrompt = deviceaccess.CommandSelectPrompt
CommandDeviceAccessCancelPrompt = deviceaccess.CommandCancelPrompt
EventDeviceAccessDeviceRequestPrompted = "DeviceAccess.deviceRequestPrompted"
CommandDeviceOrientationClearDeviceOrientationOverride = deviceorientation.CommandClearDeviceOrientationOverride
CommandDeviceOrientationSetDeviceOrientationOverride = deviceorientation.CommandSetDeviceOrientationOverride
CommandEmulationCanEmulate = emulation.CommandCanEmulate
CommandEmulationClearDeviceMetricsOverride = emulation.CommandClearDeviceMetricsOverride
CommandEmulationClearGeolocationOverride = emulation.CommandClearGeolocationOverride
CommandEmulationResetPageScaleFactor = emulation.CommandResetPageScaleFactor
CommandEmulationSetFocusEmulationEnabled = emulation.CommandSetFocusEmulationEnabled
CommandEmulationSetAutoDarkModeOverride = emulation.CommandSetAutoDarkModeOverride
CommandEmulationSetCPUThrottlingRate = emulation.CommandSetCPUThrottlingRate
CommandEmulationSetDefaultBackgroundColorOverride = emulation.CommandSetDefaultBackgroundColorOverride
CommandEmulationSetDeviceMetricsOverride = emulation.CommandSetDeviceMetricsOverride
CommandEmulationSetScrollbarsHidden = emulation.CommandSetScrollbarsHidden
CommandEmulationSetDocumentCookieDisabled = emulation.CommandSetDocumentCookieDisabled
CommandEmulationSetEmitTouchEventsForMouse = emulation.CommandSetEmitTouchEventsForMouse
CommandEmulationSetEmulatedMedia = emulation.CommandSetEmulatedMedia
CommandEmulationSetEmulatedVisionDeficiency = emulation.CommandSetEmulatedVisionDeficiency
CommandEmulationSetGeolocationOverride = emulation.CommandSetGeolocationOverride
CommandEmulationGetOverriddenSensorInformation = emulation.CommandGetOverriddenSensorInformation
CommandEmulationSetSensorOverrideEnabled = emulation.CommandSetSensorOverrideEnabled
CommandEmulationSetSensorOverrideReadings = emulation.CommandSetSensorOverrideReadings
CommandEmulationSetIdleOverride = emulation.CommandSetIdleOverride
CommandEmulationClearIdleOverride = emulation.CommandClearIdleOverride
CommandEmulationSetPageScaleFactor = emulation.CommandSetPageScaleFactor
CommandEmulationSetScriptExecutionDisabled = emulation.CommandSetScriptExecutionDisabled
CommandEmulationSetTouchEmulationEnabled = emulation.CommandSetTouchEmulationEnabled
CommandEmulationSetVirtualTimePolicy = emulation.CommandSetVirtualTimePolicy
CommandEmulationSetLocaleOverride = emulation.CommandSetLocaleOverride
CommandEmulationSetTimezoneOverride = emulation.CommandSetTimezoneOverride
CommandEmulationSetDisabledImageTypes = emulation.CommandSetDisabledImageTypes
CommandEmulationSetHardwareConcurrencyOverride = emulation.CommandSetHardwareConcurrencyOverride
CommandEmulationSetUserAgentOverride = emulation.CommandSetUserAgentOverride
CommandEmulationSetAutomationOverride = emulation.CommandSetAutomationOverride
EventEmulationVirtualTimeBudgetExpired = "Emulation.virtualTimeBudgetExpired"
CommandEventBreakpointsSetInstrumentationBreakpoint = eventbreakpoints.CommandSetInstrumentationBreakpoint
CommandEventBreakpointsRemoveInstrumentationBreakpoint = eventbreakpoints.CommandRemoveInstrumentationBreakpoint
CommandEventBreakpointsDisable = eventbreakpoints.CommandDisable
CommandFedCmEnable = fedcm.CommandEnable
CommandFedCmDisable = fedcm.CommandDisable
CommandFedCmSelectAccount = fedcm.CommandSelectAccount
CommandFedCmClickDialogButton = fedcm.CommandClickDialogButton
CommandFedCmDismissDialog = fedcm.CommandDismissDialog
CommandFedCmResetCooldown = fedcm.CommandResetCooldown
EventFedCmDialogShown = "FedCm.dialogShown"
EventFedCmDialogClosed = "FedCm.dialogClosed"
CommandFetchDisable = fetch.CommandDisable
CommandFetchEnable = fetch.CommandEnable
CommandFetchFailRequest = fetch.CommandFailRequest
CommandFetchFulfillRequest = fetch.CommandFulfillRequest
CommandFetchContinueRequest = fetch.CommandContinueRequest
CommandFetchContinueWithAuth = fetch.CommandContinueWithAuth
CommandFetchContinueResponse = fetch.CommandContinueResponse
CommandFetchGetResponseBody = fetch.CommandGetResponseBody
CommandFetchTakeResponseBodyAsStream = fetch.CommandTakeResponseBodyAsStream
EventFetchRequestPaused = "Fetch.requestPaused"
EventFetchAuthRequired = "Fetch.authRequired"
CommandHeadlessExperimentalBeginFrame = headlessexperimental.CommandBeginFrame
CommandHeapProfilerAddInspectedHeapObject = heapprofiler.CommandAddInspectedHeapObject
CommandHeapProfilerCollectGarbage = heapprofiler.CommandCollectGarbage
CommandHeapProfilerDisable = heapprofiler.CommandDisable
CommandHeapProfilerEnable = heapprofiler.CommandEnable
CommandHeapProfilerGetHeapObjectID = heapprofiler.CommandGetHeapObjectID
CommandHeapProfilerGetObjectByHeapObjectID = heapprofiler.CommandGetObjectByHeapObjectID
CommandHeapProfilerGetSamplingProfile = heapprofiler.CommandGetSamplingProfile
CommandHeapProfilerStartSampling = heapprofiler.CommandStartSampling
CommandHeapProfilerStartTrackingHeapObjects = heapprofiler.CommandStartTrackingHeapObjects
CommandHeapProfilerStopSampling = heapprofiler.CommandStopSampling
CommandHeapProfilerStopTrackingHeapObjects = heapprofiler.CommandStopTrackingHeapObjects
CommandHeapProfilerTakeHeapSnapshot = heapprofiler.CommandTakeHeapSnapshot
EventHeapProfilerAddHeapSnapshotChunk = "HeapProfiler.addHeapSnapshotChunk"
EventHeapProfilerHeapStatsUpdate = "HeapProfiler.heapStatsUpdate"
EventHeapProfilerLastSeenObjectID = "HeapProfiler.lastSeenObjectId"
EventHeapProfilerReportHeapSnapshotProgress = "HeapProfiler.reportHeapSnapshotProgress"
EventHeapProfilerResetProfiles = "HeapProfiler.resetProfiles"
CommandIOClose = io.CommandClose
CommandIORead = io.CommandRead
CommandIOResolveBlob = io.CommandResolveBlob
CommandIndexedDBClearObjectStore = indexeddb.CommandClearObjectStore
CommandIndexedDBDeleteDatabase = indexeddb.CommandDeleteDatabase
CommandIndexedDBDeleteObjectStoreEntries = indexeddb.CommandDeleteObjectStoreEntries
CommandIndexedDBDisable = indexeddb.CommandDisable
CommandIndexedDBEnable = indexeddb.CommandEnable
CommandIndexedDBRequestData = indexeddb.CommandRequestData
CommandIndexedDBGetMetadata = indexeddb.CommandGetMetadata
CommandIndexedDBRequestDatabase = indexeddb.CommandRequestDatabase
CommandIndexedDBRequestDatabaseNames = indexeddb.CommandRequestDatabaseNames
CommandInputDispatchDragEvent = input.CommandDispatchDragEvent
CommandInputDispatchKeyEvent = input.CommandDispatchKeyEvent
CommandInputInsertText = input.CommandInsertText
CommandInputImeSetComposition = input.CommandImeSetComposition
CommandInputDispatchMouseEvent = input.CommandDispatchMouseEvent
CommandInputDispatchTouchEvent = input.CommandDispatchTouchEvent
CommandInputCancelDragging = input.CommandCancelDragging
CommandInputEmulateTouchFromMouseEvent = input.CommandEmulateTouchFromMouseEvent
CommandInputSetIgnoreInputEvents = input.CommandSetIgnoreInputEvents
CommandInputSetInterceptDrags = input.CommandSetInterceptDrags
CommandInputSynthesizePinchGesture = input.CommandSynthesizePinchGesture
CommandInputSynthesizeScrollGesture = input.CommandSynthesizeScrollGesture
CommandInputSynthesizeTapGesture = input.CommandSynthesizeTapGesture
EventInputDragIntercepted = "Input.dragIntercepted"
CommandInspectorDisable = inspector.CommandDisable
CommandInspectorEnable = inspector.CommandEnable
EventInspectorDetached = "Inspector.detached"
EventInspectorTargetCrashed = "Inspector.targetCrashed"
EventInspectorTargetReloadedAfterCrash = "Inspector.targetReloadedAfterCrash"
CommandLayerTreeCompositingReasons = layertree.CommandCompositingReasons
CommandLayerTreeDisable = layertree.CommandDisable
CommandLayerTreeEnable = layertree.CommandEnable
CommandLayerTreeLoadSnapshot = layertree.CommandLoadSnapshot
CommandLayerTreeMakeSnapshot = layertree.CommandMakeSnapshot
CommandLayerTreeProfileSnapshot = layertree.CommandProfileSnapshot
CommandLayerTreeReleaseSnapshot = layertree.CommandReleaseSnapshot
CommandLayerTreeReplaySnapshot = layertree.CommandReplaySnapshot
CommandLayerTreeSnapshotCommandLog = layertree.CommandSnapshotCommandLog
EventLayerTreeLayerPainted = "LayerTree.layerPainted"
EventLayerTreeLayerTreeDidChange = "LayerTree.layerTreeDidChange"
CommandLogClear = log.CommandClear
CommandLogDisable = log.CommandDisable
CommandLogEnable = log.CommandEnable
CommandLogStartViolationsReport = log.CommandStartViolationsReport
CommandLogStopViolationsReport = log.CommandStopViolationsReport
EventLogEntryAdded = "Log.entryAdded"
CommandMediaEnable = media.CommandEnable
CommandMediaDisable = media.CommandDisable
EventMediaPlayerPropertiesChanged = "Media.playerPropertiesChanged"
EventMediaPlayerEventsAdded = "Media.playerEventsAdded"
EventMediaPlayerMessagesLogged = "Media.playerMessagesLogged"
EventMediaPlayerErrorsRaised = "Media.playerErrorsRaised"
EventMediaPlayersCreated = "Media.playersCreated"
CommandMemoryGetDOMCounters = memory.CommandGetDOMCounters
CommandMemoryPrepareForLeakDetection = memory.CommandPrepareForLeakDetection
CommandMemoryForciblyPurgeJavaScriptMemory = memory.CommandForciblyPurgeJavaScriptMemory
CommandMemorySetPressureNotificationsSuppressed = memory.CommandSetPressureNotificationsSuppressed
CommandMemorySimulatePressureNotification = memory.CommandSimulatePressureNotification
CommandMemoryStartSampling = memory.CommandStartSampling
CommandMemoryStopSampling = memory.CommandStopSampling
CommandMemoryGetAllTimeSamplingProfile = memory.CommandGetAllTimeSamplingProfile
CommandMemoryGetBrowserSamplingProfile = memory.CommandGetBrowserSamplingProfile
CommandMemoryGetSamplingProfile = memory.CommandGetSamplingProfile
CommandNetworkSetAcceptedEncodings = network.CommandSetAcceptedEncodings
CommandNetworkClearAcceptedEncodingsOverride = network.CommandClearAcceptedEncodingsOverride
CommandNetworkClearBrowserCache = network.CommandClearBrowserCache
CommandNetworkClearBrowserCookies = network.CommandClearBrowserCookies
CommandNetworkDeleteCookies = network.CommandDeleteCookies
CommandNetworkDisable = network.CommandDisable
CommandNetworkEmulateNetworkConditions = network.CommandEmulateNetworkConditions
CommandNetworkEnable = network.CommandEnable
CommandNetworkGetCertificate = network.CommandGetCertificate
CommandNetworkGetCookies = network.CommandGetCookies
CommandNetworkGetResponseBody = network.CommandGetResponseBody
CommandNetworkGetRequestPostData = network.CommandGetRequestPostData
CommandNetworkGetResponseBodyForInterception = network.CommandGetResponseBodyForInterception
CommandNetworkTakeResponseBodyForInterceptionAsStream = network.CommandTakeResponseBodyForInterceptionAsStream
CommandNetworkReplayXHR = network.CommandReplayXHR
CommandNetworkSearchInResponseBody = network.CommandSearchInResponseBody
CommandNetworkSetBlockedURLS = network.CommandSetBlockedURLS
CommandNetworkSetBypassServiceWorker = network.CommandSetBypassServiceWorker
CommandNetworkSetCacheDisabled = network.CommandSetCacheDisabled
CommandNetworkSetCookie = network.CommandSetCookie
CommandNetworkSetCookies = network.CommandSetCookies
CommandNetworkSetExtraHTTPHeaders = network.CommandSetExtraHTTPHeaders
CommandNetworkSetAttachDebugStack = network.CommandSetAttachDebugStack
CommandNetworkStreamResourceContent = network.CommandStreamResourceContent
CommandNetworkGetSecurityIsolationStatus = network.CommandGetSecurityIsolationStatus
CommandNetworkEnableReportingAPI = network.CommandEnableReportingAPI
CommandNetworkLoadNetworkResource = network.CommandLoadNetworkResource
EventNetworkDataReceived = "Network.dataReceived"
EventNetworkEventSourceMessageReceived = "Network.eventSourceMessageReceived"
EventNetworkLoadingFailed = "Network.loadingFailed"
EventNetworkLoadingFinished = "Network.loadingFinished"
EventNetworkRequestServedFromCache = "Network.requestServedFromCache"
EventNetworkRequestWillBeSent = "Network.requestWillBeSent"
EventNetworkResourceChangedPriority = "Network.resourceChangedPriority"
EventNetworkSignedExchangeReceived = "Network.signedExchangeReceived"
EventNetworkResponseReceived = "Network.responseReceived"
EventNetworkWebSocketClosed = "Network.webSocketClosed"
EventNetworkWebSocketCreated = "Network.webSocketCreated"
EventNetworkWebSocketFrameError = "Network.webSocketFrameError"
EventNetworkWebSocketFrameReceived = "Network.webSocketFrameReceived"
EventNetworkWebSocketFrameSent = "Network.webSocketFrameSent"
EventNetworkWebSocketHandshakeResponseReceived = "Network.webSocketHandshakeResponseReceived"
EventNetworkWebSocketWillSendHandshakeRequest = "Network.webSocketWillSendHandshakeRequest"
EventNetworkWebTransportCreated = "Network.webTransportCreated"
EventNetworkWebTransportConnectionEstablished = "Network.webTransportConnectionEstablished"
EventNetworkWebTransportClosed = "Network.webTransportClosed"
EventNetworkRequestWillBeSentExtraInfo = "Network.requestWillBeSentExtraInfo"
EventNetworkResponseReceivedExtraInfo = "Network.responseReceivedExtraInfo"
EventNetworkTrustTokenOperationDone = "Network.trustTokenOperationDone"
EventNetworkSubresourceWebBundleMetadataReceived = "Network.subresourceWebBundleMetadataReceived"
EventNetworkSubresourceWebBundleMetadataError = "Network.subresourceWebBundleMetadataError"
EventNetworkSubresourceWebBundleInnerResponseParsed = "Network.subresourceWebBundleInnerResponseParsed"
EventNetworkSubresourceWebBundleInnerResponseError = "Network.subresourceWebBundleInnerResponseError"
EventNetworkReportingAPIReportAdded = "Network.reportingApiReportAdded"
EventNetworkReportingAPIReportUpdated = "Network.reportingApiReportUpdated"
EventNetworkReportingAPIEndpointsChangedForOrigin = "Network.reportingApiEndpointsChangedForOrigin"
CommandOverlayDisable = overlay.CommandDisable
CommandOverlayEnable = overlay.CommandEnable
CommandOverlayGetHighlightObjectForTest = overlay.CommandGetHighlightObjectForTest
CommandOverlayGetGridHighlightObjectsForTest = overlay.CommandGetGridHighlightObjectsForTest
CommandOverlayGetSourceOrderHighlightObjectForTest = overlay.CommandGetSourceOrderHighlightObjectForTest
CommandOverlayHideHighlight = overlay.CommandHideHighlight
CommandOverlayHighlightNode = overlay.CommandHighlightNode
CommandOverlayHighlightQuad = overlay.CommandHighlightQuad
CommandOverlayHighlightRect = overlay.CommandHighlightRect
CommandOverlayHighlightSourceOrder = overlay.CommandHighlightSourceOrder
CommandOverlaySetInspectMode = overlay.CommandSetInspectMode
CommandOverlaySetShowAdHighlights = overlay.CommandSetShowAdHighlights
CommandOverlaySetPausedInDebuggerMessage = overlay.CommandSetPausedInDebuggerMessage
CommandOverlaySetShowDebugBorders = overlay.CommandSetShowDebugBorders
CommandOverlaySetShowFPSCounter = overlay.CommandSetShowFPSCounter
CommandOverlaySetShowGridOverlays = overlay.CommandSetShowGridOverlays
CommandOverlaySetShowFlexOverlays = overlay.CommandSetShowFlexOverlays
CommandOverlaySetShowScrollSnapOverlays = overlay.CommandSetShowScrollSnapOverlays
CommandOverlaySetShowContainerQueryOverlays = overlay.CommandSetShowContainerQueryOverlays
CommandOverlaySetShowPaintRects = overlay.CommandSetShowPaintRects
CommandOverlaySetShowLayoutShiftRegions = overlay.CommandSetShowLayoutShiftRegions
CommandOverlaySetShowScrollBottleneckRects = overlay.CommandSetShowScrollBottleneckRects
CommandOverlaySetShowWebVitals = overlay.CommandSetShowWebVitals
CommandOverlaySetShowViewportSizeOnResize = overlay.CommandSetShowViewportSizeOnResize
CommandOverlaySetShowHinge = overlay.CommandSetShowHinge
CommandOverlaySetShowIsolatedElements = overlay.CommandSetShowIsolatedElements
CommandOverlaySetShowWindowControlsOverlay = overlay.CommandSetShowWindowControlsOverlay
EventOverlayInspectNodeRequested = "Overlay.inspectNodeRequested"
EventOverlayNodeHighlightRequested = "Overlay.nodeHighlightRequested"
EventOverlayScreenshotRequested = "Overlay.screenshotRequested"
EventOverlayInspectModeCanceled = "Overlay.inspectModeCanceled"
CommandPageAddScriptToEvaluateOnNewDocument = page.CommandAddScriptToEvaluateOnNewDocument
CommandPageBringToFront = page.CommandBringToFront
CommandPageCaptureScreenshot = page.CommandCaptureScreenshot
CommandPageCaptureSnapshot = page.CommandCaptureSnapshot
CommandPageCreateIsolatedWorld = page.CommandCreateIsolatedWorld
CommandPageDisable = page.CommandDisable
CommandPageEnable = page.CommandEnable
CommandPageGetAppManifest = page.CommandGetAppManifest
CommandPageGetInstallabilityErrors = page.CommandGetInstallabilityErrors
CommandPageGetAppID = page.CommandGetAppID
CommandPageGetAdScriptID = page.CommandGetAdScriptID
CommandPageGetFrameTree = page.CommandGetFrameTree
CommandPageGetLayoutMetrics = page.CommandGetLayoutMetrics
CommandPageGetNavigationHistory = page.CommandGetNavigationHistory
CommandPageResetNavigationHistory = page.CommandResetNavigationHistory
CommandPageGetResourceContent = page.CommandGetResourceContent
CommandPageGetResourceTree = page.CommandGetResourceTree
CommandPageHandleJavaScriptDialog = page.CommandHandleJavaScriptDialog
CommandPageNavigate = page.CommandNavigate
CommandPageNavigateToHistoryEntry = page.CommandNavigateToHistoryEntry
CommandPagePrintToPDF = page.CommandPrintToPDF
CommandPageReload = page.CommandReload
CommandPageRemoveScriptToEvaluateOnNewDocument = page.CommandRemoveScriptToEvaluateOnNewDocument
CommandPageScreencastFrameAck = page.CommandScreencastFrameAck
CommandPageSearchInResource = page.CommandSearchInResource
CommandPageSetAdBlockingEnabled = page.CommandSetAdBlockingEnabled
CommandPageSetBypassCSP = page.CommandSetBypassCSP
CommandPageGetPermissionsPolicyState = page.CommandGetPermissionsPolicyState
CommandPageGetOriginTrials = page.CommandGetOriginTrials
CommandPageSetFontFamilies = page.CommandSetFontFamilies
CommandPageSetFontSizes = page.CommandSetFontSizes
CommandPageSetDocumentContent = page.CommandSetDocumentContent
CommandPageSetLifecycleEventsEnabled = page.CommandSetLifecycleEventsEnabled
CommandPageStartScreencast = page.CommandStartScreencast
CommandPageStopLoading = page.CommandStopLoading
CommandPageCrash = page.CommandCrash
CommandPageClose = page.CommandClose
CommandPageSetWebLifecycleState = page.CommandSetWebLifecycleState
CommandPageStopScreencast = page.CommandStopScreencast
CommandPageProduceCompilationCache = page.CommandProduceCompilationCache
CommandPageAddCompilationCache = page.CommandAddCompilationCache
CommandPageClearCompilationCache = page.CommandClearCompilationCache
CommandPageSetSPCTransactionMode = page.CommandSetSPCTransactionMode
CommandPageSetRPHRegistrationMode = page.CommandSetRPHRegistrationMode
CommandPageGenerateTestReport = page.CommandGenerateTestReport
CommandPageWaitForDebugger = page.CommandWaitForDebugger
CommandPageSetInterceptFileChooserDialog = page.CommandSetInterceptFileChooserDialog
CommandPageSetPrerenderingAllowed = page.CommandSetPrerenderingAllowed
EventPageDomContentEventFired = "Page.domContentEventFired"
EventPageFileChooserOpened = "Page.fileChooserOpened"
EventPageFrameAttached = "Page.frameAttached"
EventPageFrameDetached = "Page.frameDetached"
EventPageFrameNavigated = "Page.frameNavigated"
EventPageDocumentOpened = "Page.documentOpened"
EventPageFrameResized = "Page.frameResized"
EventPageFrameRequestedNavigation = "Page.frameRequestedNavigation"
EventPageFrameStartedLoading = "Page.frameStartedLoading"
EventPageFrameStoppedLoading = "Page.frameStoppedLoading"
EventPageInterstitialHidden = "Page.interstitialHidden"
EventPageInterstitialShown = "Page.interstitialShown"
EventPageJavascriptDialogClosed = "Page.javascriptDialogClosed"
EventPageJavascriptDialogOpening = "Page.javascriptDialogOpening"
EventPageLifecycleEvent = "Page.lifecycleEvent"
EventPageBackForwardCacheNotUsed = "Page.backForwardCacheNotUsed"
EventPageLoadEventFired = "Page.loadEventFired"
EventPageNavigatedWithinDocument = "Page.navigatedWithinDocument"
EventPageScreencastFrame = "Page.screencastFrame"
EventPageScreencastVisibilityChanged = "Page.screencastVisibilityChanged"
EventPageWindowOpen = "Page.windowOpen"
EventPageCompilationCacheProduced = "Page.compilationCacheProduced"
CommandPerformanceDisable = performance.CommandDisable
CommandPerformanceEnable = performance.CommandEnable
CommandPerformanceGetMetrics = performance.CommandGetMetrics
EventPerformanceMetrics = "Performance.metrics"
CommandPerformanceTimelineEnable = performancetimeline.CommandEnable
EventPerformanceTimelineTimelineEventAdded = "PerformanceTimeline.timelineEventAdded"
CommandPreloadEnable = preload.CommandEnable
CommandPreloadDisable = preload.CommandDisable
EventPreloadRuleSetUpdated = "Preload.ruleSetUpdated"
EventPreloadRuleSetRemoved = "Preload.ruleSetRemoved"
EventPreloadPreloadEnabledStateUpdated = "Preload.preloadEnabledStateUpdated"
EventPreloadPrefetchStatusUpdated = "Preload.prefetchStatusUpdated"
EventPreloadPrerenderStatusUpdated = "Preload.prerenderStatusUpdated"
EventPreloadPreloadingAttemptSourcesUpdated = "Preload.preloadingAttemptSourcesUpdated"
CommandProfilerDisable = profiler.CommandDisable
CommandProfilerEnable = profiler.CommandEnable
CommandProfilerGetBestEffortCoverage = profiler.CommandGetBestEffortCoverage
CommandProfilerSetSamplingInterval = profiler.CommandSetSamplingInterval
CommandProfilerStart = profiler.CommandStart
CommandProfilerStartPreciseCoverage = profiler.CommandStartPreciseCoverage
CommandProfilerStop = profiler.CommandStop
CommandProfilerStopPreciseCoverage = profiler.CommandStopPreciseCoverage
CommandProfilerTakePreciseCoverage = profiler.CommandTakePreciseCoverage
EventProfilerConsoleProfileFinished = "Profiler.consoleProfileFinished"
EventProfilerConsoleProfileStarted = "Profiler.consoleProfileStarted"
EventProfilerPreciseCoverageDeltaUpdate = "Profiler.preciseCoverageDeltaUpdate"
CommandRuntimeAwaitPromise = runtime.CommandAwaitPromise
CommandRuntimeCallFunctionOn = runtime.CommandCallFunctionOn
CommandRuntimeCompileScript = runtime.CommandCompileScript
CommandRuntimeDisable = runtime.CommandDisable
CommandRuntimeDiscardConsoleEntries = runtime.CommandDiscardConsoleEntries
CommandRuntimeEnable = runtime.CommandEnable
CommandRuntimeEvaluate = runtime.CommandEvaluate
CommandRuntimeGetIsolateID = runtime.CommandGetIsolateID
CommandRuntimeGetHeapUsage = runtime.CommandGetHeapUsage
CommandRuntimeGetProperties = runtime.CommandGetProperties
CommandRuntimeGlobalLexicalScopeNames = runtime.CommandGlobalLexicalScopeNames
CommandRuntimeQueryObjects = runtime.CommandQueryObjects
CommandRuntimeReleaseObject = runtime.CommandReleaseObject
CommandRuntimeReleaseObjectGroup = runtime.CommandReleaseObjectGroup
CommandRuntimeRunIfWaitingForDebugger = runtime.CommandRunIfWaitingForDebugger
CommandRuntimeRunScript = runtime.CommandRunScript
CommandRuntimeSetCustomObjectFormatterEnabled = runtime.CommandSetCustomObjectFormatterEnabled
CommandRuntimeSetMaxCallStackSizeToCapture = runtime.CommandSetMaxCallStackSizeToCapture
CommandRuntimeTerminateExecution = runtime.CommandTerminateExecution
CommandRuntimeAddBinding = runtime.CommandAddBinding
CommandRuntimeRemoveBinding = runtime.CommandRemoveBinding
CommandRuntimeGetExceptionDetails = runtime.CommandGetExceptionDetails
EventRuntimeBindingCalled = "Runtime.bindingCalled"
EventRuntimeConsoleAPICalled = "Runtime.consoleAPICalled"
EventRuntimeExceptionRevoked = "Runtime.exceptionRevoked"
EventRuntimeExceptionThrown = "Runtime.exceptionThrown"
EventRuntimeExecutionContextCreated = "Runtime.executionContextCreated"
EventRuntimeExecutionContextDestroyed = "Runtime.executionContextDestroyed"
EventRuntimeExecutionContextsCleared = "Runtime.executionContextsCleared"
EventRuntimeInspectRequested = "Runtime.inspectRequested"
CommandSecurityDisable = security.CommandDisable
CommandSecurityEnable = security.CommandEnable
CommandSecuritySetIgnoreCertificateErrors = security.CommandSetIgnoreCertificateErrors
EventSecurityVisibleSecurityStateChanged = "Security.visibleSecurityStateChanged"
CommandServiceWorkerDeliverPushMessage = serviceworker.CommandDeliverPushMessage
CommandServiceWorkerDisable = serviceworker.CommandDisable
CommandServiceWorkerDispatchSyncEvent = serviceworker.CommandDispatchSyncEvent
CommandServiceWorkerDispatchPeriodicSyncEvent = serviceworker.CommandDispatchPeriodicSyncEvent
CommandServiceWorkerEnable = serviceworker.CommandEnable
CommandServiceWorkerInspectWorker = serviceworker.CommandInspectWorker
CommandServiceWorkerSetForceUpdateOnPageLoad = serviceworker.CommandSetForceUpdateOnPageLoad
CommandServiceWorkerSkipWaiting = serviceworker.CommandSkipWaiting
CommandServiceWorkerStartWorker = serviceworker.CommandStartWorker
CommandServiceWorkerStopAllWorkers = serviceworker.CommandStopAllWorkers
CommandServiceWorkerStopWorker = serviceworker.CommandStopWorker
CommandServiceWorkerUnregister = serviceworker.CommandUnregister
CommandServiceWorkerUpdateRegistration = serviceworker.CommandUpdateRegistration
EventServiceWorkerWorkerErrorReported = "ServiceWorker.workerErrorReported"
EventServiceWorkerWorkerRegistrationUpdated = "ServiceWorker.workerRegistrationUpdated"
EventServiceWorkerWorkerVersionUpdated = "ServiceWorker.workerVersionUpdated"
CommandStorageGetStorageKeyForFrame = storage.CommandGetStorageKeyForFrame
CommandStorageClearDataForOrigin = storage.CommandClearDataForOrigin
CommandStorageClearDataForStorageKey = storage.CommandClearDataForStorageKey
CommandStorageGetCookies = storage.CommandGetCookies
CommandStorageSetCookies = storage.CommandSetCookies
CommandStorageClearCookies = storage.CommandClearCookies
CommandStorageGetUsageAndQuota = storage.CommandGetUsageAndQuota
CommandStorageOverrideQuotaForOrigin = storage.CommandOverrideQuotaForOrigin
CommandStorageTrackCacheStorageForOrigin = storage.CommandTrackCacheStorageForOrigin
CommandStorageTrackCacheStorageForStorageKey = storage.CommandTrackCacheStorageForStorageKey
CommandStorageTrackIndexedDBForOrigin = storage.CommandTrackIndexedDBForOrigin
CommandStorageTrackIndexedDBForStorageKey = storage.CommandTrackIndexedDBForStorageKey
CommandStorageUntrackCacheStorageForOrigin = storage.CommandUntrackCacheStorageForOrigin
CommandStorageUntrackCacheStorageForStorageKey = storage.CommandUntrackCacheStorageForStorageKey
CommandStorageUntrackIndexedDBForOrigin = storage.CommandUntrackIndexedDBForOrigin
CommandStorageUntrackIndexedDBForStorageKey = storage.CommandUntrackIndexedDBForStorageKey
CommandStorageGetTrustTokens = storage.CommandGetTrustTokens
CommandStorageClearTrustTokens = storage.CommandClearTrustTokens
CommandStorageGetInterestGroupDetails = storage.CommandGetInterestGroupDetails
CommandStorageSetInterestGroupTracking = storage.CommandSetInterestGroupTracking
CommandStorageGetSharedStorageMetadata = storage.CommandGetSharedStorageMetadata
CommandStorageGetSharedStorageEntries = storage.CommandGetSharedStorageEntries
CommandStorageSetSharedStorageEntry = storage.CommandSetSharedStorageEntry
CommandStorageDeleteSharedStorageEntry = storage.CommandDeleteSharedStorageEntry
CommandStorageClearSharedStorageEntries = storage.CommandClearSharedStorageEntries
CommandStorageResetSharedStorageBudget = storage.CommandResetSharedStorageBudget
CommandStorageSetSharedStorageTracking = storage.CommandSetSharedStorageTracking
CommandStorageSetStorageBucketTracking = storage.CommandSetStorageBucketTracking
CommandStorageDeleteStorageBucket = storage.CommandDeleteStorageBucket
CommandStorageRunBounceTrackingMitigations = storage.CommandRunBounceTrackingMitigations
CommandStorageSetAttributionReportingLocalTestingMode = storage.CommandSetAttributionReportingLocalTestingMode
CommandStorageSetAttributionReportingTracking = storage.CommandSetAttributionReportingTracking
EventStorageCacheStorageContentUpdated = "Storage.cacheStorageContentUpdated"
EventStorageCacheStorageListUpdated = "Storage.cacheStorageListUpdated"
EventStorageIndexedDBContentUpdated = "Storage.indexedDBContentUpdated"
EventStorageIndexedDBListUpdated = "Storage.indexedDBListUpdated"
EventStorageInterestGroupAccessed = "Storage.interestGroupAccessed"
EventStorageSharedStorageAccessed = "Storage.sharedStorageAccessed"
EventStorageStorageBucketCreatedOrUpdated = "Storage.storageBucketCreatedOrUpdated"
EventStorageStorageBucketDeleted = "Storage.storageBucketDeleted"
EventStorageAttributionReportingSourceRegistered = "Storage.attributionReportingSourceRegistered"
EventStorageAttributionReportingTriggerRegistered = "Storage.attributionReportingTriggerRegistered"
CommandSystemInfoGetInfo = systeminfo.CommandGetInfo
CommandSystemInfoGetFeatureState = systeminfo.CommandGetFeatureState
CommandSystemInfoGetProcessInfo = systeminfo.CommandGetProcessInfo
CommandTargetActivateTarget = target.CommandActivateTarget
CommandTargetAttachToTarget = target.CommandAttachToTarget
CommandTargetAttachToBrowserTarget = target.CommandAttachToBrowserTarget
CommandTargetCloseTarget = target.CommandCloseTarget
CommandTargetExposeDevToolsProtocol = target.CommandExposeDevToolsProtocol
CommandTargetCreateBrowserContext = target.CommandCreateBrowserContext
CommandTargetGetBrowserContexts = target.CommandGetBrowserContexts
CommandTargetCreateTarget = target.CommandCreateTarget
CommandTargetDetachFromTarget = target.CommandDetachFromTarget
CommandTargetDisposeBrowserContext = target.CommandDisposeBrowserContext
CommandTargetGetTargetInfo = target.CommandGetTargetInfo
CommandTargetGetTargets = target.CommandGetTargets
CommandTargetSetAutoAttach = target.CommandSetAutoAttach
CommandTargetAutoAttachRelated = target.CommandAutoAttachRelated
CommandTargetSetDiscoverTargets = target.CommandSetDiscoverTargets
CommandTargetSetRemoteLocations = target.CommandSetRemoteLocations
EventTargetAttachedToTarget = "Target.attachedToTarget"
EventTargetDetachedFromTarget = "Target.detachedFromTarget"
EventTargetReceivedMessageFromTarget = "Target.receivedMessageFromTarget"
EventTargetTargetCreated = "Target.targetCreated"
EventTargetTargetDestroyed = "Target.targetDestroyed"
EventTargetTargetCrashed = "Target.targetCrashed"
EventTargetTargetInfoChanged = "Target.targetInfoChanged"
CommandTetheringBind = tethering.CommandBind
CommandTetheringUnbind = tethering.CommandUnbind
EventTetheringAccepted = "Tethering.accepted"
CommandTracingEnd = tracing.CommandEnd
CommandTracingGetCategories = tracing.CommandGetCategories
CommandTracingRecordClockSyncMarker = tracing.CommandRecordClockSyncMarker
CommandTracingRequestMemoryDump = tracing.CommandRequestMemoryDump
CommandTracingStart = tracing.CommandStart
EventTracingBufferUsage = "Tracing.bufferUsage"
EventTracingDataCollected = "Tracing.dataCollected"
EventTracingTracingComplete = "Tracing.tracingComplete"
CommandWebAudioEnable = webaudio.CommandEnable
CommandWebAudioDisable = webaudio.CommandDisable
CommandWebAudioGetRealtimeData = webaudio.CommandGetRealtimeData
EventWebAudioContextCreated = "WebAudio.contextCreated"
EventWebAudioContextWillBeDestroyed = "WebAudio.contextWillBeDestroyed"
EventWebAudioContextChanged = "WebAudio.contextChanged"
EventWebAudioAudioListenerCreated = "WebAudio.audioListenerCreated"
EventWebAudioAudioListenerWillBeDestroyed = "WebAudio.audioListenerWillBeDestroyed"
EventWebAudioAudioNodeCreated = "WebAudio.audioNodeCreated"
EventWebAudioAudioNodeWillBeDestroyed = "WebAudio.audioNodeWillBeDestroyed"
EventWebAudioAudioParamCreated = "WebAudio.audioParamCreated"
EventWebAudioAudioParamWillBeDestroyed = "WebAudio.audioParamWillBeDestroyed"
EventWebAudioNodesConnected = "WebAudio.nodesConnected"
EventWebAudioNodesDisconnected = "WebAudio.nodesDisconnected"
EventWebAudioNodeParamConnected = "WebAudio.nodeParamConnected"
EventWebAudioNodeParamDisconnected = "WebAudio.nodeParamDisconnected"
CommandWebAuthnEnable = webauthn.CommandEnable
CommandWebAuthnDisable = webauthn.CommandDisable
CommandWebAuthnAddVirtualAuthenticator = webauthn.CommandAddVirtualAuthenticator
CommandWebAuthnSetResponseOverrideBits = webauthn.CommandSetResponseOverrideBits
CommandWebAuthnRemoveVirtualAuthenticator = webauthn.CommandRemoveVirtualAuthenticator
CommandWebAuthnAddCredential = webauthn.CommandAddCredential
CommandWebAuthnGetCredential = webauthn.CommandGetCredential
CommandWebAuthnGetCredentials = webauthn.CommandGetCredentials
CommandWebAuthnRemoveCredential = webauthn.CommandRemoveCredential
CommandWebAuthnClearCredentials = webauthn.CommandClearCredentials
CommandWebAuthnSetUserVerified = webauthn.CommandSetUserVerified
CommandWebAuthnSetAutomaticPresenceSimulation = webauthn.CommandSetAutomaticPresenceSimulation
EventWebAuthnCredentialAdded = "WebAuthn.credentialAdded"
EventWebAuthnCredentialAsserted = "WebAuthn.credentialAsserted"
)
// Error error type.
type Error struct {
Code int64 `json:"code"` // Error code.
Message string `json:"message"` // Error message.
}
// Error satisfies the error interface.
func (e *Error) Error() string {
return fmt.Sprintf("%s (%d)", e.Message, e.Code)
}
// Message chrome DevTools Protocol message sent/read over websocket
// connection.
type Message struct {
ID int64 `json:"id,omitempty"` // Unique message identifier.
SessionID target.SessionID `json:"sessionId,omitempty"` // Session that the message belongs to when using flat access.
Method MethodType `json:"method,omitempty"` // Event or command type.
Params easyjson.RawMessage `json:"params,omitempty"` // Event or command parameters.
Result easyjson.RawMessage `json:"result,omitempty"` // Command return values.
Error *Error `json:"error,omitempty"` // Error message.
}
type empty struct{}
var emptyVal = &empty{}
// UnmarshalMessage unmarshals the message result or params.
func UnmarshalMessage(msg *Message) (interface{}, error) {
var v easyjson.Unmarshaler
switch msg.Method {
case CommandAccessibilityDisable:
return emptyVal, nil
case CommandAccessibilityEnable:
return emptyVal, nil
case CommandAccessibilityGetPartialAXTree:
v = new(accessibility.GetPartialAXTreeReturns)
case CommandAccessibilityGetFullAXTree:
v = new(accessibility.GetFullAXTreeReturns)
case CommandAccessibilityGetRootAXNode:
v = new(accessibility.GetRootAXNodeReturns)
case CommandAccessibilityGetAXNodeAndAncestors:
v = new(accessibility.GetAXNodeAndAncestorsReturns)
case CommandAccessibilityGetChildAXNodes:
v = new(accessibility.GetChildAXNodesReturns)
case CommandAccessibilityQueryAXTree:
v = new(accessibility.QueryAXTreeReturns)
case EventAccessibilityLoadComplete:
v = new(accessibility.EventLoadComplete)
case EventAccessibilityNodesUpdated:
v = new(accessibility.EventNodesUpdated)
case CommandAnimationDisable:
return emptyVal, nil
case CommandAnimationEnable:
return emptyVal, nil
case CommandAnimationGetCurrentTime:
v = new(animation.GetCurrentTimeReturns)
case CommandAnimationGetPlaybackRate:
v = new(animation.GetPlaybackRateReturns)
case CommandAnimationReleaseAnimations:
return emptyVal, nil
case CommandAnimationResolveAnimation:
v = new(animation.ResolveAnimationReturns)
case CommandAnimationSeekAnimations:
return emptyVal, nil
case CommandAnimationSetPaused:
return emptyVal, nil
case CommandAnimationSetPlaybackRate:
return emptyVal, nil
case CommandAnimationSetTiming:
return emptyVal, nil
case EventAnimationAnimationCanceled:
v = new(animation.EventAnimationCanceled)
case EventAnimationAnimationCreated:
v = new(animation.EventAnimationCreated)
case EventAnimationAnimationStarted:
v = new(animation.EventAnimationStarted)
case CommandAuditsGetEncodedResponse:
v = new(audits.GetEncodedResponseReturns)
case CommandAuditsDisable:
return emptyVal, nil
case CommandAuditsEnable:
return emptyVal, nil
case CommandAuditsCheckContrast:
return emptyVal, nil
case CommandAuditsCheckFormsIssues:
v = new(audits.CheckFormsIssuesReturns)
case EventAuditsIssueAdded:
v = new(audits.EventIssueAdded)
case CommandAutofillTrigger:
return emptyVal, nil
case CommandAutofillSetAddresses:
return emptyVal, nil
case CommandAutofillDisable:
return emptyVal, nil
case CommandAutofillEnable:
return emptyVal, nil
case EventAutofillAddressFormFilled:
v = new(autofill.EventAddressFormFilled)
case CommandBackgroundServiceStartObserving:
return emptyVal, nil
case CommandBackgroundServiceStopObserving:
return emptyVal, nil
case CommandBackgroundServiceSetRecording:
return emptyVal, nil
case CommandBackgroundServiceClearEvents:
return emptyVal, nil
case EventBackgroundServiceRecordingStateChanged:
v = new(backgroundservice.EventRecordingStateChanged)
case EventBackgroundServiceBackgroundServiceEventReceived:
v = new(backgroundservice.EventBackgroundServiceEventReceived)
case CommandBrowserSetPermission:
return emptyVal, nil
case CommandBrowserGrantPermissions:
return emptyVal, nil
case CommandBrowserResetPermissions:
return emptyVal, nil
case CommandBrowserSetDownloadBehavior:
return emptyVal, nil
case CommandBrowserCancelDownload:
return emptyVal, nil
case CommandBrowserClose:
return emptyVal, nil
case CommandBrowserCrash:
return emptyVal, nil
case CommandBrowserCrashGpuProcess:
return emptyVal, nil
case CommandBrowserGetVersion:
v = new(browser.GetVersionReturns)
case CommandBrowserGetBrowserCommandLine:
v = new(browser.GetBrowserCommandLineReturns)
case CommandBrowserGetHistograms:
v = new(browser.GetHistogramsReturns)
case CommandBrowserGetHistogram:
v = new(browser.GetHistogramReturns)
case CommandBrowserGetWindowBounds:
v = new(browser.GetWindowBoundsReturns)
case CommandBrowserGetWindowForTarget:
v = new(browser.GetWindowForTargetReturns)
case CommandBrowserSetWindowBounds:
return emptyVal, nil
case CommandBrowserSetDockTile:
return emptyVal, nil
case CommandBrowserExecuteBrowserCommand:
return emptyVal, nil
case CommandBrowserAddPrivacySandboxEnrollmentOverride: