selenium-webdriver 4.49.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 (49) hide show
  1. package/CHANGES.md +16 -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 +269 -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 +347 -77
  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-x86_64/selenium-manager +0 -0
  38. package/bin/macos/selenium-manager +0 -0
  39. package/bin/selenium-manager-THIRD-PARTY-NOTICES.txt +74 -43
  40. package/bin/selenium-manager.cdx.json +421 -421
  41. package/bin/windows/selenium-manager.exe +0 -0
  42. package/eslint.config.js +2 -1
  43. package/firefox.js +7 -104
  44. package/index.js +8 -0
  45. package/lib/atoms/find-elements.js +14 -2
  46. package/package.json +9 -9
  47. package/remote/index.js +12 -3
  48. package/remote/util.js +5 -5
  49. 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,39 +50,39 @@ export interface EmulationSetMediaFeaturesOverride {
70
50
  }
71
51
  export interface EmulationSetMediaFeaturesOverrideParameters {
72
52
  features: EmulationMediaFeatures | null;
73
- contexts?: BrowsingContextBrowsingContext[];
74
- userContexts?: BrowserUserContext[];
53
+ contexts?: Array<BrowsingContextBrowsingContext>;
54
+ userContexts?: Array<BrowserUserContext>;
75
55
  }
76
56
  export interface EmulationMediaFeatures {
77
- anyHover?: "none" | "hover" | null;
78
- anyPointer?: "none" | "coarse" | "fine" | null;
57
+ anyHover?: EmulationMediaFeaturesAnyHover | null;
58
+ anyPointer?: EmulationMediaFeaturesAnyPointer | null;
79
59
  color?: JsUint | null;
80
- colorGamut?: "srgb" | "p3" | "rec2020" | null;
60
+ colorGamut?: EmulationMediaFeaturesColorGamut | null;
81
61
  colorIndex?: JsUint | null;
82
- displayMode?: "fullscreen" | "standalone" | "minimal-ui" | "browser" | "picture-in-picture" | null;
83
- dynamicRange?: "standard" | "high" | null;
84
- environmentBlending?: "opaque" | "additive" | "subtractive" | null;
85
- forcedColors?: "none" | "active" | null;
86
- grid?: 0 | 1 | null;
62
+ displayMode?: EmulationMediaFeaturesDisplayMode | null;
63
+ dynamicRange?: EmulationMediaFeaturesDynamicRange | null;
64
+ environmentBlending?: EmulationMediaFeaturesEnvironmentBlending | null;
65
+ forcedColors?: EmulationMediaFeaturesForcedColors | null;
66
+ grid?: EmulationMediaFeaturesGrid | null;
87
67
  horizontalViewportSegments?: JsUint | null;
88
- hover?: "none" | "hover" | null;
89
- invertedColors?: "none" | "inverted" | null;
68
+ hover?: EmulationMediaFeaturesHover | null;
69
+ invertedColors?: EmulationMediaFeaturesInvertedColors | null;
90
70
  monochrome?: JsUint | null;
91
- navControls?: "none" | "back" | null;
92
- overflowBlock?: "none" | "scroll" | "optional-paged" | "paged" | null;
93
- overflowInline?: "none" | "scroll" | null;
94
- pointer?: "none" | "coarse" | "fine" | null;
95
- prefersColorScheme?: "light" | "dark" | null;
96
- prefersContrast?: "no-preference" | "more" | "less" | "custom" | null;
97
- prefersReducedData?: "no-preference" | "reduce" | null;
98
- prefersReducedMotion?: "no-preference" | "reduce" | null;
99
- prefersReducedTransparency?: "no-preference" | "reduce" | null;
100
- scan?: "interlace" | "progressive" | null;
101
- scripting?: "none" | "initial-only" | "enabled" | null;
102
- update?: "none" | "slow" | "fast" | 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;
103
83
  verticalViewportSegments?: JsUint | null;
104
- videoColorGamut?: "srgb" | "p3" | "rec2020" | null;
105
- videoDynamicRange?: "standard" | "high" | null;
84
+ videoColorGamut?: EmulationMediaFeaturesVideoColorGamut | null;
85
+ videoDynamicRange?: EmulationMediaFeaturesVideoDynamicRange | null;
106
86
  }
107
87
  export type EmulationSetMediaFeaturesOverrideResult = EmptyResult;
108
88
  export interface EmulationSetNetworkConditions {
@@ -111,8 +91,8 @@ export interface EmulationSetNetworkConditions {
111
91
  }
112
92
  export interface EmulationSetNetworkConditionsParameters {
113
93
  networkConditions: EmulationNetworkConditions | null;
114
- contexts?: BrowsingContextBrowsingContext[];
115
- userContexts?: BrowserUserContext[];
94
+ contexts?: Array<BrowsingContextBrowsingContext>;
95
+ userContexts?: Array<BrowserUserContext>;
116
96
  }
117
97
  export type EmulationNetworkConditions = EmulationNetworkConditionsOffline;
118
98
  export interface EmulationNetworkConditionsOffline {
@@ -129,8 +109,8 @@ export interface EmulationScreenArea {
129
109
  }
130
110
  export interface EmulationSetScreenSettingsOverrideParameters {
131
111
  screenArea: EmulationScreenArea | null;
132
- contexts?: BrowsingContextBrowsingContext[];
133
- userContexts?: BrowserUserContext[];
112
+ contexts?: Array<BrowsingContextBrowsingContext>;
113
+ userContexts?: Array<BrowserUserContext>;
134
114
  }
135
115
  export type EmulationSetScreenSettingsOverrideResult = EmptyResult;
136
116
  export interface EmulationSetScreenOrientationOverride {
@@ -145,8 +125,8 @@ export interface EmulationScreenOrientation {
145
125
  }
146
126
  export interface EmulationSetScreenOrientationOverrideParameters {
147
127
  screenOrientation: EmulationScreenOrientation | null;
148
- contexts?: BrowsingContextBrowsingContext[];
149
- userContexts?: BrowserUserContext[];
128
+ contexts?: Array<BrowsingContextBrowsingContext>;
129
+ userContexts?: Array<BrowserUserContext>;
150
130
  }
151
131
  export type EmulationSetScreenOrientationOverrideResult = EmptyResult;
152
132
  export interface EmulationSetUserAgentOverride {
@@ -155,8 +135,8 @@ export interface EmulationSetUserAgentOverride {
155
135
  }
156
136
  export interface EmulationSetUserAgentOverrideParameters {
157
137
  userAgent: string | null;
158
- contexts?: BrowsingContextBrowsingContext[];
159
- userContexts?: BrowserUserContext[];
138
+ contexts?: Array<BrowsingContextBrowsingContext>;
139
+ userContexts?: Array<BrowserUserContext>;
160
140
  }
161
141
  export type EmulationSetUserAgentOverrideResult = EmptyResult;
162
142
  export interface EmulationSetViewportMetaOverride {
@@ -165,8 +145,8 @@ export interface EmulationSetViewportMetaOverride {
165
145
  }
166
146
  export interface EmulationSetViewportMetaOverrideParameters {
167
147
  viewportMeta: true | null;
168
- contexts?: BrowsingContextBrowsingContext[];
169
- userContexts?: BrowserUserContext[];
148
+ contexts?: Array<BrowsingContextBrowsingContext>;
149
+ userContexts?: Array<BrowserUserContext>;
170
150
  }
171
151
  export type EmulationSetViewportMetaOverrideResult = EmptyResult;
172
152
  export interface EmulationSetScriptingEnabled {
@@ -175,8 +155,8 @@ export interface EmulationSetScriptingEnabled {
175
155
  }
176
156
  export interface EmulationSetScriptingEnabledParameters {
177
157
  enabled: false | null;
178
- contexts?: BrowsingContextBrowsingContext[];
179
- userContexts?: BrowserUserContext[];
158
+ contexts?: Array<BrowsingContextBrowsingContext>;
159
+ userContexts?: Array<BrowserUserContext>;
180
160
  }
181
161
  export type EmulationSetScriptingEnabledResult = EmptyResult;
182
162
  export interface EmulationSetScrollbarTypeOverride {
@@ -184,19 +164,30 @@ export interface EmulationSetScrollbarTypeOverride {
184
164
  params: EmulationSetScrollbarTypeOverrideParameters;
185
165
  }
186
166
  export interface EmulationSetScrollbarTypeOverrideParameters {
187
- scrollbarType: "classic" | "overlay" | null;
188
- contexts?: BrowsingContextBrowsingContext[];
189
- userContexts?: BrowserUserContext[];
167
+ scrollbarType: EmulationSetScrollbarTypeOverrideParametersScrollbarType | null;
168
+ contexts?: Array<BrowsingContextBrowsingContext>;
169
+ userContexts?: Array<BrowserUserContext>;
190
170
  }
191
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;
192
183
  export interface EmulationSetTimezoneOverride {
193
184
  method: "emulation.setTimezoneOverride";
194
185
  params: EmulationSetTimezoneOverrideParameters;
195
186
  }
196
187
  export interface EmulationSetTimezoneOverrideParameters {
197
188
  timezone: string | null;
198
- contexts?: BrowsingContextBrowsingContext[];
199
- userContexts?: BrowserUserContext[];
189
+ contexts?: Array<BrowsingContextBrowsingContext>;
190
+ userContexts?: Array<BrowserUserContext>;
200
191
  }
201
192
  export type EmulationSetTimezoneOverrideResult = EmptyResult;
202
193
  export interface EmulationSetTouchOverride {
@@ -205,25 +196,304 @@ export interface EmulationSetTouchOverride {
205
196
  }
206
197
  export interface EmulationSetTouchOverrideParameters {
207
198
  maxTouchPoints: JsUint | null;
208
- contexts?: BrowsingContextBrowsingContext[];
209
- userContexts?: BrowserUserContext[];
199
+ contexts?: Array<BrowsingContextBrowsingContext>;
200
+ userContexts?: Array<BrowserUserContext>;
210
201
  }
211
202
  export type EmulationSetTouchOverrideResult = EmptyResult;
212
- export declare class Emulation {
213
- private readonly bidi;
214
- 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
+ }>;
215
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
+ */
216
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
+ */
217
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
+ */
218
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
+ */
219
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
+ */
220
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
+ */
221
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
+ */
222
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
+ */
223
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
+ */
224
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
+ */
225
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
+ */
226
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
+ */
227
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
+ */
228
498
  setViewportMetaOverride(params: EmulationSetViewportMetaOverrideParameters): Promise<void>;
229
499
  }