selenium-webdriver 4.48.0 → 4.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGES.md +26 -0
  2. package/bidi/generated/bluetooth.d.ts +199 -37
  3. package/bidi/generated/bluetooth.js +212 -106
  4. package/bidi/generated/browser.d.ts +81 -28
  5. package/bidi/generated/browser.js +97 -69
  6. package/bidi/generated/browsing_context.d.ts +274 -87
  7. package/bidi/generated/browsing_context.js +328 -241
  8. package/bidi/generated/common.d.ts +105 -21
  9. package/bidi/generated/common.js +64 -15
  10. package/bidi/generated/digital_credentials.d.ts +41 -0
  11. package/bidi/generated/digital_credentials.js +54 -0
  12. package/bidi/generated/emulation.d.ts +354 -58
  13. package/bidi/generated/emulation.js +262 -101
  14. package/bidi/generated/input.d.ts +63 -35
  15. package/bidi/generated/input.js +77 -51
  16. package/bidi/generated/log.d.ts +39 -18
  17. package/bidi/generated/log.js +23 -43
  18. package/bidi/generated/network.d.ts +248 -76
  19. package/bidi/generated/network.js +247 -181
  20. package/bidi/generated/permissions.d.ts +22 -4
  21. package/bidi/generated/permissions.js +31 -17
  22. package/bidi/generated/script.d.ts +166 -70
  23. package/bidi/generated/script.js +203 -116
  24. package/bidi/generated/session.d.ts +76 -36
  25. package/bidi/generated/session.js +81 -48
  26. package/bidi/generated/speculation.d.ts +15 -5
  27. package/bidi/generated/speculation.js +20 -16
  28. package/bidi/generated/storage.d.ts +41 -17
  29. package/bidi/generated/storage.js +58 -40
  30. package/bidi/generated/user_agent_client_hints.d.ts +25 -13
  31. package/bidi/generated/user_agent_client_hints.js +29 -18
  32. package/bidi/generated/webextension.d.ts +24 -10
  33. package/bidi/generated/webextension.js +39 -25
  34. package/bidi/serialization/enum.js +6 -3
  35. package/bidi/serialization/record.js +34 -29
  36. package/bin/linux-arm64/selenium-manager +0 -0
  37. package/bin/{linux → linux-x86_64}/selenium-manager +0 -0
  38. package/bin/macos/selenium-manager +0 -0
  39. package/bin/selenium-manager-THIRD-PARTY-NOTICES.txt +327 -51
  40. package/bin/selenium-manager.cdx.json +491 -491
  41. package/bin/windows/selenium-manager.exe +0 -0
  42. package/chromium.js +1 -1
  43. package/common/seleniumManager.js +2 -2
  44. package/eslint.config.js +2 -1
  45. package/example/chrome_mobile_emulation.js +1 -1
  46. package/firefox.js +7 -104
  47. package/index.js +8 -0
  48. package/lib/atoms/find-elements.js +14 -2
  49. package/package.json +10 -10
  50. package/remote/index.js +12 -3
  51. package/remote/util.js +5 -5
  52. package/testing/index.js +84 -1
@@ -1,16 +1,18 @@
1
1
  import type { BrowserUserContext } from './browser.js';
2
+ import './browser.js';
2
3
  import type { BrowsingContextBrowsingContext } from './browsing_context.js';
4
+ import './browsing_context.js';
3
5
  import type { EmptyResult, JsUint } from './common.js';
4
- export type EmulationCommand = EmulationSetForcedColorsModeThemeOverride | EmulationSetGeolocationOverride | EmulationSetLocaleOverride | EmulationSetMediaFeaturesOverride | EmulationSetNetworkConditions | EmulationSetScreenOrientationOverride | EmulationSetScreenSettingsOverride | EmulationSetScriptingEnabled | EmulationSetScrollbarTypeOverride | EmulationSetTimezoneOverride | EmulationSetTouchOverride | EmulationSetUserAgentOverride | EmulationSetViewportMetaOverride;
5
- export type EmulationResult = EmulationSetForcedColorsModeThemeOverrideResult | EmulationSetGeolocationOverrideResult | EmulationSetLocaleOverrideResult | EmulationSetMediaFeaturesOverrideResult | EmulationSetScreenOrientationOverrideResult | EmulationSetScriptingEnabledResult | EmulationSetScrollbarTypeOverrideResult | EmulationSetTimezoneOverrideResult | EmulationSetTouchOverrideResult | EmulationSetUserAgentOverrideResult | EmulationSetViewportMetaOverrideResult;
6
+ import './common.js';
7
+ import { Domain } from '../domain.js';
6
8
  export interface EmulationSetForcedColorsModeThemeOverride {
7
9
  method: "emulation.setForcedColorsModeThemeOverride";
8
10
  params: EmulationSetForcedColorsModeThemeOverrideParameters;
9
11
  }
10
12
  export interface EmulationSetForcedColorsModeThemeOverrideParameters {
11
13
  theme: EmulationForcedColorsModeTheme | null;
12
- contexts?: BrowsingContextBrowsingContext[];
13
- userContexts?: BrowserUserContext[];
14
+ contexts?: Array<BrowsingContextBrowsingContext>;
15
+ userContexts?: Array<BrowserUserContext>;
14
16
  }
15
17
  export type EmulationForcedColorsModeTheme = "light" | "dark";
16
18
  export type EmulationSetForcedColorsModeThemeOverrideResult = EmptyResult;
@@ -18,36 +20,14 @@ export interface EmulationSetGeolocationOverride {
18
20
  method: "emulation.setGeolocationOverride";
19
21
  params: EmulationSetGeolocationOverrideParameters;
20
22
  }
21
- export type EmulationSetGeolocationOverrideParameters = ({
22
- coordinates: EmulationGeolocationCoordinates | null;
23
- } | {
24
- error: EmulationGeolocationPositionError;
25
- }) & {
26
- contexts?: BrowsingContextBrowsingContext[];
27
- userContexts?: BrowserUserContext[];
28
- };
23
+ export type EmulationSetGeolocationOverrideParameters = EmulationSetGeolocationOverrideParameters_Coordinates | EmulationSetGeolocationOverrideParameters_Error;
29
24
  export interface EmulationGeolocationCoordinates {
30
25
  latitude: number;
31
26
  longitude: number;
32
- /**
33
- * @default 1
34
- */
35
27
  accuracy?: number;
36
- /**
37
- * @default null
38
- */
39
28
  altitude?: number | null;
40
- /**
41
- * @default null
42
- */
43
29
  altitudeAccuracy?: number | null;
44
- /**
45
- * @default null
46
- */
47
30
  heading?: number | null;
48
- /**
49
- * @default null
50
- */
51
31
  speed?: number | null;
52
32
  }
53
33
  export interface EmulationGeolocationPositionError {
@@ -60,8 +40,8 @@ export interface EmulationSetLocaleOverride {
60
40
  }
61
41
  export interface EmulationSetLocaleOverrideParameters {
62
42
  locale: string | null;
63
- contexts?: BrowsingContextBrowsingContext[];
64
- userContexts?: BrowserUserContext[];
43
+ contexts?: Array<BrowsingContextBrowsingContext>;
44
+ userContexts?: Array<BrowserUserContext>;
65
45
  }
66
46
  export type EmulationSetLocaleOverrideResult = EmptyResult;
67
47
  export interface EmulationSetMediaFeaturesOverride {
@@ -70,13 +50,39 @@ export interface EmulationSetMediaFeaturesOverride {
70
50
  }
71
51
  export interface EmulationSetMediaFeaturesOverrideParameters {
72
52
  features: EmulationMediaFeatures | null;
73
- contexts?: BrowsingContextBrowsingContext[];
74
- userContexts?: BrowserUserContext[];
75
- }
76
- export type EmulationMediaFeatures = EmulationMediaFeature[];
77
- export interface EmulationMediaFeature {
78
- name: string;
79
- value: string;
53
+ contexts?: Array<BrowsingContextBrowsingContext>;
54
+ userContexts?: Array<BrowserUserContext>;
55
+ }
56
+ export interface EmulationMediaFeatures {
57
+ anyHover?: EmulationMediaFeaturesAnyHover | null;
58
+ anyPointer?: EmulationMediaFeaturesAnyPointer | null;
59
+ color?: JsUint | null;
60
+ colorGamut?: EmulationMediaFeaturesColorGamut | null;
61
+ colorIndex?: JsUint | null;
62
+ displayMode?: EmulationMediaFeaturesDisplayMode | null;
63
+ dynamicRange?: EmulationMediaFeaturesDynamicRange | null;
64
+ environmentBlending?: EmulationMediaFeaturesEnvironmentBlending | null;
65
+ forcedColors?: EmulationMediaFeaturesForcedColors | null;
66
+ grid?: EmulationMediaFeaturesGrid | null;
67
+ horizontalViewportSegments?: JsUint | null;
68
+ hover?: EmulationMediaFeaturesHover | null;
69
+ invertedColors?: EmulationMediaFeaturesInvertedColors | null;
70
+ monochrome?: JsUint | null;
71
+ navControls?: EmulationMediaFeaturesNavControls | null;
72
+ overflowBlock?: EmulationMediaFeaturesOverflowBlock | null;
73
+ overflowInline?: EmulationMediaFeaturesOverflowInline | null;
74
+ pointer?: EmulationMediaFeaturesPointer | null;
75
+ prefersColorScheme?: EmulationMediaFeaturesPrefersColorScheme | null;
76
+ prefersContrast?: EmulationMediaFeaturesPrefersContrast | null;
77
+ prefersReducedData?: EmulationMediaFeaturesPrefersReducedData | null;
78
+ prefersReducedMotion?: EmulationMediaFeaturesPrefersReducedMotion | null;
79
+ prefersReducedTransparency?: EmulationMediaFeaturesPrefersReducedTransparency | null;
80
+ scan?: EmulationMediaFeaturesScan | null;
81
+ scripting?: EmulationMediaFeaturesScripting | null;
82
+ update?: EmulationMediaFeaturesUpdate | null;
83
+ verticalViewportSegments?: JsUint | null;
84
+ videoColorGamut?: EmulationMediaFeaturesVideoColorGamut | null;
85
+ videoDynamicRange?: EmulationMediaFeaturesVideoDynamicRange | null;
80
86
  }
81
87
  export type EmulationSetMediaFeaturesOverrideResult = EmptyResult;
82
88
  export interface EmulationSetNetworkConditions {
@@ -85,8 +91,8 @@ export interface EmulationSetNetworkConditions {
85
91
  }
86
92
  export interface EmulationSetNetworkConditionsParameters {
87
93
  networkConditions: EmulationNetworkConditions | null;
88
- contexts?: BrowsingContextBrowsingContext[];
89
- userContexts?: BrowserUserContext[];
94
+ contexts?: Array<BrowsingContextBrowsingContext>;
95
+ userContexts?: Array<BrowserUserContext>;
90
96
  }
91
97
  export type EmulationNetworkConditions = EmulationNetworkConditionsOffline;
92
98
  export interface EmulationNetworkConditionsOffline {
@@ -103,8 +109,8 @@ export interface EmulationScreenArea {
103
109
  }
104
110
  export interface EmulationSetScreenSettingsOverrideParameters {
105
111
  screenArea: EmulationScreenArea | null;
106
- contexts?: BrowsingContextBrowsingContext[];
107
- userContexts?: BrowserUserContext[];
112
+ contexts?: Array<BrowsingContextBrowsingContext>;
113
+ userContexts?: Array<BrowserUserContext>;
108
114
  }
109
115
  export type EmulationSetScreenSettingsOverrideResult = EmptyResult;
110
116
  export interface EmulationSetScreenOrientationOverride {
@@ -119,8 +125,8 @@ export interface EmulationScreenOrientation {
119
125
  }
120
126
  export interface EmulationSetScreenOrientationOverrideParameters {
121
127
  screenOrientation: EmulationScreenOrientation | null;
122
- contexts?: BrowsingContextBrowsingContext[];
123
- userContexts?: BrowserUserContext[];
128
+ contexts?: Array<BrowsingContextBrowsingContext>;
129
+ userContexts?: Array<BrowserUserContext>;
124
130
  }
125
131
  export type EmulationSetScreenOrientationOverrideResult = EmptyResult;
126
132
  export interface EmulationSetUserAgentOverride {
@@ -129,8 +135,8 @@ export interface EmulationSetUserAgentOverride {
129
135
  }
130
136
  export interface EmulationSetUserAgentOverrideParameters {
131
137
  userAgent: string | null;
132
- contexts?: BrowsingContextBrowsingContext[];
133
- userContexts?: BrowserUserContext[];
138
+ contexts?: Array<BrowsingContextBrowsingContext>;
139
+ userContexts?: Array<BrowserUserContext>;
134
140
  }
135
141
  export type EmulationSetUserAgentOverrideResult = EmptyResult;
136
142
  export interface EmulationSetViewportMetaOverride {
@@ -139,8 +145,8 @@ export interface EmulationSetViewportMetaOverride {
139
145
  }
140
146
  export interface EmulationSetViewportMetaOverrideParameters {
141
147
  viewportMeta: true | null;
142
- contexts?: BrowsingContextBrowsingContext[];
143
- userContexts?: BrowserUserContext[];
148
+ contexts?: Array<BrowsingContextBrowsingContext>;
149
+ userContexts?: Array<BrowserUserContext>;
144
150
  }
145
151
  export type EmulationSetViewportMetaOverrideResult = EmptyResult;
146
152
  export interface EmulationSetScriptingEnabled {
@@ -149,8 +155,8 @@ export interface EmulationSetScriptingEnabled {
149
155
  }
150
156
  export interface EmulationSetScriptingEnabledParameters {
151
157
  enabled: false | null;
152
- contexts?: BrowsingContextBrowsingContext[];
153
- userContexts?: BrowserUserContext[];
158
+ contexts?: Array<BrowsingContextBrowsingContext>;
159
+ userContexts?: Array<BrowserUserContext>;
154
160
  }
155
161
  export type EmulationSetScriptingEnabledResult = EmptyResult;
156
162
  export interface EmulationSetScrollbarTypeOverride {
@@ -158,19 +164,30 @@ export interface EmulationSetScrollbarTypeOverride {
158
164
  params: EmulationSetScrollbarTypeOverrideParameters;
159
165
  }
160
166
  export interface EmulationSetScrollbarTypeOverrideParameters {
161
- scrollbarType: "classic" | "overlay" | null;
162
- contexts?: BrowsingContextBrowsingContext[];
163
- userContexts?: BrowserUserContext[];
167
+ scrollbarType: EmulationSetScrollbarTypeOverrideParametersScrollbarType | null;
168
+ contexts?: Array<BrowsingContextBrowsingContext>;
169
+ userContexts?: Array<BrowserUserContext>;
164
170
  }
165
171
  export type EmulationSetScrollbarTypeOverrideResult = EmptyResult;
172
+ export interface EmulationSetTextLayoutModeOverride {
173
+ method: "emulation.setTextLayoutModeOverride";
174
+ params: EmulationSetTextLayoutModeOverrideParameters;
175
+ }
176
+ export interface EmulationSetTextLayoutModeOverrideParameters {
177
+ textLayoutMode: EmulationTextLayoutMode | null;
178
+ contexts?: Array<BrowsingContextBrowsingContext>;
179
+ userContexts?: Array<BrowserUserContext>;
180
+ }
181
+ export type EmulationTextLayoutMode = "mobile";
182
+ export type EmulationSetTextLayoutModeOverrideResult = EmptyResult;
166
183
  export interface EmulationSetTimezoneOverride {
167
184
  method: "emulation.setTimezoneOverride";
168
185
  params: EmulationSetTimezoneOverrideParameters;
169
186
  }
170
187
  export interface EmulationSetTimezoneOverrideParameters {
171
188
  timezone: string | null;
172
- contexts?: BrowsingContextBrowsingContext[];
173
- userContexts?: BrowserUserContext[];
189
+ contexts?: Array<BrowsingContextBrowsingContext>;
190
+ userContexts?: Array<BrowserUserContext>;
174
191
  }
175
192
  export type EmulationSetTimezoneOverrideResult = EmptyResult;
176
193
  export interface EmulationSetTouchOverride {
@@ -179,25 +196,304 @@ export interface EmulationSetTouchOverride {
179
196
  }
180
197
  export interface EmulationSetTouchOverrideParameters {
181
198
  maxTouchPoints: JsUint | null;
182
- contexts?: BrowsingContextBrowsingContext[];
183
- userContexts?: BrowserUserContext[];
199
+ contexts?: Array<BrowsingContextBrowsingContext>;
200
+ userContexts?: Array<BrowserUserContext>;
184
201
  }
185
202
  export type EmulationSetTouchOverrideResult = EmptyResult;
186
- export declare class Emulation {
187
- private readonly bidi;
188
- private constructor();
203
+ export type EmulationMediaFeaturesAnyHover = "none" | "hover";
204
+ export type EmulationMediaFeaturesAnyPointer = "none" | "coarse" | "fine";
205
+ export type EmulationMediaFeaturesColorGamut = "srgb" | "p3" | "rec2020";
206
+ export type EmulationMediaFeaturesDisplayMode = "fullscreen" | "standalone" | "minimal-ui" | "browser" | "picture-in-picture";
207
+ export type EmulationMediaFeaturesDynamicRange = "standard" | "high";
208
+ export type EmulationMediaFeaturesEnvironmentBlending = "opaque" | "additive" | "subtractive";
209
+ export type EmulationMediaFeaturesForcedColors = "none" | "active";
210
+ export type EmulationMediaFeaturesGrid = 0 | 1;
211
+ export type EmulationMediaFeaturesHover = "none" | "hover";
212
+ export type EmulationMediaFeaturesInvertedColors = "none" | "inverted";
213
+ export type EmulationMediaFeaturesNavControls = "none" | "back";
214
+ export type EmulationMediaFeaturesOverflowBlock = "none" | "scroll" | "optional-paged" | "paged";
215
+ export type EmulationMediaFeaturesOverflowInline = "none" | "scroll";
216
+ export type EmulationMediaFeaturesPointer = "none" | "coarse" | "fine";
217
+ export type EmulationMediaFeaturesPrefersColorScheme = "light" | "dark";
218
+ export type EmulationMediaFeaturesPrefersContrast = "no-preference" | "more" | "less" | "custom";
219
+ export type EmulationMediaFeaturesPrefersReducedData = "no-preference" | "reduce";
220
+ export type EmulationMediaFeaturesPrefersReducedMotion = "no-preference" | "reduce";
221
+ export type EmulationMediaFeaturesPrefersReducedTransparency = "no-preference" | "reduce";
222
+ export type EmulationMediaFeaturesScan = "interlace" | "progressive";
223
+ export type EmulationMediaFeaturesScripting = "none" | "initial-only" | "enabled";
224
+ export type EmulationMediaFeaturesUpdate = "none" | "slow" | "fast";
225
+ export type EmulationMediaFeaturesVideoColorGamut = "srgb" | "p3" | "rec2020";
226
+ export type EmulationMediaFeaturesVideoDynamicRange = "standard" | "high";
227
+ export type EmulationSetScrollbarTypeOverrideParametersScrollbarType = "classic" | "overlay";
228
+ export interface EmulationSetGeolocationOverrideParameters_Coordinates {
229
+ contexts?: Array<BrowsingContextBrowsingContext>;
230
+ userContexts?: Array<BrowserUserContext>;
231
+ coordinates: EmulationGeolocationCoordinates | null;
232
+ }
233
+ export interface EmulationSetGeolocationOverrideParameters_Error {
234
+ contexts?: Array<BrowsingContextBrowsingContext>;
235
+ userContexts?: Array<BrowserUserContext>;
236
+ error: EmulationGeolocationPositionError;
237
+ }
238
+ /**
239
+ * This is an unsupported API. No compatibility guarantees are provided.
240
+ * It tracks the W3C WebDriver BiDi specification directly. As the specification
241
+ * evolves, this API will change or be removed without prior notice.
242
+ */
243
+ export declare class Emulation extends Domain {
244
+ static readonly ForcedColorsModeTheme: Readonly<{
245
+ readonly LIGHT: "light";
246
+ readonly DARK: "dark";
247
+ }>;
248
+ static readonly ScreenOrientationNatural: Readonly<{
249
+ readonly PORTRAIT: "portrait";
250
+ readonly LANDSCAPE: "landscape";
251
+ }>;
252
+ static readonly ScreenOrientationType: Readonly<{
253
+ readonly PORTRAIT_PRIMARY: "portrait-primary";
254
+ readonly PORTRAIT_SECONDARY: "portrait-secondary";
255
+ readonly LANDSCAPE_PRIMARY: "landscape-primary";
256
+ readonly LANDSCAPE_SECONDARY: "landscape-secondary";
257
+ }>;
258
+ static readonly TextLayoutMode: Readonly<{
259
+ readonly MOBILE: "mobile";
260
+ }>;
261
+ static readonly MediaFeaturesAnyHover: Readonly<{
262
+ readonly NONE: "none";
263
+ readonly HOVER: "hover";
264
+ }>;
265
+ static readonly MediaFeaturesAnyPointer: Readonly<{
266
+ readonly NONE: "none";
267
+ readonly COARSE: "coarse";
268
+ readonly FINE: "fine";
269
+ }>;
270
+ static readonly MediaFeaturesColorGamut: Readonly<{
271
+ readonly SRGB: "srgb";
272
+ readonly P3: "p3";
273
+ readonly REC2020: "rec2020";
274
+ }>;
275
+ static readonly MediaFeaturesDisplayMode: Readonly<{
276
+ readonly FULLSCREEN: "fullscreen";
277
+ readonly STANDALONE: "standalone";
278
+ readonly MINIMAL_UI: "minimal-ui";
279
+ readonly BROWSER: "browser";
280
+ readonly PICTURE_IN_PICTURE: "picture-in-picture";
281
+ }>;
282
+ static readonly MediaFeaturesDynamicRange: Readonly<{
283
+ readonly STANDARD: "standard";
284
+ readonly HIGH: "high";
285
+ }>;
286
+ static readonly MediaFeaturesEnvironmentBlending: Readonly<{
287
+ readonly OPAQUE: "opaque";
288
+ readonly ADDITIVE: "additive";
289
+ readonly SUBTRACTIVE: "subtractive";
290
+ }>;
291
+ static readonly MediaFeaturesForcedColors: Readonly<{
292
+ readonly NONE: "none";
293
+ readonly ACTIVE: "active";
294
+ }>;
295
+ static readonly MediaFeaturesGrid: Readonly<{
296
+ readonly _0: 0;
297
+ readonly _1: 1;
298
+ }>;
299
+ static readonly MediaFeaturesHover: Readonly<{
300
+ readonly NONE: "none";
301
+ readonly HOVER: "hover";
302
+ }>;
303
+ static readonly MediaFeaturesInvertedColors: Readonly<{
304
+ readonly NONE: "none";
305
+ readonly INVERTED: "inverted";
306
+ }>;
307
+ static readonly MediaFeaturesNavControls: Readonly<{
308
+ readonly NONE: "none";
309
+ readonly BACK: "back";
310
+ }>;
311
+ static readonly MediaFeaturesOverflowBlock: Readonly<{
312
+ readonly NONE: "none";
313
+ readonly SCROLL: "scroll";
314
+ readonly OPTIONAL_PAGED: "optional-paged";
315
+ readonly PAGED: "paged";
316
+ }>;
317
+ static readonly MediaFeaturesOverflowInline: Readonly<{
318
+ readonly NONE: "none";
319
+ readonly SCROLL: "scroll";
320
+ }>;
321
+ static readonly MediaFeaturesPointer: Readonly<{
322
+ readonly NONE: "none";
323
+ readonly COARSE: "coarse";
324
+ readonly FINE: "fine";
325
+ }>;
326
+ static readonly MediaFeaturesPrefersColorScheme: Readonly<{
327
+ readonly LIGHT: "light";
328
+ readonly DARK: "dark";
329
+ }>;
330
+ static readonly MediaFeaturesPrefersContrast: Readonly<{
331
+ readonly NO_PREFERENCE: "no-preference";
332
+ readonly MORE: "more";
333
+ readonly LESS: "less";
334
+ readonly CUSTOM: "custom";
335
+ }>;
336
+ static readonly MediaFeaturesPrefersReducedData: Readonly<{
337
+ readonly NO_PREFERENCE: "no-preference";
338
+ readonly REDUCE: "reduce";
339
+ }>;
340
+ static readonly MediaFeaturesPrefersReducedMotion: Readonly<{
341
+ readonly NO_PREFERENCE: "no-preference";
342
+ readonly REDUCE: "reduce";
343
+ }>;
344
+ static readonly MediaFeaturesPrefersReducedTransparency: Readonly<{
345
+ readonly NO_PREFERENCE: "no-preference";
346
+ readonly REDUCE: "reduce";
347
+ }>;
348
+ static readonly MediaFeaturesScan: Readonly<{
349
+ readonly INTERLACE: "interlace";
350
+ readonly PROGRESSIVE: "progressive";
351
+ }>;
352
+ static readonly MediaFeaturesScripting: Readonly<{
353
+ readonly NONE: "none";
354
+ readonly INITIAL_ONLY: "initial-only";
355
+ readonly ENABLED: "enabled";
356
+ }>;
357
+ static readonly MediaFeaturesUpdate: Readonly<{
358
+ readonly NONE: "none";
359
+ readonly SLOW: "slow";
360
+ readonly FAST: "fast";
361
+ }>;
362
+ static readonly MediaFeaturesVideoColorGamut: Readonly<{
363
+ readonly SRGB: "srgb";
364
+ readonly P3: "p3";
365
+ readonly REC2020: "rec2020";
366
+ }>;
367
+ static readonly MediaFeaturesVideoDynamicRange: Readonly<{
368
+ readonly STANDARD: "standard";
369
+ readonly HIGH: "high";
370
+ }>;
371
+ static readonly SetScrollbarTypeOverrideParametersScrollbarType: Readonly<{
372
+ readonly CLASSIC: "classic";
373
+ readonly OVERLAY: "overlay";
374
+ }>;
189
375
  static create(driver: unknown): Promise<Emulation>;
376
+ /**
377
+ * @param {EmulationSetForcedColorsModeThemeOverrideParameters} params
378
+ * @param {EmulationForcedColorsModeTheme | null} params.theme
379
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
380
+ * @param {Array<BrowserUserContext>} [params.userContexts]
381
+ * @returns {Promise<void>}
382
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setForcedColorsModeThemeOverride
383
+ */
190
384
  setForcedColorsModeThemeOverride(params: EmulationSetForcedColorsModeThemeOverrideParameters): Promise<void>;
385
+ /**
386
+ * @param {EmulationSetGeolocationOverrideParameters} params
387
+ * @returns {Promise<void>}
388
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setGeolocationOverride
389
+ */
191
390
  setGeolocationOverride(params: EmulationSetGeolocationOverrideParameters): Promise<void>;
391
+ /**
392
+ * @param {EmulationSetLocaleOverrideParameters} params
393
+ * @param {string | null} params.locale
394
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
395
+ * @param {Array<BrowserUserContext>} [params.userContexts]
396
+ * @returns {Promise<void>}
397
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setLocaleOverride
398
+ */
192
399
  setLocaleOverride(params: EmulationSetLocaleOverrideParameters): Promise<void>;
400
+ /**
401
+ * @param {EmulationSetMediaFeaturesOverrideParameters} params
402
+ * @param {EmulationMediaFeatures | null} params.features
403
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
404
+ * @param {Array<BrowserUserContext>} [params.userContexts]
405
+ * @returns {Promise<void>}
406
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setMediaFeaturesOverride
407
+ */
193
408
  setMediaFeaturesOverride(params: EmulationSetMediaFeaturesOverrideParameters): Promise<void>;
409
+ /**
410
+ * @param {EmulationSetNetworkConditionsParameters} params
411
+ * @param {EmulationNetworkConditions | null} params.networkConditions
412
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
413
+ * @param {Array<BrowserUserContext>} [params.userContexts]
414
+ * @returns {Promise<void>}
415
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setNetworkConditions
416
+ */
194
417
  setNetworkConditions(params: EmulationSetNetworkConditionsParameters): Promise<void>;
418
+ /**
419
+ * @param {EmulationSetScreenOrientationOverrideParameters} params
420
+ * @param {EmulationScreenOrientation | null} params.screenOrientation
421
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
422
+ * @param {Array<BrowserUserContext>} [params.userContexts]
423
+ * @returns {Promise<void>}
424
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setScreenOrientationOverride
425
+ */
195
426
  setScreenOrientationOverride(params: EmulationSetScreenOrientationOverrideParameters): Promise<void>;
427
+ /**
428
+ * @param {EmulationSetScreenSettingsOverrideParameters} params
429
+ * @param {EmulationScreenArea | null} params.screenArea
430
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
431
+ * @param {Array<BrowserUserContext>} [params.userContexts]
432
+ * @returns {Promise<void>}
433
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setScreenSettingsOverride
434
+ */
196
435
  setScreenSettingsOverride(params: EmulationSetScreenSettingsOverrideParameters): Promise<void>;
436
+ /**
437
+ * @param {EmulationSetScriptingEnabledParameters} params
438
+ * @param {false | null} params.enabled
439
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
440
+ * @param {Array<BrowserUserContext>} [params.userContexts]
441
+ * @returns {Promise<void>}
442
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setScriptingEnabled
443
+ */
197
444
  setScriptingEnabled(params: EmulationSetScriptingEnabledParameters): Promise<void>;
445
+ /**
446
+ * @param {EmulationSetScrollbarTypeOverrideParameters} params
447
+ * @param {EmulationSetScrollbarTypeOverrideParametersScrollbarType | null} params.scrollbarType
448
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
449
+ * @param {Array<BrowserUserContext>} [params.userContexts]
450
+ * @returns {Promise<void>}
451
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setScrollbarTypeOverride
452
+ */
198
453
  setScrollbarTypeOverride(params: EmulationSetScrollbarTypeOverrideParameters): Promise<void>;
454
+ /**
455
+ * @param {EmulationSetTextLayoutModeOverrideParameters} params
456
+ * @param {EmulationTextLayoutMode | null} params.textLayoutMode
457
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
458
+ * @param {Array<BrowserUserContext>} [params.userContexts]
459
+ * @returns {Promise<void>}
460
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setTextLayoutModeOverride
461
+ */
462
+ setTextLayoutModeOverride(params: EmulationSetTextLayoutModeOverrideParameters): Promise<void>;
463
+ /**
464
+ * @param {EmulationSetTimezoneOverrideParameters} params
465
+ * @param {string | null} params.timezone
466
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
467
+ * @param {Array<BrowserUserContext>} [params.userContexts]
468
+ * @returns {Promise<void>}
469
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setTimezoneOverride
470
+ */
199
471
  setTimezoneOverride(params: EmulationSetTimezoneOverrideParameters): Promise<void>;
472
+ /**
473
+ * @param {EmulationSetTouchOverrideParameters} params
474
+ * @param {JsUint | null} params.maxTouchPoints
475
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
476
+ * @param {Array<BrowserUserContext>} [params.userContexts]
477
+ * @returns {Promise<void>}
478
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setTouchOverride
479
+ */
200
480
  setTouchOverride(params: EmulationSetTouchOverrideParameters): Promise<void>;
481
+ /**
482
+ * @param {EmulationSetUserAgentOverrideParameters} params
483
+ * @param {string | null} params.userAgent
484
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
485
+ * @param {Array<BrowserUserContext>} [params.userContexts]
486
+ * @returns {Promise<void>}
487
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setUserAgentOverride
488
+ */
201
489
  setUserAgentOverride(params: EmulationSetUserAgentOverrideParameters): Promise<void>;
490
+ /**
491
+ * @param {EmulationSetViewportMetaOverrideParameters} params
492
+ * @param {true | null} params.viewportMeta
493
+ * @param {Array<BrowsingContextBrowsingContext>} [params.contexts]
494
+ * @param {Array<BrowserUserContext>} [params.userContexts]
495
+ * @returns {Promise<void>}
496
+ * @see https://w3c.github.io/webdriver-bidi/#command-emulation-setViewportMetaOverride
497
+ */
202
498
  setViewportMetaOverride(params: EmulationSetViewportMetaOverrideParameters): Promise<void>;
203
499
  }