webdriver 9.27.0 → 9.27.2
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 +157 -96
- package/build/bidi/localTypes.d.ts.map +1 -1
- package/build/bidi/remoteTypes.d.ts +290 -126
- 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,13 +12,12 @@
|
|
|
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
|
-
}
|
|
18
|
-
export type Extensible = Record<string, unknown>;
|
|
17
|
+
};
|
|
19
18
|
export type CommandData = BrowserCommand | BrowsingContextCommand | EmulationCommand | InputCommand | NetworkCommand | ScriptCommand | SessionCommand | StorageCommand | WebExtensionCommand;
|
|
20
|
-
export
|
|
21
|
-
|
|
19
|
+
export type EmptyParams = Extensible;
|
|
20
|
+
export type Extensible = Record<string, unknown>;
|
|
22
21
|
export type JsInt = number;
|
|
23
22
|
export type JsUint = number;
|
|
24
23
|
export type SessionCommand = SessionEnd | SessionNew | SessionStatus | SessionSubscribe | SessionUnsubscribe;
|
|
@@ -26,39 +25,38 @@ export interface SessionCapabilitiesRequest {
|
|
|
26
25
|
alwaysMatch?: SessionCapabilityRequest;
|
|
27
26
|
firstMatch?: SessionCapabilityRequest[];
|
|
28
27
|
}
|
|
29
|
-
export
|
|
28
|
+
export type SessionCapabilityRequest = Extensible & {
|
|
30
29
|
acceptInsecureCerts?: boolean;
|
|
31
30
|
browserName?: string;
|
|
32
31
|
browserVersion?: string;
|
|
33
32
|
platformName?: string;
|
|
34
33
|
proxy?: SessionProxyConfiguration;
|
|
35
34
|
unhandledPromptBehavior?: SessionUserPromptHandler;
|
|
36
|
-
}
|
|
35
|
+
};
|
|
37
36
|
export type SessionProxyConfiguration = SessionAutodetectProxyConfiguration | SessionDirectProxyConfiguration | SessionManualProxyConfiguration | SessionPacProxyConfiguration | SessionSystemProxyConfiguration;
|
|
38
|
-
export
|
|
37
|
+
export type SessionAutodetectProxyConfiguration = Extensible & {
|
|
39
38
|
proxyType: 'autodetect';
|
|
40
|
-
}
|
|
41
|
-
export
|
|
39
|
+
};
|
|
40
|
+
export type SessionDirectProxyConfiguration = Extensible & {
|
|
42
41
|
proxyType: 'direct';
|
|
43
|
-
}
|
|
44
|
-
export
|
|
42
|
+
};
|
|
43
|
+
export type SessionManualProxyConfiguration = SessionSocksProxyConfiguration & Extensible & {
|
|
45
44
|
proxyType: 'manual';
|
|
46
|
-
ftpProxy?: string;
|
|
47
45
|
httpProxy?: string;
|
|
48
46
|
sslProxy?: string;
|
|
49
47
|
noProxy?: string[];
|
|
50
|
-
}
|
|
51
|
-
export interface SessionSocksProxyConfiguration
|
|
48
|
+
};
|
|
49
|
+
export interface SessionSocksProxyConfiguration {
|
|
52
50
|
socksProxy: string;
|
|
53
51
|
socksVersion: number;
|
|
54
52
|
}
|
|
55
|
-
export
|
|
53
|
+
export type SessionPacProxyConfiguration = Extensible & {
|
|
56
54
|
proxyType: 'pac';
|
|
57
55
|
proxyAutoconfigUrl: string;
|
|
58
|
-
}
|
|
59
|
-
export
|
|
56
|
+
};
|
|
57
|
+
export type SessionSystemProxyConfiguration = Extensible & {
|
|
60
58
|
proxyType: 'system';
|
|
61
|
-
}
|
|
59
|
+
};
|
|
62
60
|
export interface SessionUserPromptHandler {
|
|
63
61
|
alert?: SessionUserPromptHandlerType;
|
|
64
62
|
beforeUnload?: SessionUserPromptHandlerType;
|
|
@@ -69,7 +67,7 @@ export interface SessionUserPromptHandler {
|
|
|
69
67
|
}
|
|
70
68
|
export type SessionUserPromptHandlerType = 'accept' | 'dismiss' | 'ignore';
|
|
71
69
|
export type SessionSubscription = string;
|
|
72
|
-
export interface
|
|
70
|
+
export interface SessionSubscribeParameters {
|
|
73
71
|
events: string[];
|
|
74
72
|
contexts?: BrowsingContextBrowsingContext[];
|
|
75
73
|
userContexts?: BrowserUserContext[];
|
|
@@ -79,33 +77,32 @@ export interface SessionUnsubscribeByIdRequest {
|
|
|
79
77
|
}
|
|
80
78
|
export interface SessionUnsubscribeByAttributesRequest {
|
|
81
79
|
events: string[];
|
|
82
|
-
contexts?: BrowsingContextBrowsingContext[];
|
|
83
80
|
}
|
|
84
|
-
export interface SessionStatus
|
|
81
|
+
export interface SessionStatus {
|
|
85
82
|
method: 'session.status';
|
|
86
83
|
params: EmptyParams;
|
|
87
84
|
}
|
|
88
|
-
export interface SessionNew
|
|
85
|
+
export interface SessionNew {
|
|
89
86
|
method: 'session.new';
|
|
90
87
|
params: SessionNewParameters;
|
|
91
88
|
}
|
|
92
89
|
export interface SessionNewParameters {
|
|
93
90
|
capabilities: SessionCapabilitiesRequest;
|
|
94
91
|
}
|
|
95
|
-
export interface SessionEnd
|
|
92
|
+
export interface SessionEnd {
|
|
96
93
|
method: 'session.end';
|
|
97
94
|
params: EmptyParams;
|
|
98
95
|
}
|
|
99
|
-
export interface SessionSubscribe
|
|
96
|
+
export interface SessionSubscribe {
|
|
100
97
|
method: 'session.subscribe';
|
|
101
|
-
params:
|
|
98
|
+
params: SessionSubscribeParameters;
|
|
102
99
|
}
|
|
103
|
-
export interface SessionUnsubscribe
|
|
100
|
+
export interface SessionUnsubscribe {
|
|
104
101
|
method: 'session.unsubscribe';
|
|
105
102
|
params: SessionUnsubscribeParameters;
|
|
106
103
|
}
|
|
107
104
|
export type SessionUnsubscribeParameters = SessionUnsubscribeByAttributesRequest | SessionUnsubscribeByIdRequest;
|
|
108
|
-
export type BrowserCommand = BrowserClose | BrowserCreateUserContext | BrowserGetClientWindows | BrowserGetUserContexts | BrowserRemoveUserContext | BrowserSetClientWindowState;
|
|
105
|
+
export type BrowserCommand = BrowserClose | BrowserCreateUserContext | BrowserGetClientWindows | BrowserGetUserContexts | BrowserRemoveUserContext | BrowserSetClientWindowState | BrowserSetDownloadBehavior;
|
|
109
106
|
export type BrowserClientWindow = string;
|
|
110
107
|
export interface BrowserClientWindowInfo {
|
|
111
108
|
active: boolean;
|
|
@@ -120,39 +117,41 @@ export type BrowserUserContext = string;
|
|
|
120
117
|
export interface BrowserUserContextInfo {
|
|
121
118
|
userContext: BrowserUserContext;
|
|
122
119
|
}
|
|
123
|
-
export interface BrowserClose
|
|
120
|
+
export interface BrowserClose {
|
|
124
121
|
method: 'browser.close';
|
|
125
122
|
params: EmptyParams;
|
|
126
123
|
}
|
|
127
|
-
export interface BrowserCreateUserContext
|
|
124
|
+
export interface BrowserCreateUserContext {
|
|
128
125
|
method: 'browser.createUserContext';
|
|
129
126
|
params: BrowserCreateUserContextParameters;
|
|
130
127
|
}
|
|
131
128
|
export interface BrowserCreateUserContextParameters {
|
|
132
129
|
acceptInsecureCerts?: boolean;
|
|
130
|
+
proxy?: SessionProxyConfiguration;
|
|
131
|
+
unhandledPromptBehavior?: SessionUserPromptHandler;
|
|
133
132
|
}
|
|
134
|
-
export interface BrowserGetClientWindows
|
|
133
|
+
export interface BrowserGetClientWindows {
|
|
135
134
|
method: 'browser.getClientWindows';
|
|
136
135
|
params: EmptyParams;
|
|
137
136
|
}
|
|
138
|
-
export interface BrowserGetUserContexts
|
|
137
|
+
export interface BrowserGetUserContexts {
|
|
139
138
|
method: 'browser.getUserContexts';
|
|
140
139
|
params: EmptyParams;
|
|
141
140
|
}
|
|
142
|
-
export interface BrowserRemoveUserContext
|
|
141
|
+
export interface BrowserRemoveUserContext {
|
|
143
142
|
method: 'browser.removeUserContext';
|
|
144
143
|
params: BrowserRemoveUserContextParameters;
|
|
145
144
|
}
|
|
146
145
|
export interface BrowserRemoveUserContextParameters {
|
|
147
146
|
userContext: BrowserUserContext;
|
|
148
147
|
}
|
|
149
|
-
export interface BrowserSetClientWindowState
|
|
148
|
+
export interface BrowserSetClientWindowState {
|
|
150
149
|
method: 'browser.setClientWindowState';
|
|
151
150
|
params: BrowserSetClientWindowStateParameters;
|
|
152
151
|
}
|
|
153
|
-
export
|
|
152
|
+
export type BrowserSetClientWindowStateParameters = (BrowserClientWindowNamedState | BrowserClientWindowRectState) & {
|
|
154
153
|
clientWindow: BrowserClientWindow;
|
|
155
|
-
}
|
|
154
|
+
};
|
|
156
155
|
export interface BrowserClientWindowNamedState {
|
|
157
156
|
state: 'fullscreen' | 'maximized' | 'minimized';
|
|
158
157
|
}
|
|
@@ -163,7 +162,23 @@ export interface BrowserClientWindowRectState {
|
|
|
163
162
|
x?: JsInt;
|
|
164
163
|
y?: JsInt;
|
|
165
164
|
}
|
|
166
|
-
export
|
|
165
|
+
export interface BrowserSetDownloadBehavior {
|
|
166
|
+
method: 'browser.setDownloadBehavior';
|
|
167
|
+
params: BrowserSetDownloadBehaviorParameters;
|
|
168
|
+
}
|
|
169
|
+
export interface BrowserSetDownloadBehaviorParameters {
|
|
170
|
+
downloadBehavior: BrowserDownloadBehavior | null;
|
|
171
|
+
userContexts?: BrowserUserContext[];
|
|
172
|
+
}
|
|
173
|
+
export type BrowserDownloadBehavior = (BrowserDownloadBehaviorAllowed | BrowserDownloadBehaviorDenied);
|
|
174
|
+
export interface BrowserDownloadBehaviorAllowed {
|
|
175
|
+
type: 'allowed';
|
|
176
|
+
destinationFolder: string;
|
|
177
|
+
}
|
|
178
|
+
export interface BrowserDownloadBehaviorDenied {
|
|
179
|
+
type: 'denied';
|
|
180
|
+
}
|
|
181
|
+
export type BrowsingContextCommand = BrowsingContextActivate | BrowsingContextCaptureScreenshot | BrowsingContextClose | BrowsingContextCreate | BrowsingContextGetTree | BrowsingContextHandleUserPrompt | BrowsingContextLocateNodes | BrowsingContextNavigate | BrowsingContextPrint | BrowsingContextReload | BrowsingContextSetBypassCsp | BrowsingContextSetViewport | BrowsingContextTraverseHistory;
|
|
167
182
|
export type BrowsingContextBrowsingContext = string;
|
|
168
183
|
export type BrowsingContextLocator = BrowsingContextAccessibilityLocator | BrowsingContextCssLocator | BrowsingContextContextLocator | BrowsingContextInnerTextLocator | BrowsingContextXPathLocator;
|
|
169
184
|
export interface BrowsingContextAccessibilityLocator {
|
|
@@ -197,14 +212,14 @@ export interface BrowsingContextXPathLocator {
|
|
|
197
212
|
export type BrowsingContextNavigation = string;
|
|
198
213
|
export type BrowsingContextReadinessState = 'none' | 'interactive' | 'complete';
|
|
199
214
|
export type BrowsingContextUserPromptType = 'alert' | 'beforeunload' | 'confirm' | 'prompt';
|
|
200
|
-
export interface BrowsingContextActivate
|
|
215
|
+
export interface BrowsingContextActivate {
|
|
201
216
|
method: 'browsingContext.activate';
|
|
202
217
|
params: BrowsingContextActivateParameters;
|
|
203
218
|
}
|
|
204
219
|
export interface BrowsingContextActivateParameters {
|
|
205
220
|
context: BrowsingContextBrowsingContext;
|
|
206
221
|
}
|
|
207
|
-
export interface BrowsingContextCaptureScreenshot
|
|
222
|
+
export interface BrowsingContextCaptureScreenshot {
|
|
208
223
|
method: 'browsingContext.captureScreenshot';
|
|
209
224
|
params: BrowsingContextCaptureScreenshotParameters;
|
|
210
225
|
}
|
|
@@ -233,7 +248,7 @@ export interface BrowsingContextBoxClipRectangle {
|
|
|
233
248
|
width: number;
|
|
234
249
|
height: number;
|
|
235
250
|
}
|
|
236
|
-
export interface BrowsingContextClose
|
|
251
|
+
export interface BrowsingContextClose {
|
|
237
252
|
method: 'browsingContext.close';
|
|
238
253
|
params: BrowsingContextCloseParameters;
|
|
239
254
|
}
|
|
@@ -241,7 +256,7 @@ export interface BrowsingContextCloseParameters {
|
|
|
241
256
|
context: BrowsingContextBrowsingContext;
|
|
242
257
|
promptUnload?: boolean;
|
|
243
258
|
}
|
|
244
|
-
export interface BrowsingContextCreate
|
|
259
|
+
export interface BrowsingContextCreate {
|
|
245
260
|
method: 'browsingContext.create';
|
|
246
261
|
params: BrowsingContextCreateParameters;
|
|
247
262
|
}
|
|
@@ -252,7 +267,7 @@ export interface BrowsingContextCreateParameters {
|
|
|
252
267
|
background?: boolean;
|
|
253
268
|
userContext?: BrowserUserContext;
|
|
254
269
|
}
|
|
255
|
-
export interface BrowsingContextGetTree
|
|
270
|
+
export interface BrowsingContextGetTree {
|
|
256
271
|
method: 'browsingContext.getTree';
|
|
257
272
|
params: BrowsingContextGetTreeParameters;
|
|
258
273
|
}
|
|
@@ -260,7 +275,7 @@ export interface BrowsingContextGetTreeParameters {
|
|
|
260
275
|
maxDepth?: JsUint;
|
|
261
276
|
root?: BrowsingContextBrowsingContext;
|
|
262
277
|
}
|
|
263
|
-
export interface BrowsingContextHandleUserPrompt
|
|
278
|
+
export interface BrowsingContextHandleUserPrompt {
|
|
264
279
|
method: 'browsingContext.handleUserPrompt';
|
|
265
280
|
params: BrowsingContextHandleUserPromptParameters;
|
|
266
281
|
}
|
|
@@ -269,7 +284,7 @@ export interface BrowsingContextHandleUserPromptParameters {
|
|
|
269
284
|
accept?: boolean;
|
|
270
285
|
userText?: string;
|
|
271
286
|
}
|
|
272
|
-
export interface BrowsingContextLocateNodes
|
|
287
|
+
export interface BrowsingContextLocateNodes {
|
|
273
288
|
method: 'browsingContext.locateNodes';
|
|
274
289
|
params: BrowsingContextLocateNodesParameters;
|
|
275
290
|
}
|
|
@@ -280,7 +295,7 @@ export interface BrowsingContextLocateNodesParameters {
|
|
|
280
295
|
serializationOptions?: ScriptSerializationOptions;
|
|
281
296
|
startNodes?: ScriptSharedReference[];
|
|
282
297
|
}
|
|
283
|
-
export interface BrowsingContextNavigate
|
|
298
|
+
export interface BrowsingContextNavigate {
|
|
284
299
|
method: 'browsingContext.navigate';
|
|
285
300
|
params: BrowsingContextNavigateParameters;
|
|
286
301
|
}
|
|
@@ -289,7 +304,7 @@ export interface BrowsingContextNavigateParameters {
|
|
|
289
304
|
url: string;
|
|
290
305
|
wait?: BrowsingContextReadinessState;
|
|
291
306
|
}
|
|
292
|
-
export interface BrowsingContextPrint
|
|
307
|
+
export interface BrowsingContextPrint {
|
|
293
308
|
method: 'browsingContext.print';
|
|
294
309
|
params: BrowsingContextPrintParameters;
|
|
295
310
|
}
|
|
@@ -340,7 +355,7 @@ export interface BrowsingContextPrintPageParameters {
|
|
|
340
355
|
*/
|
|
341
356
|
width?: number;
|
|
342
357
|
}
|
|
343
|
-
export interface BrowsingContextReload
|
|
358
|
+
export interface BrowsingContextReload {
|
|
344
359
|
method: 'browsingContext.reload';
|
|
345
360
|
params: BrowsingContextReloadParameters;
|
|
346
361
|
}
|
|
@@ -349,7 +364,16 @@ export interface BrowsingContextReloadParameters {
|
|
|
349
364
|
ignoreCache?: boolean;
|
|
350
365
|
wait?: BrowsingContextReadinessState;
|
|
351
366
|
}
|
|
352
|
-
export interface
|
|
367
|
+
export interface BrowsingContextSetBypassCsp {
|
|
368
|
+
method: 'browsingContext.setBypassCSP';
|
|
369
|
+
params: BrowsingContextSetBypassCspParameters;
|
|
370
|
+
}
|
|
371
|
+
export interface BrowsingContextSetBypassCspParameters {
|
|
372
|
+
bypass: true | null;
|
|
373
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
374
|
+
userContexts?: BrowserUserContext[];
|
|
375
|
+
}
|
|
376
|
+
export interface BrowsingContextSetViewport {
|
|
353
377
|
method: 'browsingContext.setViewport';
|
|
354
378
|
params: BrowsingContextSetViewportParameters;
|
|
355
379
|
}
|
|
@@ -363,7 +387,7 @@ export interface BrowsingContextViewport {
|
|
|
363
387
|
width: JsUint;
|
|
364
388
|
height: JsUint;
|
|
365
389
|
}
|
|
366
|
-
export interface BrowsingContextTraverseHistory
|
|
390
|
+
export interface BrowsingContextTraverseHistory {
|
|
367
391
|
method: 'browsingContext.traverseHistory';
|
|
368
392
|
params: BrowsingContextTraverseHistoryParameters;
|
|
369
393
|
}
|
|
@@ -371,21 +395,29 @@ export interface BrowsingContextTraverseHistoryParameters {
|
|
|
371
395
|
context: BrowsingContextBrowsingContext;
|
|
372
396
|
delta: JsInt;
|
|
373
397
|
}
|
|
374
|
-
export
|
|
398
|
+
export type EmulationCommand = EmulationSetForcedColorsModeThemeOverride | EmulationSetGeolocationOverride | EmulationSetLocaleOverride | EmulationSetNetworkConditions | EmulationSetScreenOrientationOverride | EmulationSetScreenSettingsOverride | EmulationSetScriptingEnabled | EmulationSetScrollbarTypeOverride | EmulationSetTimezoneOverride | EmulationSetTouchOverride | EmulationSetUserAgentOverride;
|
|
399
|
+
export interface EmulationSetForcedColorsModeThemeOverride {
|
|
400
|
+
method: 'emulation.setForcedColorsModeThemeOverride';
|
|
401
|
+
params: EmulationSetForcedColorsModeThemeOverrideParameters;
|
|
402
|
+
}
|
|
403
|
+
export interface EmulationSetForcedColorsModeThemeOverrideParameters {
|
|
404
|
+
theme: EmulationForcedColorsModeTheme | null;
|
|
405
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
406
|
+
userContexts?: BrowserUserContext[];
|
|
375
407
|
}
|
|
376
|
-
export
|
|
408
|
+
export type EmulationForcedColorsModeTheme = 'light' | 'dark';
|
|
409
|
+
export interface EmulationSetGeolocationOverride {
|
|
377
410
|
method: 'emulation.setGeolocationOverride';
|
|
378
411
|
params: EmulationSetGeolocationOverrideParameters;
|
|
379
412
|
}
|
|
380
|
-
export type EmulationSetGeolocationOverrideParameters =
|
|
381
|
-
export interface EmulationSetGeolocationPosition {
|
|
382
|
-
type: 'position';
|
|
413
|
+
export type EmulationSetGeolocationOverrideParameters = ({
|
|
383
414
|
coordinates: EmulationGeolocationCoordinates | null;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
415
|
+
} | {
|
|
416
|
+
error: EmulationGeolocationPositionError;
|
|
417
|
+
}) & {
|
|
418
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
419
|
+
userContexts?: BrowserUserContext[];
|
|
420
|
+
};
|
|
389
421
|
export interface EmulationGeolocationCoordinates {
|
|
390
422
|
latitude: number;
|
|
391
423
|
longitude: number;
|
|
@@ -410,10 +442,105 @@ export interface EmulationGeolocationCoordinates {
|
|
|
410
442
|
*/
|
|
411
443
|
speed?: number | null;
|
|
412
444
|
}
|
|
413
|
-
export interface
|
|
445
|
+
export interface EmulationGeolocationPositionError {
|
|
414
446
|
type: 'positionUnavailable';
|
|
415
447
|
}
|
|
416
|
-
export
|
|
448
|
+
export interface EmulationSetLocaleOverride {
|
|
449
|
+
method: 'emulation.setLocaleOverride';
|
|
450
|
+
params: EmulationSetLocaleOverrideParameters;
|
|
451
|
+
}
|
|
452
|
+
export interface EmulationSetLocaleOverrideParameters {
|
|
453
|
+
locale: string | null;
|
|
454
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
455
|
+
userContexts?: BrowserUserContext[];
|
|
456
|
+
}
|
|
457
|
+
export interface EmulationSetNetworkConditions {
|
|
458
|
+
method: 'emulation.setNetworkConditions';
|
|
459
|
+
params: EmulationSetNetworkConditionsParameters;
|
|
460
|
+
}
|
|
461
|
+
export interface EmulationSetNetworkConditionsParameters {
|
|
462
|
+
networkConditions: EmulationNetworkConditions | null;
|
|
463
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
464
|
+
userContexts?: BrowserUserContext[];
|
|
465
|
+
}
|
|
466
|
+
export type EmulationNetworkConditions = EmulationNetworkConditionsOffline;
|
|
467
|
+
export interface EmulationNetworkConditionsOffline {
|
|
468
|
+
type: 'offline';
|
|
469
|
+
}
|
|
470
|
+
export interface EmulationSetScreenSettingsOverride {
|
|
471
|
+
method: 'emulation.setScreenSettingsOverride';
|
|
472
|
+
params: EmulationSetScreenSettingsOverrideParameters;
|
|
473
|
+
}
|
|
474
|
+
export interface EmulationScreenArea {
|
|
475
|
+
width: JsUint;
|
|
476
|
+
height: JsUint;
|
|
477
|
+
}
|
|
478
|
+
export interface EmulationSetScreenSettingsOverrideParameters {
|
|
479
|
+
screenArea: EmulationScreenArea | null;
|
|
480
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
481
|
+
userContexts?: BrowserUserContext[];
|
|
482
|
+
}
|
|
483
|
+
export interface EmulationSetScreenOrientationOverride {
|
|
484
|
+
method: 'emulation.setScreenOrientationOverride';
|
|
485
|
+
params: EmulationSetScreenOrientationOverrideParameters;
|
|
486
|
+
}
|
|
487
|
+
export type EmulationScreenOrientationNatural = 'portrait' | 'landscape';
|
|
488
|
+
export type EmulationScreenOrientationType = 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary';
|
|
489
|
+
export interface EmulationScreenOrientation {
|
|
490
|
+
natural: EmulationScreenOrientationNatural;
|
|
491
|
+
type: EmulationScreenOrientationType;
|
|
492
|
+
}
|
|
493
|
+
export interface EmulationSetScreenOrientationOverrideParameters {
|
|
494
|
+
screenOrientation: EmulationScreenOrientation | null;
|
|
495
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
496
|
+
userContexts?: BrowserUserContext[];
|
|
497
|
+
}
|
|
498
|
+
export interface EmulationSetUserAgentOverride {
|
|
499
|
+
method: 'emulation.setUserAgentOverride';
|
|
500
|
+
params: EmulationSetUserAgentOverrideParameters;
|
|
501
|
+
}
|
|
502
|
+
export interface EmulationSetUserAgentOverrideParameters {
|
|
503
|
+
userAgent: string | null;
|
|
504
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
505
|
+
userContexts?: BrowserUserContext[];
|
|
506
|
+
}
|
|
507
|
+
export interface EmulationSetScriptingEnabled {
|
|
508
|
+
method: 'emulation.setScriptingEnabled';
|
|
509
|
+
params: EmulationSetScriptingEnabledParameters;
|
|
510
|
+
}
|
|
511
|
+
export interface EmulationSetScriptingEnabledParameters {
|
|
512
|
+
enabled: false | null;
|
|
513
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
514
|
+
userContexts?: BrowserUserContext[];
|
|
515
|
+
}
|
|
516
|
+
export interface EmulationSetScrollbarTypeOverride {
|
|
517
|
+
method: 'emulation.setScrollbarTypeOverride';
|
|
518
|
+
params: EmulationSetScrollbarTypeOverrideParameters;
|
|
519
|
+
}
|
|
520
|
+
export interface EmulationSetScrollbarTypeOverrideParameters {
|
|
521
|
+
scrollbarType: 'classic' | 'overlay' | null;
|
|
522
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
523
|
+
userContexts?: BrowserUserContext[];
|
|
524
|
+
}
|
|
525
|
+
export interface EmulationSetTimezoneOverride {
|
|
526
|
+
method: 'emulation.setTimezoneOverride';
|
|
527
|
+
params: EmulationSetTimezoneOverrideParameters;
|
|
528
|
+
}
|
|
529
|
+
export interface EmulationSetTimezoneOverrideParameters {
|
|
530
|
+
timezone: string | null;
|
|
531
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
532
|
+
userContexts?: BrowserUserContext[];
|
|
533
|
+
}
|
|
534
|
+
export interface EmulationSetTouchOverride {
|
|
535
|
+
method: 'emulation.setTouchOverride';
|
|
536
|
+
params: EmulationSetTouchOverrideParameters;
|
|
537
|
+
}
|
|
538
|
+
export interface EmulationSetTouchOverrideParameters {
|
|
539
|
+
maxTouchPoints: JsUint | null;
|
|
540
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
541
|
+
userContexts?: BrowserUserContext[];
|
|
542
|
+
}
|
|
543
|
+
export type NetworkCommand = NetworkAddDataCollector | NetworkAddIntercept | NetworkContinueRequest | NetworkContinueResponse | NetworkContinueWithAuth | NetworkDisownData | NetworkFailRequest | NetworkGetData | NetworkProvideResponse | NetworkRemoveDataCollector | NetworkRemoveIntercept | NetworkSetCacheBehavior | NetworkSetExtraHeaders;
|
|
417
544
|
export interface NetworkAuthCredentials {
|
|
418
545
|
type: 'password';
|
|
419
546
|
username: string;
|
|
@@ -428,8 +555,10 @@ export interface NetworkBase64Value {
|
|
|
428
555
|
type: 'base64';
|
|
429
556
|
value: string;
|
|
430
557
|
}
|
|
431
|
-
export type
|
|
432
|
-
export
|
|
558
|
+
export type NetworkCollector = string;
|
|
559
|
+
export type NetworkCollectorType = 'blob';
|
|
560
|
+
export type NetworkSameSite = 'strict' | 'lax' | 'none' | 'default';
|
|
561
|
+
export type NetworkCookie = Extensible & {
|
|
433
562
|
name: string;
|
|
434
563
|
value: NetworkBytesValue;
|
|
435
564
|
domain: string;
|
|
@@ -439,11 +568,12 @@ export interface NetworkCookie {
|
|
|
439
568
|
secure: boolean;
|
|
440
569
|
sameSite: NetworkSameSite;
|
|
441
570
|
expiry?: JsUint;
|
|
442
|
-
}
|
|
571
|
+
};
|
|
443
572
|
export interface NetworkCookieHeader {
|
|
444
573
|
name: string;
|
|
445
574
|
value: NetworkBytesValue;
|
|
446
575
|
}
|
|
576
|
+
export type NetworkDataType = 'request' | 'response';
|
|
447
577
|
export interface NetworkHeader {
|
|
448
578
|
name: string;
|
|
449
579
|
value: NetworkBytesValue;
|
|
@@ -474,7 +604,21 @@ export interface NetworkUrlPatternString {
|
|
|
474
604
|
type: 'string';
|
|
475
605
|
pattern: string;
|
|
476
606
|
}
|
|
477
|
-
export interface
|
|
607
|
+
export interface NetworkAddDataCollector {
|
|
608
|
+
method: 'network.addDataCollector';
|
|
609
|
+
params: NetworkAddDataCollectorParameters;
|
|
610
|
+
}
|
|
611
|
+
export interface NetworkAddDataCollectorParameters {
|
|
612
|
+
dataTypes: NetworkDataType[];
|
|
613
|
+
maxEncodedDataSize: JsUint;
|
|
614
|
+
/**
|
|
615
|
+
* @default 'blob'
|
|
616
|
+
*/
|
|
617
|
+
collectorType?: NetworkCollectorType;
|
|
618
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
619
|
+
userContexts?: BrowserUserContext[];
|
|
620
|
+
}
|
|
621
|
+
export interface NetworkAddIntercept {
|
|
478
622
|
method: 'network.addIntercept';
|
|
479
623
|
params: NetworkAddInterceptParameters;
|
|
480
624
|
}
|
|
@@ -484,7 +628,7 @@ export interface NetworkAddInterceptParameters {
|
|
|
484
628
|
urlPatterns?: NetworkUrlPattern[];
|
|
485
629
|
}
|
|
486
630
|
export type NetworkInterceptPhase = 'beforeRequestSent' | 'responseStarted' | 'authRequired';
|
|
487
|
-
export interface NetworkContinueRequest
|
|
631
|
+
export interface NetworkContinueRequest {
|
|
488
632
|
method: 'network.continueRequest';
|
|
489
633
|
params: NetworkContinueRequestParameters;
|
|
490
634
|
}
|
|
@@ -496,7 +640,7 @@ export interface NetworkContinueRequestParameters {
|
|
|
496
640
|
method?: string;
|
|
497
641
|
url?: string;
|
|
498
642
|
}
|
|
499
|
-
export interface NetworkContinueResponse
|
|
643
|
+
export interface NetworkContinueResponse {
|
|
500
644
|
method: 'network.continueResponse';
|
|
501
645
|
params: NetworkContinueResponseParameters;
|
|
502
646
|
}
|
|
@@ -508,13 +652,13 @@ export interface NetworkContinueResponseParameters {
|
|
|
508
652
|
reasonPhrase?: string;
|
|
509
653
|
statusCode?: JsUint;
|
|
510
654
|
}
|
|
511
|
-
export interface NetworkContinueWithAuth
|
|
655
|
+
export interface NetworkContinueWithAuth {
|
|
512
656
|
method: 'network.continueWithAuth';
|
|
513
657
|
params: NetworkContinueWithAuthParameters;
|
|
514
658
|
}
|
|
515
|
-
export
|
|
659
|
+
export type NetworkContinueWithAuthParameters = (NetworkContinueWithAuthCredentials | NetworkContinueWithAuthNoCredentials) & {
|
|
516
660
|
request: NetworkRequest;
|
|
517
|
-
}
|
|
661
|
+
};
|
|
518
662
|
export interface NetworkContinueWithAuthCredentials {
|
|
519
663
|
action: 'provideCredentials';
|
|
520
664
|
credentials: NetworkAuthCredentials;
|
|
@@ -522,14 +666,33 @@ export interface NetworkContinueWithAuthCredentials {
|
|
|
522
666
|
export interface NetworkContinueWithAuthNoCredentials {
|
|
523
667
|
action: 'default' | 'cancel';
|
|
524
668
|
}
|
|
525
|
-
export interface
|
|
669
|
+
export interface NetworkDisownData {
|
|
670
|
+
method: 'network.disownData';
|
|
671
|
+
params: NetworkDisownDataParameters;
|
|
672
|
+
}
|
|
673
|
+
export interface NetworkDisownDataParameters {
|
|
674
|
+
dataType: NetworkDataType;
|
|
675
|
+
collector: NetworkCollector;
|
|
676
|
+
request: NetworkRequest;
|
|
677
|
+
}
|
|
678
|
+
export interface NetworkFailRequest {
|
|
526
679
|
method: 'network.failRequest';
|
|
527
680
|
params: NetworkFailRequestParameters;
|
|
528
681
|
}
|
|
529
682
|
export interface NetworkFailRequestParameters {
|
|
530
683
|
request: NetworkRequest;
|
|
531
684
|
}
|
|
532
|
-
export interface
|
|
685
|
+
export interface NetworkGetData {
|
|
686
|
+
method: 'network.getData';
|
|
687
|
+
params: NetworkGetDataParameters;
|
|
688
|
+
}
|
|
689
|
+
export interface NetworkGetDataParameters {
|
|
690
|
+
dataType: NetworkDataType;
|
|
691
|
+
collector?: NetworkCollector;
|
|
692
|
+
disown?: boolean;
|
|
693
|
+
request: NetworkRequest;
|
|
694
|
+
}
|
|
695
|
+
export interface NetworkProvideResponse {
|
|
533
696
|
method: 'network.provideResponse';
|
|
534
697
|
params: NetworkProvideResponseParameters;
|
|
535
698
|
}
|
|
@@ -541,14 +704,21 @@ export interface NetworkProvideResponseParameters {
|
|
|
541
704
|
reasonPhrase?: string;
|
|
542
705
|
statusCode?: JsUint;
|
|
543
706
|
}
|
|
544
|
-
export interface
|
|
707
|
+
export interface NetworkRemoveDataCollector {
|
|
708
|
+
method: 'network.removeDataCollector';
|
|
709
|
+
params: NetworkRemoveDataCollectorParameters;
|
|
710
|
+
}
|
|
711
|
+
export interface NetworkRemoveDataCollectorParameters {
|
|
712
|
+
collector: NetworkCollector;
|
|
713
|
+
}
|
|
714
|
+
export interface NetworkRemoveIntercept {
|
|
545
715
|
method: 'network.removeIntercept';
|
|
546
716
|
params: NetworkRemoveInterceptParameters;
|
|
547
717
|
}
|
|
548
718
|
export interface NetworkRemoveInterceptParameters {
|
|
549
719
|
intercept: NetworkIntercept;
|
|
550
720
|
}
|
|
551
|
-
export interface NetworkSetCacheBehavior
|
|
721
|
+
export interface NetworkSetCacheBehavior {
|
|
552
722
|
method: 'network.setCacheBehavior';
|
|
553
723
|
params: NetworkSetCacheBehaviorParameters;
|
|
554
724
|
}
|
|
@@ -556,6 +726,15 @@ export interface NetworkSetCacheBehaviorParameters {
|
|
|
556
726
|
cacheBehavior: 'default' | 'bypass';
|
|
557
727
|
contexts?: BrowsingContextBrowsingContext[];
|
|
558
728
|
}
|
|
729
|
+
export interface NetworkSetExtraHeaders {
|
|
730
|
+
method: 'network.setExtraHeaders';
|
|
731
|
+
params: NetworkSetExtraHeadersParameters;
|
|
732
|
+
}
|
|
733
|
+
export interface NetworkSetExtraHeadersParameters {
|
|
734
|
+
headers: NetworkHeader[];
|
|
735
|
+
contexts?: BrowsingContextBrowsingContext[];
|
|
736
|
+
userContexts?: BrowserUserContext[];
|
|
737
|
+
}
|
|
559
738
|
export type ScriptCommand = ScriptAddPreloadScript | ScriptCallFunction | ScriptDisown | ScriptEvaluate | ScriptGetRealms | ScriptRemovePreloadScript;
|
|
560
739
|
export type ScriptChannel = string;
|
|
561
740
|
export interface ScriptChannelValue {
|
|
@@ -587,14 +766,12 @@ export interface ScriptExceptionDetails {
|
|
|
587
766
|
}
|
|
588
767
|
export type ScriptHandle = string;
|
|
589
768
|
export type ScriptInternalId = string;
|
|
590
|
-
export type ScriptLocalValue = ScriptRemoteReference | ScriptPrimitiveProtocolValue | ScriptChannelValue | ScriptArrayLocalValue |
|
|
591
|
-
export type ScriptListLocalValue =
|
|
769
|
+
export type ScriptLocalValue = ScriptRemoteReference | ScriptPrimitiveProtocolValue | ScriptChannelValue | ScriptArrayLocalValue | ScriptDateLocalValue | ScriptMapLocalValue | ScriptObjectLocalValue | ScriptRegExpLocalValue | ScriptSetLocalValue;
|
|
770
|
+
export type ScriptListLocalValue = ScriptLocalValue[];
|
|
592
771
|
export interface ScriptArrayLocalValue {
|
|
593
772
|
type: 'array';
|
|
594
773
|
value: ScriptListLocalValue;
|
|
595
774
|
}
|
|
596
|
-
export interface ScriptDateLocalValueMap extends ScriptDateLocalValue {
|
|
597
|
-
}
|
|
598
775
|
export interface ScriptDateLocalValue {
|
|
599
776
|
type: 'date';
|
|
600
777
|
value: string;
|
|
@@ -612,8 +789,6 @@ export interface ScriptRegExpValue {
|
|
|
612
789
|
pattern: string;
|
|
613
790
|
flags?: string;
|
|
614
791
|
}
|
|
615
|
-
export interface ScriptRegExpLocalValueMap extends ScriptRegExpLocalValue {
|
|
616
|
-
}
|
|
617
792
|
export interface ScriptRegExpLocalValue {
|
|
618
793
|
type: 'regexp';
|
|
619
794
|
value: ScriptRegExpValue;
|
|
@@ -650,16 +825,16 @@ export interface ScriptBigIntValue {
|
|
|
650
825
|
}
|
|
651
826
|
export type ScriptRealmType = 'window' | 'dedicated-worker' | 'shared-worker' | 'service-worker' | 'worker' | 'paint-worklet' | 'audio-worklet' | 'worklet';
|
|
652
827
|
export type ScriptRemoteReference = ScriptSharedReference | ScriptRemoteObjectReference;
|
|
653
|
-
export
|
|
828
|
+
export type ScriptSharedReference = Extensible & {
|
|
654
829
|
sharedId: ScriptSharedId;
|
|
655
830
|
handle?: ScriptHandle;
|
|
656
|
-
}
|
|
657
|
-
export
|
|
831
|
+
};
|
|
832
|
+
export type ScriptRemoteObjectReference = Extensible & {
|
|
658
833
|
handle: ScriptHandle;
|
|
659
834
|
sharedId?: ScriptSharedId;
|
|
660
|
-
}
|
|
835
|
+
};
|
|
661
836
|
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 =
|
|
837
|
+
export type ScriptListRemoteValue = ScriptRemoteValue[];
|
|
663
838
|
export type ScriptMappingRemoteValue = (ScriptRemoteValue | ScriptRemoteValue)[];
|
|
664
839
|
export interface ScriptSymbolRemoteValue {
|
|
665
840
|
type: 'symbol';
|
|
@@ -683,14 +858,14 @@ export interface ScriptFunctionRemoteValue {
|
|
|
683
858
|
handle?: ScriptHandle;
|
|
684
859
|
internalId?: ScriptInternalId;
|
|
685
860
|
}
|
|
686
|
-
export
|
|
861
|
+
export type ScriptRegExpRemoteValue = ScriptRegExpLocalValue & {
|
|
687
862
|
handle?: ScriptHandle;
|
|
688
863
|
internalId?: ScriptInternalId;
|
|
689
|
-
}
|
|
690
|
-
export
|
|
864
|
+
};
|
|
865
|
+
export type ScriptDateRemoteValue = ScriptDateLocalValue & {
|
|
691
866
|
handle?: ScriptHandle;
|
|
692
867
|
internalId?: ScriptInternalId;
|
|
693
|
-
}
|
|
868
|
+
};
|
|
694
869
|
export interface ScriptMapRemoteValue {
|
|
695
870
|
type: 'map';
|
|
696
871
|
handle?: ScriptHandle;
|
|
@@ -812,7 +987,7 @@ export interface ScriptContextTarget {
|
|
|
812
987
|
sandbox?: string;
|
|
813
988
|
}
|
|
814
989
|
export type ScriptTarget = ScriptContextTarget | ScriptRealmTarget;
|
|
815
|
-
export interface ScriptAddPreloadScript
|
|
990
|
+
export interface ScriptAddPreloadScript {
|
|
816
991
|
method: 'script.addPreloadScript';
|
|
817
992
|
params: ScriptAddPreloadScriptParameters;
|
|
818
993
|
}
|
|
@@ -823,7 +998,7 @@ export interface ScriptAddPreloadScriptParameters {
|
|
|
823
998
|
userContexts?: BrowserUserContext[];
|
|
824
999
|
sandbox?: string;
|
|
825
1000
|
}
|
|
826
|
-
export interface ScriptDisown
|
|
1001
|
+
export interface ScriptDisown {
|
|
827
1002
|
method: 'script.disown';
|
|
828
1003
|
params: ScriptDisownParameters;
|
|
829
1004
|
}
|
|
@@ -831,7 +1006,7 @@ export interface ScriptDisownParameters {
|
|
|
831
1006
|
handles: ScriptHandle[];
|
|
832
1007
|
target: ScriptTarget;
|
|
833
1008
|
}
|
|
834
|
-
export interface ScriptCallFunction
|
|
1009
|
+
export interface ScriptCallFunction {
|
|
835
1010
|
method: 'script.callFunction';
|
|
836
1011
|
params: ScriptCallFunctionParameters;
|
|
837
1012
|
}
|
|
@@ -845,7 +1020,7 @@ export interface ScriptCallFunctionParameters {
|
|
|
845
1020
|
this?: ScriptLocalValue;
|
|
846
1021
|
userActivation?: boolean;
|
|
847
1022
|
}
|
|
848
|
-
export interface ScriptEvaluate
|
|
1023
|
+
export interface ScriptEvaluate {
|
|
849
1024
|
method: 'script.evaluate';
|
|
850
1025
|
params: ScriptEvaluateParameters;
|
|
851
1026
|
}
|
|
@@ -857,7 +1032,7 @@ export interface ScriptEvaluateParameters {
|
|
|
857
1032
|
serializationOptions?: ScriptSerializationOptions;
|
|
858
1033
|
userActivation?: boolean;
|
|
859
1034
|
}
|
|
860
|
-
export interface ScriptGetRealms
|
|
1035
|
+
export interface ScriptGetRealms {
|
|
861
1036
|
method: 'script.getRealms';
|
|
862
1037
|
params: ScriptGetRealmsParameters;
|
|
863
1038
|
}
|
|
@@ -865,7 +1040,7 @@ export interface ScriptGetRealmsParameters {
|
|
|
865
1040
|
context?: BrowsingContextBrowsingContext;
|
|
866
1041
|
type?: ScriptRealmType;
|
|
867
1042
|
}
|
|
868
|
-
export interface ScriptRemovePreloadScript
|
|
1043
|
+
export interface ScriptRemovePreloadScript {
|
|
869
1044
|
method: 'script.removePreloadScript';
|
|
870
1045
|
params: ScriptRemovePreloadScriptParameters;
|
|
871
1046
|
}
|
|
@@ -873,15 +1048,15 @@ export interface ScriptRemovePreloadScriptParameters {
|
|
|
873
1048
|
script: ScriptPreloadScript;
|
|
874
1049
|
}
|
|
875
1050
|
export type StorageCommand = StorageDeleteCookies | StorageGetCookies | StorageSetCookie;
|
|
876
|
-
export
|
|
1051
|
+
export type StoragePartitionKey = Extensible & {
|
|
877
1052
|
userContext?: string;
|
|
878
1053
|
sourceOrigin?: string;
|
|
879
|
-
}
|
|
880
|
-
export interface StorageGetCookies
|
|
1054
|
+
};
|
|
1055
|
+
export interface StorageGetCookies {
|
|
881
1056
|
method: 'storage.getCookies';
|
|
882
1057
|
params: StorageGetCookiesParameters;
|
|
883
1058
|
}
|
|
884
|
-
export
|
|
1059
|
+
export type StorageCookieFilter = Extensible & {
|
|
885
1060
|
name?: string;
|
|
886
1061
|
value?: NetworkBytesValue;
|
|
887
1062
|
domain?: string;
|
|
@@ -891,26 +1066,26 @@ export interface StorageCookieFilter extends Extensible {
|
|
|
891
1066
|
secure?: boolean;
|
|
892
1067
|
sameSite?: NetworkSameSite;
|
|
893
1068
|
expiry?: JsUint;
|
|
894
|
-
}
|
|
1069
|
+
};
|
|
895
1070
|
export interface StorageBrowsingContextPartitionDescriptor {
|
|
896
1071
|
type: 'context';
|
|
897
1072
|
context: BrowsingContextBrowsingContext;
|
|
898
1073
|
}
|
|
899
|
-
export
|
|
1074
|
+
export type StorageStorageKeyPartitionDescriptor = Extensible & {
|
|
900
1075
|
type: 'storageKey';
|
|
901
1076
|
userContext?: string;
|
|
902
1077
|
sourceOrigin?: string;
|
|
903
|
-
}
|
|
1078
|
+
};
|
|
904
1079
|
export type StoragePartitionDescriptor = StorageBrowsingContextPartitionDescriptor | StorageStorageKeyPartitionDescriptor;
|
|
905
1080
|
export interface StorageGetCookiesParameters {
|
|
906
1081
|
filter?: StorageCookieFilter;
|
|
907
1082
|
partition?: StoragePartitionDescriptor;
|
|
908
1083
|
}
|
|
909
|
-
export interface StorageSetCookie
|
|
1084
|
+
export interface StorageSetCookie {
|
|
910
1085
|
method: 'storage.setCookie';
|
|
911
1086
|
params: StorageSetCookieParameters;
|
|
912
1087
|
}
|
|
913
|
-
export
|
|
1088
|
+
export type StoragePartialCookie = Extensible & {
|
|
914
1089
|
name: string;
|
|
915
1090
|
value: NetworkBytesValue;
|
|
916
1091
|
domain: string;
|
|
@@ -919,12 +1094,12 @@ export interface StoragePartialCookie extends Extensible {
|
|
|
919
1094
|
secure?: boolean;
|
|
920
1095
|
sameSite?: NetworkSameSite;
|
|
921
1096
|
expiry?: JsUint;
|
|
922
|
-
}
|
|
1097
|
+
};
|
|
923
1098
|
export interface StorageSetCookieParameters {
|
|
924
1099
|
cookie: StoragePartialCookie;
|
|
925
1100
|
partition?: StoragePartitionDescriptor;
|
|
926
1101
|
}
|
|
927
|
-
export interface StorageDeleteCookies
|
|
1102
|
+
export interface StorageDeleteCookies {
|
|
928
1103
|
method: 'storage.deleteCookies';
|
|
929
1104
|
params: StorageDeleteCookiesParameters;
|
|
930
1105
|
}
|
|
@@ -937,7 +1112,7 @@ export interface InputElementOrigin {
|
|
|
937
1112
|
type: 'element';
|
|
938
1113
|
element: ScriptSharedReference;
|
|
939
1114
|
}
|
|
940
|
-
export interface InputPerformActions
|
|
1115
|
+
export interface InputPerformActions {
|
|
941
1116
|
method: 'input.performActions';
|
|
942
1117
|
params: InputPerformActionsParameters;
|
|
943
1118
|
}
|
|
@@ -994,17 +1169,17 @@ export interface InputPointerUpAction {
|
|
|
994
1169
|
type: 'pointerUp';
|
|
995
1170
|
button: JsUint;
|
|
996
1171
|
}
|
|
997
|
-
export
|
|
1172
|
+
export type InputPointerDownAction = InputPointerCommonProperties & {
|
|
998
1173
|
type: 'pointerDown';
|
|
999
1174
|
button: JsUint;
|
|
1000
|
-
}
|
|
1001
|
-
export
|
|
1175
|
+
};
|
|
1176
|
+
export type InputPointerMoveAction = InputPointerCommonProperties & {
|
|
1002
1177
|
type: 'pointerMove';
|
|
1003
1178
|
x: number;
|
|
1004
1179
|
y: number;
|
|
1005
1180
|
duration?: JsUint;
|
|
1006
1181
|
origin?: InputOrigin;
|
|
1007
|
-
}
|
|
1182
|
+
};
|
|
1008
1183
|
export interface InputWheelScrollAction {
|
|
1009
1184
|
type: 'scroll';
|
|
1010
1185
|
x: JsInt;
|
|
@@ -1018,13 +1193,7 @@ export interface InputWheelScrollAction {
|
|
|
1018
1193
|
origin?: InputOrigin;
|
|
1019
1194
|
}
|
|
1020
1195
|
export interface InputPointerCommonProperties {
|
|
1021
|
-
/**
|
|
1022
|
-
* @default 1
|
|
1023
|
-
*/
|
|
1024
1196
|
width?: JsUint;
|
|
1025
|
-
/**
|
|
1026
|
-
* @default 1
|
|
1027
|
-
*/
|
|
1028
1197
|
height?: JsUint;
|
|
1029
1198
|
pressure?: number;
|
|
1030
1199
|
tangentialPressure?: number;
|
|
@@ -1039,14 +1208,14 @@ export interface InputPointerCommonProperties {
|
|
|
1039
1208
|
azimuthAngle?: number;
|
|
1040
1209
|
}
|
|
1041
1210
|
export type InputOrigin = 'viewport' | 'pointer' | InputElementOrigin;
|
|
1042
|
-
export interface InputReleaseActions
|
|
1211
|
+
export interface InputReleaseActions {
|
|
1043
1212
|
method: 'input.releaseActions';
|
|
1044
1213
|
params: InputReleaseActionsParameters;
|
|
1045
1214
|
}
|
|
1046
1215
|
export interface InputReleaseActionsParameters {
|
|
1047
1216
|
context: BrowsingContextBrowsingContext;
|
|
1048
1217
|
}
|
|
1049
|
-
export interface InputSetFiles
|
|
1218
|
+
export interface InputSetFiles {
|
|
1050
1219
|
method: 'input.setFiles';
|
|
1051
1220
|
params: InputSetFilesParameters;
|
|
1052
1221
|
}
|
|
@@ -1055,14 +1224,9 @@ export interface InputSetFilesParameters {
|
|
|
1055
1224
|
element: ScriptSharedReference;
|
|
1056
1225
|
files: string[];
|
|
1057
1226
|
}
|
|
1058
|
-
export interface InputFileDialogInfo {
|
|
1059
|
-
context: BrowsingContextBrowsingContext;
|
|
1060
|
-
element?: ScriptSharedReference;
|
|
1061
|
-
multiple: boolean;
|
|
1062
|
-
}
|
|
1063
1227
|
export type WebExtensionCommand = WebExtensionInstall | WebExtensionUninstall;
|
|
1064
1228
|
export type WebExtensionExtension = string;
|
|
1065
|
-
export interface WebExtensionInstall
|
|
1229
|
+
export interface WebExtensionInstall {
|
|
1066
1230
|
method: 'webExtension.install';
|
|
1067
1231
|
params: WebExtensionInstallParameters;
|
|
1068
1232
|
}
|
|
@@ -1082,7 +1246,7 @@ export interface WebExtensionExtensionBase64Encoded {
|
|
|
1082
1246
|
type: 'base64';
|
|
1083
1247
|
value: string;
|
|
1084
1248
|
}
|
|
1085
|
-
export interface WebExtensionUninstall
|
|
1249
|
+
export interface WebExtensionUninstall {
|
|
1086
1250
|
method: 'webExtension.uninstall';
|
|
1087
1251
|
params: WebExtensionUninstallParameters;
|
|
1088
1252
|
}
|