webdriver 9.26.1 → 9.27.1
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.
- package/build/bidi/handler.d.ts +171 -52
- package/build/bidi/handler.d.ts.map +1 -1
- package/build/bidi/localTypes.d.ts +99 -19
- package/build/bidi/localTypes.d.ts.map +1 -1
- package/build/bidi/remoteTypes.d.ts +274 -86
- package/build/bidi/remoteTypes.d.ts.map +1 -1
- package/build/index.js +248 -27
- package/build/node.js +248 -27
- package/package.json +6 -6
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* from the project root. You can find the scripts that generates this file in
|
|
13
13
|
* ./scripts/bidi/**
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type Command = CommandData & Extensible & {
|
|
16
16
|
id: JsUint;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
export type Extensible = Record<string, unknown>;
|
|
19
19
|
export type CommandData = BrowserCommand | BrowsingContextCommand | EmulationCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand | StorageCommand | WebExtensionCommand;
|
|
20
20
|
export interface EmptyParams {
|
|
@@ -43,12 +43,15 @@ export interface SessionDirectProxyConfiguration extends Extensible {
|
|
|
43
43
|
}
|
|
44
44
|
export interface SessionManualProxyConfiguration extends SessionSocksProxyConfiguration, Extensible {
|
|
45
45
|
proxyType: 'manual';
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated no longer supported by browsers, will be removed in v10. See https://github.com/w3c/webdriver-bidi/commit/c580471251eaefe812526b0c894faf9dc201716d
|
|
48
|
+
*/
|
|
46
49
|
ftpProxy?: string;
|
|
47
50
|
httpProxy?: string;
|
|
48
51
|
sslProxy?: string;
|
|
49
52
|
noProxy?: string[];
|
|
50
53
|
}
|
|
51
|
-
export interface SessionSocksProxyConfiguration
|
|
54
|
+
export interface SessionSocksProxyConfiguration {
|
|
52
55
|
socksProxy: string;
|
|
53
56
|
socksVersion: number;
|
|
54
57
|
}
|
|
@@ -69,7 +72,12 @@ export interface SessionUserPromptHandler {
|
|
|
69
72
|
}
|
|
70
73
|
export type SessionUserPromptHandlerType = 'accept' | 'dismiss' | 'ignore';
|
|
71
74
|
export type SessionSubscription = string;
|
|
72
|
-
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated Use SessionSubscribeParameters instead, will be removed in v10.
|
|
77
|
+
*/
|
|
78
|
+
export interface SessionSubscriptionRequest extends SessionSubscribeParameters {
|
|
79
|
+
}
|
|
80
|
+
export interface SessionSubscribeParameters {
|
|
73
81
|
events: string[];
|
|
74
82
|
contexts?: BrowsingContextBrowsingContext[];
|
|
75
83
|
userContexts?: BrowserUserContext[];
|
|
@@ -79,33 +87,36 @@ export interface SessionUnsubscribeByIdRequest {
|
|
|
79
87
|
}
|
|
80
88
|
export interface SessionUnsubscribeByAttributesRequest {
|
|
81
89
|
events: string[];
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated should no longer be used, will be removed in v10, see https://github.com/w3c/webdriver-bidi/issues/829 & https://github.com/w3c/webdriver-bidi/pull/998
|
|
92
|
+
*/
|
|
82
93
|
contexts?: BrowsingContextBrowsingContext[];
|
|
83
94
|
}
|
|
84
|
-
export interface SessionStatus
|
|
95
|
+
export interface SessionStatus {
|
|
85
96
|
method: 'session.status';
|
|
86
97
|
params: EmptyParams;
|
|
87
98
|
}
|
|
88
|
-
export interface SessionNew
|
|
99
|
+
export interface SessionNew {
|
|
89
100
|
method: 'session.new';
|
|
90
101
|
params: SessionNewParameters;
|
|
91
102
|
}
|
|
92
103
|
export interface SessionNewParameters {
|
|
93
104
|
capabilities: SessionCapabilitiesRequest;
|
|
94
105
|
}
|
|
95
|
-
export interface SessionEnd
|
|
106
|
+
export interface SessionEnd {
|
|
96
107
|
method: 'session.end';
|
|
97
108
|
params: EmptyParams;
|
|
98
109
|
}
|
|
99
|
-
export interface SessionSubscribe
|
|
110
|
+
export interface SessionSubscribe {
|
|
100
111
|
method: 'session.subscribe';
|
|
101
|
-
params: SessionSubscriptionRequest;
|
|
112
|
+
params: SessionSubscribeParameters | SessionSubscriptionRequest;
|
|
102
113
|
}
|
|
103
|
-
export interface SessionUnsubscribe
|
|
114
|
+
export interface SessionUnsubscribe {
|
|
104
115
|
method: 'session.unsubscribe';
|
|
105
116
|
params: SessionUnsubscribeParameters;
|
|
106
117
|
}
|
|
107
118
|
export type SessionUnsubscribeParameters = SessionUnsubscribeByAttributesRequest | SessionUnsubscribeByIdRequest;
|
|
108
|
-
export type BrowserCommand = BrowserClose | BrowserCreateUserContext | BrowserGetClientWindows | BrowserGetUserContexts | BrowserRemoveUserContext | BrowserSetClientWindowState;
|
|
119
|
+
export type BrowserCommand = BrowserClose | BrowserCreateUserContext | BrowserGetClientWindows | BrowserGetUserContexts | BrowserRemoveUserContext | BrowserSetClientWindowState | BrowserSetDownloadBehavior;
|
|
109
120
|
export type BrowserClientWindow = string;
|
|
110
121
|
export interface BrowserClientWindowInfo {
|
|
111
122
|
active: boolean;
|
|
@@ -120,39 +131,41 @@ export type BrowserUserContext = string;
|
|
|
120
131
|
export interface BrowserUserContextInfo {
|
|
121
132
|
userContext: BrowserUserContext;
|
|
122
133
|
}
|
|
123
|
-
export interface BrowserClose
|
|
134
|
+
export interface BrowserClose {
|
|
124
135
|
method: 'browser.close';
|
|
125
136
|
params: EmptyParams;
|
|
126
137
|
}
|
|
127
|
-
export interface BrowserCreateUserContext
|
|
138
|
+
export interface BrowserCreateUserContext {
|
|
128
139
|
method: 'browser.createUserContext';
|
|
129
140
|
params: BrowserCreateUserContextParameters;
|
|
130
141
|
}
|
|
131
142
|
export interface BrowserCreateUserContextParameters {
|
|
132
143
|
acceptInsecureCerts?: boolean;
|
|
144
|
+
proxy?: SessionProxyConfiguration;
|
|
145
|
+
unhandledPromptBehavior?: SessionUserPromptHandler;
|
|
133
146
|
}
|
|
134
|
-
export interface BrowserGetClientWindows
|
|
147
|
+
export interface BrowserGetClientWindows {
|
|
135
148
|
method: 'browser.getClientWindows';
|
|
136
149
|
params: EmptyParams;
|
|
137
150
|
}
|
|
138
|
-
export interface BrowserGetUserContexts
|
|
151
|
+
export interface BrowserGetUserContexts {
|
|
139
152
|
method: 'browser.getUserContexts';
|
|
140
153
|
params: EmptyParams;
|
|
141
154
|
}
|
|
142
|
-
export interface BrowserRemoveUserContext
|
|
155
|
+
export interface BrowserRemoveUserContext {
|
|
143
156
|
method: 'browser.removeUserContext';
|
|
144
157
|
params: BrowserRemoveUserContextParameters;
|
|
145
158
|
}
|
|
146
159
|
export interface BrowserRemoveUserContextParameters {
|
|
147
160
|
userContext: BrowserUserContext;
|
|
148
161
|
}
|
|
149
|
-
export interface BrowserSetClientWindowState
|
|
162
|
+
export interface BrowserSetClientWindowState {
|
|
150
163
|
method: 'browser.setClientWindowState';
|
|
151
164
|
params: BrowserSetClientWindowStateParameters;
|
|
152
165
|
}
|
|
153
|
-
export
|
|
166
|
+
export type BrowserSetClientWindowStateParameters = (BrowserClientWindowNamedState | BrowserClientWindowRectState) & {
|
|
154
167
|
clientWindow: BrowserClientWindow;
|
|
155
|
-
}
|
|
168
|
+
};
|
|
156
169
|
export interface BrowserClientWindowNamedState {
|
|
157
170
|
state: 'fullscreen' | 'maximized' | 'minimized';
|
|
158
171
|
}
|
|
@@ -163,7 +176,23 @@ export interface BrowserClientWindowRectState {
|
|
|
163
176
|
x?: JsInt;
|
|
164
177
|
y?: JsInt;
|
|
165
178
|
}
|
|
166
|
-
export
|
|
179
|
+
export interface BrowserSetDownloadBehavior {
|
|
180
|
+
method: 'browser.setDownloadBehavior';
|
|
181
|
+
params: BrowserSetDownloadBehaviorParameters;
|
|
182
|
+
}
|
|
183
|
+
export interface BrowserSetDownloadBehaviorParameters {
|
|
184
|
+
downloadBehavior: BrowserDownloadBehavior | null;
|
|
185
|
+
userContexts?: BrowserUserContext[];
|
|
186
|
+
}
|
|
187
|
+
export type BrowserDownloadBehavior = (BrowserDownloadBehaviorAllowed | BrowserDownloadBehaviorDenied);
|
|
188
|
+
export interface BrowserDownloadBehaviorAllowed {
|
|
189
|
+
type: 'allowed';
|
|
190
|
+
destinationFolder: string;
|
|
191
|
+
}
|
|
192
|
+
export interface BrowserDownloadBehaviorDenied {
|
|
193
|
+
type: 'denied';
|
|
194
|
+
}
|
|
195
|
+
export type BrowsingContextCommand = BrowsingContextActivate | BrowsingContextCaptureScreenshot | BrowsingContextClose | BrowsingContextCreate | BrowsingContextGetTree | BrowsingContextHandleUserPrompt | BrowsingContextLocateNodes | BrowsingContextNavigate | BrowsingContextPrint | BrowsingContextReload | BrowsingContextSetBypassCsp | BrowsingContextSetViewport | BrowsingContextTraverseHistory;
|
|
167
196
|
export type BrowsingContextBrowsingContext = string;
|
|
168
197
|
export type BrowsingContextLocator = BrowsingContextAccessibilityLocator | BrowsingContextCssLocator | BrowsingContextContextLocator | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;
|
|
169
198
|
export interface BrowsingContextAccessibilityLocator {
|
|
@@ -197,14 +226,14 @@ export interface BrowsingContextXPathLocator {
|
|
|
197
226
|
export type BrowsingContextNavigation = string;
|
|
198
227
|
export type BrowsingContextReadinessState = 'none' | 'interactive' | 'complete';
|
|
199
228
|
export type BrowsingContextUserPromptType = 'alert' | 'beforeunload' | 'confirm' | 'prompt';
|
|
200
|
-
export interface BrowsingContextActivate
|
|
229
|
+
export interface BrowsingContextActivate {
|
|
201
230
|
method: 'browsingContext.activate';
|
|
202
231
|
params: BrowsingContextActivateParameters;
|
|
203
232
|
}
|
|
204
233
|
export interface BrowsingContextActivateParameters {
|
|
205
234
|
context: BrowsingContextBrowsingContext;
|
|
206
235
|
}
|
|
207
|
-
export interface BrowsingContextCaptureScreenshot
|
|
236
|
+
export interface BrowsingContextCaptureScreenshot {
|
|
208
237
|
method: 'browsingContext.captureScreenshot';
|
|
209
238
|
params: BrowsingContextCaptureScreenshotParameters;
|
|
210
239
|
}
|
|
@@ -233,7 +262,7 @@ export interface BrowsingContextBoxClipRectangle {
|
|
|
233
262
|
width: number;
|
|
234
263
|
height: number;
|
|
235
264
|
}
|
|
236
|
-
export interface BrowsingContextClose
|
|
265
|
+
export interface BrowsingContextClose {
|
|
237
266
|
method: 'browsingContext.close';
|
|
238
267
|
params: BrowsingContextCloseParameters;
|
|
239
268
|
}
|
|
@@ -241,7 +270,7 @@ export interface BrowsingContextCloseParameters {
|
|
|
241
270
|
context: BrowsingContextBrowsingContext;
|
|
242
271
|
promptUnload?: boolean;
|
|
243
272
|
}
|
|
244
|
-
export interface BrowsingContextCreate
|
|
273
|
+
export interface BrowsingContextCreate {
|
|
245
274
|
method: 'browsingContext.create';
|
|
246
275
|
params: BrowsingContextCreateParameters;
|
|
247
276
|
}
|
|
@@ -252,7 +281,7 @@ export interface BrowsingContextCreateParameters {
|
|
|
252
281
|
background?: boolean;
|
|
253
282
|
userContext?: BrowserUserContext;
|
|
254
283
|
}
|
|
255
|
-
export interface BrowsingContextGetTree
|
|
284
|
+
export interface BrowsingContextGetTree {
|
|
256
285
|
method: 'browsingContext.getTree';
|
|
257
286
|
params: BrowsingContextGetTreeParameters;
|
|
258
287
|
}
|
|
@@ -260,7 +289,7 @@ export interface BrowsingContextGetTreeParameters {
|
|
|
260
289
|
maxDepth?: JsUint;
|
|
261
290
|
root?: BrowsingContextBrowsingContext;
|
|
262
291
|
}
|
|
263
|
-
export interface BrowsingContextHandleUserPrompt
|
|
292
|
+
export interface BrowsingContextHandleUserPrompt {
|
|
264
293
|
method: 'browsingContext.handleUserPrompt';
|
|
265
294
|
params: BrowsingContextHandleUserPromptParameters;
|
|
266
295
|
}
|
|
@@ -269,7 +298,7 @@ export interface BrowsingContextHandleUserPromptParameters {
|
|
|
269
298
|
accept?: boolean;
|
|
270
299
|
userText?: string;
|
|
271
300
|
}
|
|
272
|
-
export interface BrowsingContextLocateNodes
|
|
301
|
+
export interface BrowsingContextLocateNodes {
|
|
273
302
|
method: 'browsingContext.locateNodes';
|
|
274
303
|
params: BrowsingContextLocateNodesParameters;
|
|
275
304
|
}
|
|
@@ -280,7 +309,7 @@ export interface BrowsingContextLocateNodesParameters {
|
|
|
280
309
|
serializationOptions?: ScriptSerializationOptions;
|
|
281
310
|
startNodes?: ScriptSharedReference[];
|
|
282
311
|
}
|
|
283
|
-
export interface BrowsingContextNavigate
|
|
312
|
+
export interface BrowsingContextNavigate {
|
|
284
313
|
method: 'browsingContext.navigate';
|
|
285
314
|
params: BrowsingContextNavigateParameters;
|
|
286
315
|
}
|
|
@@ -289,7 +318,7 @@ export interface BrowsingContextNavigateParameters {
|
|
|
289
318
|
url: string;
|
|
290
319
|
wait?: BrowsingContextReadinessState;
|
|
291
320
|
}
|
|
292
|
-
export interface BrowsingContextPrint
|
|
321
|
+
export interface BrowsingContextPrint {
|
|
293
322
|
method: 'browsingContext.print';
|
|
294
323
|
params: BrowsingContextPrintParameters;
|
|
295
324
|
}
|
|
@@ -340,7 +369,7 @@ export interface BrowsingContextPrintPageParameters {
|
|
|
340
369
|
*/
|
|
341
370
|
width?: number;
|
|
342
371
|
}
|
|
343
|
-
export interface BrowsingContextReload
|
|
372
|
+
export interface BrowsingContextReload {
|
|
344
373
|
method: 'browsingContext.reload';
|
|
345
374
|
params: BrowsingContextReloadParameters;
|
|
346
375
|
}
|
|
@@ -349,7 +378,16 @@ export interface BrowsingContextReloadParameters {
|
|
|
349
378
|
ignoreCache?: boolean;
|
|
350
379
|
wait?: BrowsingContextReadinessState;
|
|
351
380
|
}
|
|
352
|
-
export interface
|
|
381
|
+
export interface BrowsingContextSetBypassCsp {
|
|
382
|
+
method: 'browsingContext.setBypassCSP';
|
|
383
|
+
params: BrowsingContextSetBypassCspParameters;
|
|
384
|
+
}
|
|
385
|
+
export interface BrowsingContextSetBypassCspParameters {
|
|
386
|
+
bypass: true | null;
|
|
387
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
388
|
+
userContexts?: BrowserUserContext[];
|
|
389
|
+
}
|
|
390
|
+
export interface BrowsingContextSetViewport {
|
|
353
391
|
method: 'browsingContext.setViewport';
|
|
354
392
|
params: BrowsingContextSetViewportParameters;
|
|
355
393
|
}
|
|
@@ -363,7 +401,7 @@ export interface BrowsingContextViewport {
|
|
|
363
401
|
width: JsUint;
|
|
364
402
|
height: JsUint;
|
|
365
403
|
}
|
|
366
|
-
export interface BrowsingContextTraverseHistory
|
|
404
|
+
export interface BrowsingContextTraverseHistory {
|
|
367
405
|
method: 'browsingContext.traverseHistory';
|
|
368
406
|
params: BrowsingContextTraverseHistoryParameters;
|
|
369
407
|
}
|
|
@@ -371,21 +409,29 @@ export interface BrowsingContextTraverseHistoryParameters {
|
|
|
371
409
|
context: BrowsingContextBrowsingContext;
|
|
372
410
|
delta: JsInt;
|
|
373
411
|
}
|
|
374
|
-
export
|
|
412
|
+
export type EmulationCommand = EmulationSetForcedColorsModeThemeOverride | EmulationSetGeolocationOverride | EmulationSetLocaleOverride | EmulationSetNetworkConditions | EmulationSetScreenOrientationOverride | EmulationSetScreenSettingsOverride | EmulationSetScriptingEnabled | EmulationSetScrollbarTypeOverride | EmulationSetTimezoneOverride | EmulationSetTouchOverride | EmulationSetUserAgentOverride;
|
|
413
|
+
export interface EmulationSetForcedColorsModeThemeOverride {
|
|
414
|
+
method: 'emulation.setForcedColorsModeThemeOverride';
|
|
415
|
+
params: EmulationSetForcedColorsModeThemeOverrideParameters;
|
|
416
|
+
}
|
|
417
|
+
export interface EmulationSetForcedColorsModeThemeOverrideParameters {
|
|
418
|
+
theme: EmulationForcedColorsModeTheme | null;
|
|
419
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
420
|
+
userContexts?: BrowserUserContext[];
|
|
375
421
|
}
|
|
376
|
-
export
|
|
422
|
+
export type EmulationForcedColorsModeTheme = 'light' | 'dark';
|
|
423
|
+
export interface EmulationSetGeolocationOverride {
|
|
377
424
|
method: 'emulation.setGeolocationOverride';
|
|
378
425
|
params: EmulationSetGeolocationOverrideParameters;
|
|
379
426
|
}
|
|
380
|
-
export type EmulationSetGeolocationOverrideParameters =
|
|
381
|
-
export interface EmulationSetGeolocationPosition {
|
|
382
|
-
type: 'position';
|
|
427
|
+
export type EmulationSetGeolocationOverrideParameters = ({
|
|
383
428
|
coordinates: EmulationGeolocationCoordinates | null;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
429
|
+
} | {
|
|
430
|
+
error: EmulationGeolocationPositionError;
|
|
431
|
+
}) & {
|
|
432
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
433
|
+
userContexts?: BrowserUserContext[];
|
|
434
|
+
};
|
|
389
435
|
export interface EmulationGeolocationCoordinates {
|
|
390
436
|
latitude: number;
|
|
391
437
|
longitude: number;
|
|
@@ -410,10 +456,105 @@ export interface EmulationGeolocationCoordinates {
|
|
|
410
456
|
*/
|
|
411
457
|
speed?: number | null;
|
|
412
458
|
}
|
|
413
|
-
export interface
|
|
459
|
+
export interface EmulationGeolocationPositionError {
|
|
414
460
|
type: 'positionUnavailable';
|
|
415
461
|
}
|
|
416
|
-
export
|
|
462
|
+
export interface EmulationSetLocaleOverride {
|
|
463
|
+
method: 'emulation.setLocaleOverride';
|
|
464
|
+
params: EmulationSetLocaleOverrideParameters;
|
|
465
|
+
}
|
|
466
|
+
export interface EmulationSetLocaleOverrideParameters {
|
|
467
|
+
locale: string | null;
|
|
468
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
469
|
+
userContexts?: BrowserUserContext[];
|
|
470
|
+
}
|
|
471
|
+
export interface EmulationSetNetworkConditions {
|
|
472
|
+
method: 'emulation.setNetworkConditions';
|
|
473
|
+
params: EmulationSetNetworkConditionsParameters;
|
|
474
|
+
}
|
|
475
|
+
export interface EmulationSetNetworkConditionsParameters {
|
|
476
|
+
networkConditions: EmulationNetworkConditions | null;
|
|
477
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
478
|
+
userContexts?: BrowserUserContext[];
|
|
479
|
+
}
|
|
480
|
+
export type EmulationNetworkConditions = EmulationNetworkConditionsOffline;
|
|
481
|
+
export interface EmulationNetworkConditionsOffline {
|
|
482
|
+
type: 'offline';
|
|
483
|
+
}
|
|
484
|
+
export interface EmulationSetScreenSettingsOverride {
|
|
485
|
+
method: 'emulation.setScreenSettingsOverride';
|
|
486
|
+
params: EmulationSetScreenSettingsOverrideParameters;
|
|
487
|
+
}
|
|
488
|
+
export interface EmulationScreenArea {
|
|
489
|
+
width: JsUint;
|
|
490
|
+
height: JsUint;
|
|
491
|
+
}
|
|
492
|
+
export interface EmulationSetScreenSettingsOverrideParameters {
|
|
493
|
+
screenArea: EmulationScreenArea | null;
|
|
494
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
495
|
+
userContexts?: BrowserUserContext[];
|
|
496
|
+
}
|
|
497
|
+
export interface EmulationSetScreenOrientationOverride {
|
|
498
|
+
method: 'emulation.setScreenOrientationOverride';
|
|
499
|
+
params: EmulationSetScreenOrientationOverrideParameters;
|
|
500
|
+
}
|
|
501
|
+
export type EmulationScreenOrientationNatural = 'portrait' | 'landscape';
|
|
502
|
+
export type EmulationScreenOrientationType = 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary';
|
|
503
|
+
export interface EmulationScreenOrientation {
|
|
504
|
+
natural: EmulationScreenOrientationNatural;
|
|
505
|
+
type: EmulationScreenOrientationType;
|
|
506
|
+
}
|
|
507
|
+
export interface EmulationSetScreenOrientationOverrideParameters {
|
|
508
|
+
screenOrientation: EmulationScreenOrientation | null;
|
|
509
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
510
|
+
userContexts?: BrowserUserContext[];
|
|
511
|
+
}
|
|
512
|
+
export interface EmulationSetUserAgentOverride {
|
|
513
|
+
method: 'emulation.setUserAgentOverride';
|
|
514
|
+
params: EmulationSetUserAgentOverrideParameters;
|
|
515
|
+
}
|
|
516
|
+
export interface EmulationSetUserAgentOverrideParameters {
|
|
517
|
+
userAgent: string | null;
|
|
518
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
519
|
+
userContexts?: BrowserUserContext[];
|
|
520
|
+
}
|
|
521
|
+
export interface EmulationSetScriptingEnabled {
|
|
522
|
+
method: 'emulation.setScriptingEnabled';
|
|
523
|
+
params: EmulationSetScriptingEnabledParameters;
|
|
524
|
+
}
|
|
525
|
+
export interface EmulationSetScriptingEnabledParameters {
|
|
526
|
+
enabled: false | null;
|
|
527
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
528
|
+
userContexts?: BrowserUserContext[];
|
|
529
|
+
}
|
|
530
|
+
export interface EmulationSetScrollbarTypeOverride {
|
|
531
|
+
method: 'emulation.setScrollbarTypeOverride';
|
|
532
|
+
params: EmulationSetScrollbarTypeOverrideParameters;
|
|
533
|
+
}
|
|
534
|
+
export interface EmulationSetScrollbarTypeOverrideParameters {
|
|
535
|
+
scrollbarType: 'classic' | 'overlay' | null;
|
|
536
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
537
|
+
userContexts?: BrowserUserContext[];
|
|
538
|
+
}
|
|
539
|
+
export interface EmulationSetTimezoneOverride {
|
|
540
|
+
method: 'emulation.setTimezoneOverride';
|
|
541
|
+
params: EmulationSetTimezoneOverrideParameters;
|
|
542
|
+
}
|
|
543
|
+
export interface EmulationSetTimezoneOverrideParameters {
|
|
544
|
+
timezone: string | null;
|
|
545
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
546
|
+
userContexts?: BrowserUserContext[];
|
|
547
|
+
}
|
|
548
|
+
export interface EmulationSetTouchOverride {
|
|
549
|
+
method: 'emulation.setTouchOverride';
|
|
550
|
+
params: EmulationSetTouchOverrideParameters;
|
|
551
|
+
}
|
|
552
|
+
export interface EmulationSetTouchOverrideParameters {
|
|
553
|
+
maxTouchPoints: JsUint | null;
|
|
554
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
555
|
+
userContexts?: BrowserUserContext[];
|
|
556
|
+
}
|
|
557
|
+
export type NetworkCommand = NetworkAddDataCollector | NetworkAddIntercept | NetworkContinueRequest | NetworkContinueResponse | NetworkContinueWithAuth | NetworkDisownData | NetworkFailRequest | NetworkGetData | NetworkProvideResponse | NetworkRemoveDataCollector | NetworkRemoveIntercept | NetworkSetCacheBehavior | NetworkSetExtraHeaders;
|
|
417
558
|
export interface NetworkAuthCredentials {
|
|
418
559
|
type: 'password';
|
|
419
560
|
username: string;
|
|
@@ -428,8 +569,10 @@ export interface NetworkBase64Value {
|
|
|
428
569
|
type: 'base64';
|
|
429
570
|
value: string;
|
|
430
571
|
}
|
|
431
|
-
export type
|
|
432
|
-
export
|
|
572
|
+
export type NetworkCollector = string;
|
|
573
|
+
export type NetworkCollectorType = 'blob';
|
|
574
|
+
export type NetworkSameSite = 'strict' | 'lax' | 'none' | 'default';
|
|
575
|
+
export interface NetworkCookie extends Extensible {
|
|
433
576
|
name: string;
|
|
434
577
|
value: NetworkBytesValue;
|
|
435
578
|
domain: string;
|
|
@@ -444,6 +587,7 @@ export interface NetworkCookieHeader {
|
|
|
444
587
|
name: string;
|
|
445
588
|
value: NetworkBytesValue;
|
|
446
589
|
}
|
|
590
|
+
export type NetworkDataType = 'request' | 'response';
|
|
447
591
|
export interface NetworkHeader {
|
|
448
592
|
name: string;
|
|
449
593
|
value: NetworkBytesValue;
|
|
@@ -474,7 +618,21 @@ export interface NetworkUrlPatternString {
|
|
|
474
618
|
type: 'string';
|
|
475
619
|
pattern: string;
|
|
476
620
|
}
|
|
477
|
-
export interface
|
|
621
|
+
export interface NetworkAddDataCollector {
|
|
622
|
+
method: 'network.addDataCollector';
|
|
623
|
+
params: NetworkAddDataCollectorParameters;
|
|
624
|
+
}
|
|
625
|
+
export interface NetworkAddDataCollectorParameters {
|
|
626
|
+
dataTypes: NetworkDataType[];
|
|
627
|
+
maxEncodedDataSize: JsUint;
|
|
628
|
+
/**
|
|
629
|
+
* @default 'blob'
|
|
630
|
+
*/
|
|
631
|
+
collectorType?: NetworkCollectorType;
|
|
632
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
633
|
+
userContexts?: BrowserUserContext[];
|
|
634
|
+
}
|
|
635
|
+
export interface NetworkAddIntercept {
|
|
478
636
|
method: 'network.addIntercept';
|
|
479
637
|
params: NetworkAddInterceptParameters;
|
|
480
638
|
}
|
|
@@ -484,7 +642,7 @@ export interface NetworkAddInterceptParameters {
|
|
|
484
642
|
urlPatterns?: NetworkUrlPattern[];
|
|
485
643
|
}
|
|
486
644
|
export type NetworkInterceptPhase = 'beforeRequestSent' | 'responseStarted' | 'authRequired';
|
|
487
|
-
export interface NetworkContinueRequest
|
|
645
|
+
export interface NetworkContinueRequest {
|
|
488
646
|
method: 'network.continueRequest';
|
|
489
647
|
params: NetworkContinueRequestParameters;
|
|
490
648
|
}
|
|
@@ -496,7 +654,7 @@ export interface NetworkContinueRequestParameters {
|
|
|
496
654
|
method?: string;
|
|
497
655
|
url?: string;
|
|
498
656
|
}
|
|
499
|
-
export interface NetworkContinueResponse
|
|
657
|
+
export interface NetworkContinueResponse {
|
|
500
658
|
method: 'network.continueResponse';
|
|
501
659
|
params: NetworkContinueResponseParameters;
|
|
502
660
|
}
|
|
@@ -508,13 +666,13 @@ export interface NetworkContinueResponseParameters {
|
|
|
508
666
|
reasonPhrase?: string;
|
|
509
667
|
statusCode?: JsUint;
|
|
510
668
|
}
|
|
511
|
-
export interface NetworkContinueWithAuth
|
|
669
|
+
export interface NetworkContinueWithAuth {
|
|
512
670
|
method: 'network.continueWithAuth';
|
|
513
671
|
params: NetworkContinueWithAuthParameters;
|
|
514
672
|
}
|
|
515
|
-
export
|
|
673
|
+
export type NetworkContinueWithAuthParameters = (NetworkContinueWithAuthCredentials | NetworkContinueWithAuthNoCredentials) & {
|
|
516
674
|
request: NetworkRequest;
|
|
517
|
-
}
|
|
675
|
+
};
|
|
518
676
|
export interface NetworkContinueWithAuthCredentials {
|
|
519
677
|
action: 'provideCredentials';
|
|
520
678
|
credentials: NetworkAuthCredentials;
|
|
@@ -522,14 +680,33 @@ export interface NetworkContinueWithAuthCredentials {
|
|
|
522
680
|
export interface NetworkContinueWithAuthNoCredentials {
|
|
523
681
|
action: 'default' | 'cancel';
|
|
524
682
|
}
|
|
525
|
-
export interface
|
|
683
|
+
export interface NetworkDisownData {
|
|
684
|
+
method: 'network.disownData';
|
|
685
|
+
params: NetworkDisownDataParameters;
|
|
686
|
+
}
|
|
687
|
+
export interface NetworkDisownDataParameters {
|
|
688
|
+
dataType: NetworkDataType;
|
|
689
|
+
collector: NetworkCollector;
|
|
690
|
+
request: NetworkRequest;
|
|
691
|
+
}
|
|
692
|
+
export interface NetworkFailRequest {
|
|
526
693
|
method: 'network.failRequest';
|
|
527
694
|
params: NetworkFailRequestParameters;
|
|
528
695
|
}
|
|
529
696
|
export interface NetworkFailRequestParameters {
|
|
530
697
|
request: NetworkRequest;
|
|
531
698
|
}
|
|
532
|
-
export interface
|
|
699
|
+
export interface NetworkGetData {
|
|
700
|
+
method: 'network.getData';
|
|
701
|
+
params: NetworkGetDataParameters;
|
|
702
|
+
}
|
|
703
|
+
export interface NetworkGetDataParameters {
|
|
704
|
+
dataType: NetworkDataType;
|
|
705
|
+
collector?: NetworkCollector;
|
|
706
|
+
disown?: boolean;
|
|
707
|
+
request: NetworkRequest;
|
|
708
|
+
}
|
|
709
|
+
export interface NetworkProvideResponse {
|
|
533
710
|
method: 'network.provideResponse';
|
|
534
711
|
params: NetworkProvideResponseParameters;
|
|
535
712
|
}
|
|
@@ -541,14 +718,21 @@ export interface NetworkProvideResponseParameters {
|
|
|
541
718
|
reasonPhrase?: string;
|
|
542
719
|
statusCode?: JsUint;
|
|
543
720
|
}
|
|
544
|
-
export interface
|
|
721
|
+
export interface NetworkRemoveDataCollector {
|
|
722
|
+
method: 'network.removeDataCollector';
|
|
723
|
+
params: NetworkRemoveDataCollectorParameters;
|
|
724
|
+
}
|
|
725
|
+
export interface NetworkRemoveDataCollectorParameters {
|
|
726
|
+
collector: NetworkCollector;
|
|
727
|
+
}
|
|
728
|
+
export interface NetworkRemoveIntercept {
|
|
545
729
|
method: 'network.removeIntercept';
|
|
546
730
|
params: NetworkRemoveInterceptParameters;
|
|
547
731
|
}
|
|
548
732
|
export interface NetworkRemoveInterceptParameters {
|
|
549
733
|
intercept: NetworkIntercept;
|
|
550
734
|
}
|
|
551
|
-
export interface NetworkSetCacheBehavior
|
|
735
|
+
export interface NetworkSetCacheBehavior {
|
|
552
736
|
method: 'network.setCacheBehavior';
|
|
553
737
|
params: NetworkSetCacheBehaviorParameters;
|
|
554
738
|
}
|
|
@@ -556,6 +740,15 @@ export interface NetworkSetCacheBehaviorParameters {
|
|
|
556
740
|
cacheBehavior: 'default' | 'bypass';
|
|
557
741
|
contexts?: BrowsingContextBrowsingContext[];
|
|
558
742
|
}
|
|
743
|
+
export interface NetworkSetExtraHeaders {
|
|
744
|
+
method: 'network.setExtraHeaders';
|
|
745
|
+
params: NetworkSetExtraHeadersParameters;
|
|
746
|
+
}
|
|
747
|
+
export interface NetworkSetExtraHeadersParameters {
|
|
748
|
+
headers: NetworkHeader[];
|
|
749
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
750
|
+
userContexts?: BrowserUserContext[];
|
|
751
|
+
}
|
|
559
752
|
export type ScriptCommand = ScriptAddPreloadScript | ScriptCallFunction | ScriptDisown | ScriptEvaluate | ScriptGetRealms | ScriptRemovePreloadScript;
|
|
560
753
|
export type ScriptChannel = string;
|
|
561
754
|
export interface ScriptChannelValue {
|
|
@@ -587,12 +780,15 @@ export interface ScriptExceptionDetails {
|
|
|
587
780
|
}
|
|
588
781
|
export type ScriptHandle = string;
|
|
589
782
|
export type ScriptInternalId = string;
|
|
590
|
-
export type ScriptLocalValue = ScriptRemoteReference | ScriptPrimitiveProtocolValue | ScriptChannelValue | ScriptArrayLocalValue | ScriptDateLocalValueMap | ScriptMapLocalValue | ScriptObjectLocalValue | ScriptRegExpLocalValueMap | ScriptSetLocalValue;
|
|
591
|
-
export type ScriptListLocalValue =
|
|
783
|
+
export type ScriptLocalValue = ScriptRemoteReference | ScriptPrimitiveProtocolValue | ScriptChannelValue | ScriptArrayLocalValue | ScriptDateLocalValueMap | ScriptDateLocalValue | ScriptMapLocalValue | ScriptObjectLocalValue | ScriptRegExpLocalValueMap | ScriptRegExpLocalValue | ScriptSetLocalValue;
|
|
784
|
+
export type ScriptListLocalValue = ScriptLocalValue[];
|
|
592
785
|
export interface ScriptArrayLocalValue {
|
|
593
786
|
type: 'array';
|
|
594
787
|
value: ScriptListLocalValue;
|
|
595
788
|
}
|
|
789
|
+
/**
|
|
790
|
+
* @deprecated in v9. Will be removed in v10 since the new cddl library will no longer generate this layer and rely on on ScriptDateLocalValue
|
|
791
|
+
*/
|
|
596
792
|
export interface ScriptDateLocalValueMap extends ScriptDateLocalValue {
|
|
597
793
|
}
|
|
598
794
|
export interface ScriptDateLocalValue {
|
|
@@ -612,6 +808,9 @@ export interface ScriptRegExpValue {
|
|
|
612
808
|
pattern: string;
|
|
613
809
|
flags?: string;
|
|
614
810
|
}
|
|
811
|
+
/**
|
|
812
|
+
* @deprecated in v9. Will be removed in v10 since the new cddl library will no longer generate this layer and rely on on ScriptDateLocalValue
|
|
813
|
+
*/
|
|
615
814
|
export interface ScriptRegExpLocalValueMap extends ScriptRegExpLocalValue {
|
|
616
815
|
}
|
|
617
816
|
export interface ScriptRegExpLocalValue {
|
|
@@ -654,12 +853,12 @@ export interface ScriptSharedReference extends Extensible {
|
|
|
654
853
|
sharedId: ScriptSharedId;
|
|
655
854
|
handle?: ScriptHandle;
|
|
656
855
|
}
|
|
657
|
-
export interface ScriptRemoteObjectReference {
|
|
856
|
+
export interface ScriptRemoteObjectReference extends Extensible {
|
|
658
857
|
handle: ScriptHandle;
|
|
659
858
|
sharedId?: ScriptSharedId;
|
|
660
859
|
}
|
|
661
860
|
export type ScriptRemoteValue = ScriptPrimitiveProtocolValue | ScriptSymbolRemoteValue | ScriptArrayRemoteValue | ScriptObjectRemoteValue | ScriptFunctionRemoteValue | ScriptRegExpRemoteValue | ScriptDateRemoteValue | ScriptMapRemoteValue | ScriptSetRemoteValue | ScriptWeakMapRemoteValue | ScriptWeakSetRemoteValue | ScriptGeneratorRemoteValue | ScriptErrorRemoteValue | ScriptProxyRemoteValue | ScriptPromiseRemoteValue | ScriptTypedArrayRemoteValue | ScriptArrayBufferRemoteValue | ScriptNodeListRemoteValue | ScriptHtmlCollectionRemoteValue | ScriptNodeRemoteValue | ScriptWindowProxyRemoteValue;
|
|
662
|
-
export type ScriptListRemoteValue =
|
|
861
|
+
export type ScriptListRemoteValue = ScriptRemoteValue[];
|
|
663
862
|
export type ScriptMappingRemoteValue = (ScriptRemoteValue | ScriptRemoteValue)[];
|
|
664
863
|
export interface ScriptSymbolRemoteValue {
|
|
665
864
|
type: 'symbol';
|
|
@@ -812,7 +1011,7 @@ export interface ScriptContextTarget {
|
|
|
812
1011
|
sandbox?: string;
|
|
813
1012
|
}
|
|
814
1013
|
export type ScriptTarget = ScriptContextTarget | ScriptRealmTarget;
|
|
815
|
-
export interface ScriptAddPreloadScript
|
|
1014
|
+
export interface ScriptAddPreloadScript {
|
|
816
1015
|
method: 'script.addPreloadScript';
|
|
817
1016
|
params: ScriptAddPreloadScriptParameters;
|
|
818
1017
|
}
|
|
@@ -823,7 +1022,7 @@ export interface ScriptAddPreloadScriptParameters {
|
|
|
823
1022
|
userContexts?: BrowserUserContext[];
|
|
824
1023
|
sandbox?: string;
|
|
825
1024
|
}
|
|
826
|
-
export interface ScriptDisown
|
|
1025
|
+
export interface ScriptDisown {
|
|
827
1026
|
method: 'script.disown';
|
|
828
1027
|
params: ScriptDisownParameters;
|
|
829
1028
|
}
|
|
@@ -831,7 +1030,7 @@ export interface ScriptDisownParameters {
|
|
|
831
1030
|
handles: ScriptHandle[];
|
|
832
1031
|
target: ScriptTarget;
|
|
833
1032
|
}
|
|
834
|
-
export interface ScriptCallFunction
|
|
1033
|
+
export interface ScriptCallFunction {
|
|
835
1034
|
method: 'script.callFunction';
|
|
836
1035
|
params: ScriptCallFunctionParameters;
|
|
837
1036
|
}
|
|
@@ -845,7 +1044,7 @@ export interface ScriptCallFunctionParameters {
|
|
|
845
1044
|
this?: ScriptLocalValue;
|
|
846
1045
|
userActivation?: boolean;
|
|
847
1046
|
}
|
|
848
|
-
export interface ScriptEvaluate
|
|
1047
|
+
export interface ScriptEvaluate {
|
|
849
1048
|
method: 'script.evaluate';
|
|
850
1049
|
params: ScriptEvaluateParameters;
|
|
851
1050
|
}
|
|
@@ -857,7 +1056,7 @@ export interface ScriptEvaluateParameters {
|
|
|
857
1056
|
serializationOptions?: ScriptSerializationOptions;
|
|
858
1057
|
userActivation?: boolean;
|
|
859
1058
|
}
|
|
860
|
-
export interface ScriptGetRealms
|
|
1059
|
+
export interface ScriptGetRealms {
|
|
861
1060
|
method: 'script.getRealms';
|
|
862
1061
|
params: ScriptGetRealmsParameters;
|
|
863
1062
|
}
|
|
@@ -865,7 +1064,7 @@ export interface ScriptGetRealmsParameters {
|
|
|
865
1064
|
context?: BrowsingContextBrowsingContext;
|
|
866
1065
|
type?: ScriptRealmType;
|
|
867
1066
|
}
|
|
868
|
-
export interface ScriptRemovePreloadScript
|
|
1067
|
+
export interface ScriptRemovePreloadScript {
|
|
869
1068
|
method: 'script.removePreloadScript';
|
|
870
1069
|
params: ScriptRemovePreloadScriptParameters;
|
|
871
1070
|
}
|
|
@@ -873,11 +1072,11 @@ export interface ScriptRemovePreloadScriptParameters {
|
|
|
873
1072
|
script: ScriptPreloadScript;
|
|
874
1073
|
}
|
|
875
1074
|
export type StorageCommand = StorageDeleteCookies | StorageGetCookies | StorageSetCookie;
|
|
876
|
-
export interface StoragePartitionKey {
|
|
1075
|
+
export interface StoragePartitionKey extends Extensible {
|
|
877
1076
|
userContext?: string;
|
|
878
1077
|
sourceOrigin?: string;
|
|
879
1078
|
}
|
|
880
|
-
export interface StorageGetCookies
|
|
1079
|
+
export interface StorageGetCookies {
|
|
881
1080
|
method: 'storage.getCookies';
|
|
882
1081
|
params: StorageGetCookiesParameters;
|
|
883
1082
|
}
|
|
@@ -906,7 +1105,7 @@ export interface StorageGetCookiesParameters {
|
|
|
906
1105
|
filter?: StorageCookieFilter;
|
|
907
1106
|
partition?: StoragePartitionDescriptor;
|
|
908
1107
|
}
|
|
909
|
-
export interface StorageSetCookie
|
|
1108
|
+
export interface StorageSetCookie {
|
|
910
1109
|
method: 'storage.setCookie';
|
|
911
1110
|
params: StorageSetCookieParameters;
|
|
912
1111
|
}
|
|
@@ -924,7 +1123,7 @@ export interface StorageSetCookieParameters {
|
|
|
924
1123
|
cookie: StoragePartialCookie;
|
|
925
1124
|
partition?: StoragePartitionDescriptor;
|
|
926
1125
|
}
|
|
927
|
-
export interface StorageDeleteCookies
|
|
1126
|
+
export interface StorageDeleteCookies {
|
|
928
1127
|
method: 'storage.deleteCookies';
|
|
929
1128
|
params: StorageDeleteCookiesParameters;
|
|
930
1129
|
}
|
|
@@ -937,7 +1136,7 @@ export interface InputElementOrigin {
|
|
|
937
1136
|
type: 'element';
|
|
938
1137
|
element: ScriptSharedReference;
|
|
939
1138
|
}
|
|
940
|
-
export interface InputPerformActions
|
|
1139
|
+
export interface InputPerformActions {
|
|
941
1140
|
method: 'input.performActions';
|
|
942
1141
|
params: InputPerformActionsParameters;
|
|
943
1142
|
}
|
|
@@ -1018,13 +1217,7 @@ export interface InputWheelScrollAction {
|
|
|
1018
1217
|
origin?: InputOrigin;
|
|
1019
1218
|
}
|
|
1020
1219
|
export interface InputPointerCommonProperties {
|
|
1021
|
-
/**
|
|
1022
|
-
* @default 1
|
|
1023
|
-
*/
|
|
1024
1220
|
width?: JsUint;
|
|
1025
|
-
/**
|
|
1026
|
-
* @default 1
|
|
1027
|
-
*/
|
|
1028
1221
|
height?: JsUint;
|
|
1029
1222
|
pressure?: number;
|
|
1030
1223
|
tangentialPressure?: number;
|
|
@@ -1039,14 +1232,14 @@ export interface InputPointerCommonProperties {
|
|
|
1039
1232
|
azimuthAngle?: number;
|
|
1040
1233
|
}
|
|
1041
1234
|
export type InputOrigin = 'viewport' | 'pointer' | InputElementOrigin;
|
|
1042
|
-
export interface InputReleaseActions
|
|
1235
|
+
export interface InputReleaseActions {
|
|
1043
1236
|
method: 'input.releaseActions';
|
|
1044
1237
|
params: InputReleaseActionsParameters;
|
|
1045
1238
|
}
|
|
1046
1239
|
export interface InputReleaseActionsParameters {
|
|
1047
1240
|
context: BrowsingContextBrowsingContext;
|
|
1048
1241
|
}
|
|
1049
|
-
export interface InputSetFiles
|
|
1242
|
+
export interface InputSetFiles {
|
|
1050
1243
|
method: 'input.setFiles';
|
|
1051
1244
|
params: InputSetFilesParameters;
|
|
1052
1245
|
}
|
|
@@ -1055,14 +1248,9 @@ export interface InputSetFilesParameters {
|
|
|
1055
1248
|
element: ScriptSharedReference;
|
|
1056
1249
|
files: string[];
|
|
1057
1250
|
}
|
|
1058
|
-
export interface InputFileDialogInfo {
|
|
1059
|
-
context: BrowsingContextBrowsingContext;
|
|
1060
|
-
element?: ScriptSharedReference;
|
|
1061
|
-
multiple: boolean;
|
|
1062
|
-
}
|
|
1063
1251
|
export type WebExtensionCommand = WebExtensionInstall | WebExtensionUninstall;
|
|
1064
1252
|
export type WebExtensionExtension = string;
|
|
1065
|
-
export interface WebExtensionInstall
|
|
1253
|
+
export interface WebExtensionInstall {
|
|
1066
1254
|
method: 'webExtension.install';
|
|
1067
1255
|
params: WebExtensionInstallParameters;
|
|
1068
1256
|
}
|
|
@@ -1082,7 +1270,7 @@ export interface WebExtensionExtensionBase64Encoded {
|
|
|
1082
1270
|
type: 'base64';
|
|
1083
1271
|
value: string;
|
|
1084
1272
|
}
|
|
1085
|
-
export interface WebExtensionUninstall
|
|
1273
|
+
export interface WebExtensionUninstall {
|
|
1086
1274
|
method: 'webExtension.uninstall';
|
|
1087
1275
|
params: WebExtensionUninstallParameters;
|
|
1088
1276
|
}
|