@wdio/protocols 8.1.0 → 8.3.5

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.
@@ -7,7 +7,7 @@ export default interface WebdriverCommands {
7
7
  * @ref https://w3c.github.io/webdriver/#dfn-new-sessions
8
8
  *
9
9
  */
10
- newSession(capabilities: object): SessionReturn;
10
+ newSession(capabilities: object): Promise<SessionReturn>;
11
11
  /**
12
12
  * Webdriver Protocol Command
13
13
  *
@@ -15,7 +15,7 @@ export default interface WebdriverCommands {
15
15
  * @ref https://w3c.github.io/webdriver/#dfn-delete-session
16
16
  *
17
17
  */
18
- deleteSession(): void;
18
+ deleteSession(): Promise<void>;
19
19
  /**
20
20
  * Webdriver Protocol Command
21
21
  *
@@ -23,7 +23,7 @@ export default interface WebdriverCommands {
23
23
  * @ref https://w3c.github.io/webdriver/#dfn-status
24
24
  *
25
25
  */
26
- status(): StatusReturn;
26
+ status(): Promise<StatusReturn>;
27
27
  /**
28
28
  * Webdriver Protocol Command
29
29
  *
@@ -31,7 +31,7 @@ export default interface WebdriverCommands {
31
31
  * @ref https://w3c.github.io/webdriver/#dfn-get-timeouts
32
32
  *
33
33
  */
34
- getTimeouts(): Timeouts;
34
+ getTimeouts(): Promise<Timeouts>;
35
35
  /**
36
36
  * Webdriver Protocol Command
37
37
  *
@@ -39,7 +39,7 @@ export default interface WebdriverCommands {
39
39
  * @ref https://w3c.github.io/webdriver/#dfn-set-timeouts
40
40
  *
41
41
  */
42
- setTimeouts(implicit?: number, pageLoad?: number, script?: number): void;
42
+ setTimeouts(implicit?: number, pageLoad?: number, script?: number): Promise<void>;
43
43
  /**
44
44
  * Webdriver Protocol Command
45
45
  *
@@ -47,7 +47,7 @@ export default interface WebdriverCommands {
47
47
  * @ref https://w3c.github.io/webdriver/#dfn-get-current-url
48
48
  *
49
49
  */
50
- getUrl(): string;
50
+ getUrl(): Promise<string>;
51
51
  /**
52
52
  * Webdriver Protocol Command
53
53
  *
@@ -55,7 +55,7 @@ export default interface WebdriverCommands {
55
55
  * @ref https://w3c.github.io/webdriver/#dfn-navigate-to
56
56
  *
57
57
  */
58
- navigateTo(url: string): string;
58
+ navigateTo(url: string): Promise<string>;
59
59
  /**
60
60
  * Webdriver Protocol Command
61
61
  *
@@ -63,7 +63,7 @@ export default interface WebdriverCommands {
63
63
  * @ref https://w3c.github.io/webdriver/#dfn-back
64
64
  *
65
65
  */
66
- back(): void;
66
+ back(): Promise<void>;
67
67
  /**
68
68
  * Webdriver Protocol Command
69
69
  *
@@ -71,7 +71,7 @@ export default interface WebdriverCommands {
71
71
  * @ref https://w3c.github.io/webdriver/#dfn-forward
72
72
  *
73
73
  */
74
- forward(): void;
74
+ forward(): Promise<void>;
75
75
  /**
76
76
  * Webdriver Protocol Command
77
77
  *
@@ -79,7 +79,7 @@ export default interface WebdriverCommands {
79
79
  * @ref https://w3c.github.io/webdriver/#dfn-refresh
80
80
  *
81
81
  */
82
- refresh(): void;
82
+ refresh(): Promise<void>;
83
83
  /**
84
84
  * Webdriver Protocol Command
85
85
  *
@@ -87,7 +87,7 @@ export default interface WebdriverCommands {
87
87
  * @ref https://w3c.github.io/webdriver/#dfn-get-title
88
88
  *
89
89
  */
90
- getTitle(): string;
90
+ getTitle(): Promise<string>;
91
91
  /**
92
92
  * Webdriver Protocol Command
93
93
  *
@@ -95,7 +95,7 @@ export default interface WebdriverCommands {
95
95
  * @ref https://w3c.github.io/webdriver/#dfn-get-window-handle
96
96
  *
97
97
  */
98
- getWindowHandle(): string;
98
+ getWindowHandle(): Promise<string>;
99
99
  /**
100
100
  * Webdriver Protocol Command
101
101
  *
@@ -103,7 +103,7 @@ export default interface WebdriverCommands {
103
103
  * @ref https://w3c.github.io/webdriver/#dfn-close-window
104
104
  *
105
105
  */
106
- closeWindow(): void;
106
+ closeWindow(): Promise<void>;
107
107
  /**
108
108
  * Webdriver Protocol Command
109
109
  *
@@ -111,7 +111,7 @@ export default interface WebdriverCommands {
111
111
  * @ref https://w3c.github.io/webdriver/#dfn-switch-to-window
112
112
  *
113
113
  */
114
- switchToWindow(handle: string): void;
114
+ switchToWindow(handle: string): Promise<void>;
115
115
  /**
116
116
  * Webdriver Protocol Command
117
117
  *
@@ -119,7 +119,7 @@ export default interface WebdriverCommands {
119
119
  * @ref https://w3c.github.io/webdriver/#new-window
120
120
  *
121
121
  */
122
- createWindow(type: 'tab' | 'window'): WindowHandle;
122
+ createWindow(type: 'tab' | 'window'): Promise<WindowHandle>;
123
123
  /**
124
124
  * Webdriver Protocol Command
125
125
  *
@@ -127,7 +127,7 @@ export default interface WebdriverCommands {
127
127
  * @ref https://w3c.github.io/webdriver/#dfn-get-window-handles
128
128
  *
129
129
  */
130
- getWindowHandles(): string[];
130
+ getWindowHandles(): Promise<string[]>;
131
131
  /**
132
132
  * Webdriver Protocol Command
133
133
  *
@@ -135,7 +135,7 @@ export default interface WebdriverCommands {
135
135
  * @ref https://w3c.github.io/webdriver/#print-page
136
136
  *
137
137
  */
138
- printPage(orientation?: string, scale?: number, background?: boolean, width?: number, height?: number, top?: number, bottom?: number, left?: number, right?: number, shrinkToFit?: boolean, pageRanges?: object[]): string;
138
+ printPage(orientation?: string, scale?: number, background?: boolean, width?: number, height?: number, top?: number, bottom?: number, left?: number, right?: number, shrinkToFit?: boolean, pageRanges?: object[]): Promise<string>;
139
139
  /**
140
140
  * Webdriver Protocol Command
141
141
  *
@@ -143,7 +143,7 @@ export default interface WebdriverCommands {
143
143
  * @ref https://w3c.github.io/webdriver/#dfn-switch-to-frame
144
144
  *
145
145
  */
146
- switchToFrame(id: (number | object | null)): void;
146
+ switchToFrame(id: (number | object | null)): Promise<void>;
147
147
  /**
148
148
  * Webdriver Protocol Command
149
149
  *
@@ -151,7 +151,7 @@ export default interface WebdriverCommands {
151
151
  * @ref https://w3c.github.io/webdriver/#dfn-switch-to-parent-frame
152
152
  *
153
153
  */
154
- switchToParentFrame(): void;
154
+ switchToParentFrame(): Promise<void>;
155
155
  /**
156
156
  * Webdriver Protocol Command
157
157
  *
@@ -159,7 +159,7 @@ export default interface WebdriverCommands {
159
159
  * @ref https://w3c.github.io/webdriver/#dfn-get-window-rect
160
160
  *
161
161
  */
162
- getWindowRect(): RectReturn;
162
+ getWindowRect(): Promise<RectReturn>;
163
163
  /**
164
164
  * Webdriver Protocol Command
165
165
  *
@@ -167,7 +167,7 @@ export default interface WebdriverCommands {
167
167
  * @ref https://w3c.github.io/webdriver/#dfn-set-window-rect
168
168
  *
169
169
  */
170
- setWindowRect(x: (number | null), y: (number | null), width: (number | null), height: (number | null)): RectReturn;
170
+ setWindowRect(x: (number | null), y: (number | null), width: (number | null), height: (number | null)): Promise<RectReturn>;
171
171
  /**
172
172
  * Webdriver Protocol Command
173
173
  *
@@ -175,7 +175,7 @@ export default interface WebdriverCommands {
175
175
  * @ref https://w3c.github.io/webdriver/#dfn-maximize-window
176
176
  *
177
177
  */
178
- maximizeWindow(): RectReturn;
178
+ maximizeWindow(): Promise<RectReturn>;
179
179
  /**
180
180
  * Webdriver Protocol Command
181
181
  *
@@ -183,7 +183,7 @@ export default interface WebdriverCommands {
183
183
  * @ref https://w3c.github.io/webdriver/#dfn-minimize-window
184
184
  *
185
185
  */
186
- minimizeWindow(): RectReturn;
186
+ minimizeWindow(): Promise<RectReturn>;
187
187
  /**
188
188
  * Webdriver Protocol Command
189
189
  *
@@ -191,7 +191,7 @@ export default interface WebdriverCommands {
191
191
  * @ref https://w3c.github.io/webdriver/#dfn-fullscreen-window
192
192
  *
193
193
  */
194
- fullscreenWindow(): RectReturn;
194
+ fullscreenWindow(): Promise<RectReturn>;
195
195
  /**
196
196
  * Webdriver Protocol Command
197
197
  *
@@ -206,7 +206,7 @@ export default interface WebdriverCommands {
206
206
  * await element.click()
207
207
  * ```
208
208
  */
209
- findElement(using: string, value: string): ElementReference;
209
+ findElement(using: string, value: string): Promise<ElementReference>;
210
210
  /**
211
211
  * Webdriver Protocol Command
212
212
  *
@@ -228,7 +228,7 @@ export default interface WebdriverCommands {
228
228
  * )
229
229
  * ```
230
230
  */
231
- findElementFromShadowRoot(shadowId: string, using: string, value: string): ProtocolCommandResponse;
231
+ findElementFromShadowRoot(shadowId: string, using: string, value: string): Promise<ProtocolCommandResponse>;
232
232
  /**
233
233
  * Webdriver Protocol Command
234
234
  *
@@ -236,7 +236,7 @@ export default interface WebdriverCommands {
236
236
  * @ref https://w3c.github.io/webdriver/#dfn-find-elements
237
237
  *
238
238
  */
239
- findElements(using: string, value: string): ElementReference[];
239
+ findElements(using: string, value: string): Promise<ElementReference[]>;
240
240
  /**
241
241
  * Webdriver Protocol Command
242
242
  *
@@ -258,7 +258,7 @@ export default interface WebdriverCommands {
258
258
  * )
259
259
  * ```
260
260
  */
261
- findElementsFromShadowRoot(shadowId: string, using: string, value: string): object[];
261
+ findElementsFromShadowRoot(shadowId: string, using: string, value: string): Promise<object[]>;
262
262
  /**
263
263
  * Webdriver Protocol Command
264
264
  *
@@ -266,7 +266,7 @@ export default interface WebdriverCommands {
266
266
  * @ref https://w3c.github.io/webdriver/#dfn-find-element-from-element
267
267
  *
268
268
  */
269
- findElementFromElement(elementId: string, using: string, value: string): ElementReference;
269
+ findElementFromElement(elementId: string, using: string, value: string): Promise<ElementReference>;
270
270
  /**
271
271
  * Webdriver Protocol Command
272
272
  *
@@ -274,7 +274,7 @@ export default interface WebdriverCommands {
274
274
  * @ref https://w3c.github.io/webdriver/#dfn-find-elements-from-element
275
275
  *
276
276
  */
277
- findElementsFromElement(elementId: string, using: string, value: string): ElementReference[];
277
+ findElementsFromElement(elementId: string, using: string, value: string): Promise<ElementReference[]>;
278
278
  /**
279
279
  * Webdriver Protocol Command
280
280
  *
@@ -282,7 +282,7 @@ export default interface WebdriverCommands {
282
282
  * @ref https://w3c.github.io/webdriver/#dfn-get-active-element
283
283
  *
284
284
  */
285
- getElementShadowRoot(elementId: string): string;
285
+ getElementShadowRoot(elementId: string): Promise<string>;
286
286
  /**
287
287
  * Webdriver Protocol Command
288
288
  *
@@ -290,7 +290,7 @@ export default interface WebdriverCommands {
290
290
  * @ref https://w3c.github.io/webdriver/#dfn-get-active-element
291
291
  *
292
292
  */
293
- getActiveElement(): string;
293
+ getActiveElement(): Promise<string>;
294
294
  /**
295
295
  * Webdriver Protocol Command
296
296
  *
@@ -298,7 +298,7 @@ export default interface WebdriverCommands {
298
298
  * @ref https://w3c.github.io/webdriver/#dfn-is-element-selected
299
299
  *
300
300
  */
301
- isElementSelected(elementId: string): boolean;
301
+ isElementSelected(elementId: string): Promise<boolean>;
302
302
  /**
303
303
  * Webdriver Protocol Command
304
304
  *
@@ -306,7 +306,7 @@ export default interface WebdriverCommands {
306
306
  * @ref https://w3c.github.io/webdriver/#element-displayedness
307
307
  *
308
308
  */
309
- isElementDisplayed(elementId: string): boolean;
309
+ isElementDisplayed(elementId: string): Promise<boolean>;
310
310
  /**
311
311
  * Webdriver Protocol Command
312
312
  *
@@ -314,7 +314,7 @@ export default interface WebdriverCommands {
314
314
  * @ref https://w3c.github.io/webdriver/#dfn-get-element-attribute
315
315
  *
316
316
  */
317
- getElementAttribute(elementId: string, name: string): string;
317
+ getElementAttribute(elementId: string, name: string): Promise<string>;
318
318
  /**
319
319
  * Webdriver Protocol Command
320
320
  *
@@ -322,7 +322,7 @@ export default interface WebdriverCommands {
322
322
  * @ref https://w3c.github.io/webdriver/#dfn-get-element-property
323
323
  *
324
324
  */
325
- getElementProperty(elementId: string, name: string): string;
325
+ getElementProperty(elementId: string, name: string): Promise<string>;
326
326
  /**
327
327
  * Webdriver Protocol Command
328
328
  *
@@ -330,7 +330,7 @@ export default interface WebdriverCommands {
330
330
  * @ref https://w3c.github.io/webdriver/#dfn-get-element-css-value
331
331
  *
332
332
  */
333
- getElementCSSValue(elementId: string, propertyName: string): string;
333
+ getElementCSSValue(elementId: string, propertyName: string): Promise<string>;
334
334
  /**
335
335
  * Webdriver Protocol Command
336
336
  *
@@ -338,7 +338,7 @@ export default interface WebdriverCommands {
338
338
  * @ref https://w3c.github.io/webdriver/#dfn-get-element-text
339
339
  *
340
340
  */
341
- getElementText(elementId: string): string;
341
+ getElementText(elementId: string): Promise<string>;
342
342
  /**
343
343
  * Webdriver Protocol Command
344
344
  *
@@ -346,7 +346,7 @@ export default interface WebdriverCommands {
346
346
  * @ref https://w3c.github.io/webdriver/#dfn-get-element-tag-name
347
347
  *
348
348
  */
349
- getElementTagName(elementId: string): string;
349
+ getElementTagName(elementId: string): Promise<string>;
350
350
  /**
351
351
  * Webdriver Protocol Command
352
352
  *
@@ -354,7 +354,7 @@ export default interface WebdriverCommands {
354
354
  * @ref https://w3c.github.io/webdriver/#dfn-get-element-rect
355
355
  *
356
356
  */
357
- getElementRect(elementId: string): RectReturn;
357
+ getElementRect(elementId: string): Promise<RectReturn>;
358
358
  /**
359
359
  * Webdriver Protocol Command
360
360
  *
@@ -362,7 +362,7 @@ export default interface WebdriverCommands {
362
362
  * @ref https://w3c.github.io/webdriver/#dfn-is-element-enabled
363
363
  *
364
364
  */
365
- isElementEnabled(elementId: string): boolean;
365
+ isElementEnabled(elementId: string): Promise<boolean>;
366
366
  /**
367
367
  * Webdriver Protocol Command
368
368
  *
@@ -370,7 +370,7 @@ export default interface WebdriverCommands {
370
370
  * @ref https://w3c.github.io/webdriver/#dfn-element-click
371
371
  *
372
372
  */
373
- elementClick(elementId: string): void;
373
+ elementClick(elementId: string): Promise<void>;
374
374
  /**
375
375
  * Webdriver Protocol Command
376
376
  *
@@ -378,7 +378,7 @@ export default interface WebdriverCommands {
378
378
  * @ref https://w3c.github.io/webdriver/#dfn-element-clear
379
379
  *
380
380
  */
381
- elementClear(elementId: string): void;
381
+ elementClear(elementId: string): Promise<void>;
382
382
  /**
383
383
  * Webdriver Protocol Command
384
384
  *
@@ -386,7 +386,7 @@ export default interface WebdriverCommands {
386
386
  * @ref https://w3c.github.io/webdriver/#dfn-element-send-keys
387
387
  *
388
388
  */
389
- elementSendKeys(elementId: string, text: string): void;
389
+ elementSendKeys(elementId: string, text: string): Promise<void>;
390
390
  /**
391
391
  * Webdriver Protocol Command
392
392
  *
@@ -394,7 +394,7 @@ export default interface WebdriverCommands {
394
394
  * @ref https://w3c.github.io/webdriver/#dfn-get-page-source
395
395
  *
396
396
  */
397
- getPageSource(): string;
397
+ getPageSource(): Promise<string>;
398
398
  /**
399
399
  * Webdriver Protocol Command
400
400
  *
@@ -402,7 +402,7 @@ export default interface WebdriverCommands {
402
402
  * @ref https://w3c.github.io/webdriver/#dfn-execute-script
403
403
  *
404
404
  */
405
- executeScript(script: string, args: (string | object | number | boolean | undefined)[]): any;
405
+ executeScript(script: string, args: (string | object | number | boolean | undefined)[]): Promise<any>;
406
406
  /**
407
407
  * Webdriver Protocol Command
408
408
  *
@@ -410,7 +410,7 @@ export default interface WebdriverCommands {
410
410
  * @ref https://w3c.github.io/webdriver/#dfn-execute-async-script
411
411
  *
412
412
  */
413
- executeAsyncScript(script: string, args: (string | object | number | boolean | undefined)[]): any;
413
+ executeAsyncScript(script: string, args: (string | object | number | boolean | undefined)[]): Promise<any>;
414
414
  /**
415
415
  * Webdriver Protocol Command
416
416
  *
@@ -418,7 +418,7 @@ export default interface WebdriverCommands {
418
418
  * @ref https://w3c.github.io/webdriver/#dfn-get-all-cookies
419
419
  *
420
420
  */
421
- getAllCookies(): Cookie[];
421
+ getAllCookies(): Promise<Cookie[]>;
422
422
  /**
423
423
  * Webdriver Protocol Command
424
424
  *
@@ -426,7 +426,7 @@ export default interface WebdriverCommands {
426
426
  * @ref https://w3c.github.io/webdriver/#dfn-adding-a-cookie
427
427
  *
428
428
  */
429
- addCookie(cookie: object): void;
429
+ addCookie(cookie: object): Promise<void>;
430
430
  /**
431
431
  * Webdriver Protocol Command
432
432
  *
@@ -434,7 +434,7 @@ export default interface WebdriverCommands {
434
434
  * @ref https://w3c.github.io/webdriver/#dfn-delete-all-cookies
435
435
  *
436
436
  */
437
- deleteAllCookies(): void;
437
+ deleteAllCookies(): Promise<void>;
438
438
  /**
439
439
  * Webdriver Protocol Command
440
440
  *
@@ -442,7 +442,7 @@ export default interface WebdriverCommands {
442
442
  * @ref https://w3c.github.io/webdriver/#dfn-get-named-cookie
443
443
  *
444
444
  */
445
- getNamedCookie(name: string): Cookie;
445
+ getNamedCookie(name: string): Promise<Cookie>;
446
446
  /**
447
447
  * Webdriver Protocol Command
448
448
  *
@@ -450,7 +450,7 @@ export default interface WebdriverCommands {
450
450
  * @ref https://w3c.github.io/webdriver/#dfn-delete-cookie
451
451
  *
452
452
  */
453
- deleteCookie(name: string): void;
453
+ deleteCookie(name: string): Promise<void>;
454
454
  /**
455
455
  * Webdriver Protocol Command
456
456
  *
@@ -458,7 +458,7 @@ export default interface WebdriverCommands {
458
458
  * @ref https://w3c.github.io/webdriver/#dfn-perform-actions
459
459
  *
460
460
  */
461
- performActions(actions: object[]): void;
461
+ performActions(actions: object[]): Promise<void>;
462
462
  /**
463
463
  * Webdriver Protocol Command
464
464
  *
@@ -466,7 +466,7 @@ export default interface WebdriverCommands {
466
466
  * @ref https://w3c.github.io/webdriver/#dfn-release-actions
467
467
  *
468
468
  */
469
- releaseActions(): void;
469
+ releaseActions(): Promise<void>;
470
470
  /**
471
471
  * Webdriver Protocol Command
472
472
  *
@@ -474,7 +474,7 @@ export default interface WebdriverCommands {
474
474
  * @ref https://w3c.github.io/webdriver/#dfn-dismiss-alert
475
475
  *
476
476
  */
477
- dismissAlert(): void;
477
+ dismissAlert(): Promise<void>;
478
478
  /**
479
479
  * Webdriver Protocol Command
480
480
  *
@@ -482,7 +482,7 @@ export default interface WebdriverCommands {
482
482
  * @ref https://w3c.github.io/webdriver/#dfn-accept-alert
483
483
  *
484
484
  */
485
- acceptAlert(): void;
485
+ acceptAlert(): Promise<void>;
486
486
  /**
487
487
  * Webdriver Protocol Command
488
488
  *
@@ -490,7 +490,7 @@ export default interface WebdriverCommands {
490
490
  * @ref https://w3c.github.io/webdriver/#dfn-get-alert-text
491
491
  *
492
492
  */
493
- getAlertText(): string;
493
+ getAlertText(): Promise<string>;
494
494
  /**
495
495
  * Webdriver Protocol Command
496
496
  *
@@ -498,7 +498,7 @@ export default interface WebdriverCommands {
498
498
  * @ref https://w3c.github.io/webdriver/#dfn-send-alert-text
499
499
  *
500
500
  */
501
- sendAlertText(text: string): void;
501
+ sendAlertText(text: string): Promise<void>;
502
502
  /**
503
503
  * Webdriver Protocol Command
504
504
  *
@@ -506,7 +506,7 @@ export default interface WebdriverCommands {
506
506
  * @ref https://w3c.github.io/webdriver/#dfn-take-screenshot
507
507
  *
508
508
  */
509
- takeScreenshot(): string;
509
+ takeScreenshot(): Promise<string>;
510
510
  /**
511
511
  * Webdriver Protocol Command
512
512
  *
@@ -514,7 +514,7 @@ export default interface WebdriverCommands {
514
514
  * @ref https://w3c.github.io/webdriver/#dfn-take-element-screenshot
515
515
  *
516
516
  */
517
- takeElementScreenshot(elementId: string, scroll?: boolean): string;
517
+ takeElementScreenshot(elementId: string, scroll?: boolean): Promise<string>;
518
518
  /**
519
519
  * Webdriver Protocol Command
520
520
  *
@@ -522,7 +522,7 @@ export default interface WebdriverCommands {
522
522
  * @ref https://w3c.github.io/webdriver/#get-computed-role
523
523
  *
524
524
  */
525
- getElementComputedRole(elementId: string): string;
525
+ getElementComputedRole(elementId: string): Promise<string>;
526
526
  /**
527
527
  * Webdriver Protocol Command
528
528
  *
@@ -530,7 +530,7 @@ export default interface WebdriverCommands {
530
530
  * @ref https://w3c.github.io/webdriver/#get-computed-label
531
531
  *
532
532
  */
533
- getElementComputedLabel(elementId: string): string;
533
+ getElementComputedLabel(elementId: string): Promise<string>;
534
534
  /**
535
535
  * Webdriver Protocol Command
536
536
  *
@@ -546,7 +546,7 @@ export default interface WebdriverCommands {
546
546
  * , 'granted'); // can be also 'denied' or 'prompt'
547
547
  * ```
548
548
  */
549
- setPermissions(descriptor: object, state: string, oneRealm?: boolean): void;
549
+ setPermissions(descriptor: object, state: string, oneRealm?: boolean): Promise<void>;
550
550
  /**
551
551
  * Webdriver Protocol Command
552
552
  *
@@ -554,7 +554,7 @@ export default interface WebdriverCommands {
554
554
  * @ref https://w3c.github.io/reporting/#automation
555
555
  *
556
556
  */
557
- generateTestReport(message: string, group: string): void;
557
+ generateTestReport(message: string, group: string): Promise<void>;
558
558
  /**
559
559
  * Webdriver Protocol Command
560
560
  *
@@ -562,7 +562,7 @@ export default interface WebdriverCommands {
562
562
  * @ref https://w3c.github.io/sensors/#create-mock-sensor-command
563
563
  *
564
564
  */
565
- createMockSensor(mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): void;
565
+ createMockSensor(mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): Promise<void>;
566
566
  /**
567
567
  * Webdriver Protocol Command
568
568
  *
@@ -570,7 +570,7 @@ export default interface WebdriverCommands {
570
570
  * @ref https://w3c.github.io/sensors/#get-mock-sensor-command
571
571
  *
572
572
  */
573
- getMockSensor(type: string): ProtocolCommandResponse;
573
+ getMockSensor(type: string): Promise<ProtocolCommandResponse>;
574
574
  /**
575
575
  * Webdriver Protocol Command
576
576
  *
@@ -578,7 +578,7 @@ export default interface WebdriverCommands {
578
578
  * @ref https://w3c.github.io/sensors/#update-mock-sensor-reading-command
579
579
  *
580
580
  */
581
- updateMockSensor(type: string, mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): void;
581
+ updateMockSensor(type: string, mockSensorType: string, maxSamplingFrequency: number, minSamplingFrequency: number): Promise<void>;
582
582
  /**
583
583
  * Webdriver Protocol Command
584
584
  *
@@ -586,7 +586,7 @@ export default interface WebdriverCommands {
586
586
  * @ref https://w3c.github.io/sensors/#delete-mock-sensor-command
587
587
  *
588
588
  */
589
- deleteMockSensor(type: string): void;
589
+ deleteMockSensor(type: string): Promise<void>;
590
590
  /**
591
591
  * Webdriver Protocol Command
592
592
  *
@@ -594,7 +594,7 @@ export default interface WebdriverCommands {
594
594
  * @ref https://w3c.github.io/sensors/#create-mock-sensor-command
595
595
  *
596
596
  */
597
- setTimeZone(timeZone: string): void;
597
+ setTimeZone(timeZone: string): Promise<void>;
598
598
  /**
599
599
  * Webdriver Protocol Command
600
600
  *
@@ -602,7 +602,7 @@ export default interface WebdriverCommands {
602
602
  * @ref https://www.w3.org/TR/webauthn-2/#sctn-automation-add-virtual-authenticator
603
603
  *
604
604
  */
605
- addVirtualAuthenticator(protocol?: string, transport?: string, hasResidentKey?: boolean, hasUserVerification?: boolean, isUserConsenting?: boolean, isUserVerified?: boolean, extensions?: string[], uvm?: object[]): void;
605
+ addVirtualAuthenticator(protocol?: string, transport?: string, hasResidentKey?: boolean, hasUserVerification?: boolean, isUserConsenting?: boolean, isUserVerified?: boolean, extensions?: string[], uvm?: object[]): Promise<void>;
606
606
  /**
607
607
  * Webdriver Protocol Command
608
608
  *
@@ -610,7 +610,7 @@ export default interface WebdriverCommands {
610
610
  * @ref https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-virtual-authenticator
611
611
  *
612
612
  */
613
- removeVirtualAuthenticator(authenticatorId: string): void;
613
+ removeVirtualAuthenticator(authenticatorId: string): Promise<void>;
614
614
  /**
615
615
  * Webdriver Protocol Command
616
616
  *
@@ -618,7 +618,7 @@ export default interface WebdriverCommands {
618
618
  * @ref https://www.w3.org/TR/webauthn-2/#sctn-automation-add-credential
619
619
  *
620
620
  */
621
- addCredential(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, largeBlob: string): void;
621
+ addCredential(credentialId: string, isResidentCredential: boolean, rpId: string, privateKey: string, userHandle: string, signCount: number, largeBlob: string): Promise<void>;
622
622
  /**
623
623
  * Webdriver Protocol Command
624
624
  *
@@ -626,7 +626,7 @@ export default interface WebdriverCommands {
626
626
  * @ref https://www.w3.org/TR/webauthn-2/#sctn-automation-get-credentials
627
627
  *
628
628
  */
629
- getCredentials(authenticatorId: string): void;
629
+ getCredentials(authenticatorId: string): Promise<void>;
630
630
  /**
631
631
  * Webdriver Protocol Command
632
632
  *
@@ -634,7 +634,7 @@ export default interface WebdriverCommands {
634
634
  * @ref https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-all-credentials
635
635
  *
636
636
  */
637
- removeAllCredentials(authenticatorId: string): void;
637
+ removeAllCredentials(authenticatorId: string): Promise<void>;
638
638
  /**
639
639
  * Webdriver Protocol Command
640
640
  *
@@ -642,7 +642,7 @@ export default interface WebdriverCommands {
642
642
  * @ref https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-credential
643
643
  *
644
644
  */
645
- removeCredential(authenticatorId: string, credentialId: string): void;
645
+ removeCredential(authenticatorId: string, credentialId: string): Promise<void>;
646
646
  /**
647
647
  * Webdriver Protocol Command
648
648
  *
@@ -650,6 +650,6 @@ export default interface WebdriverCommands {
650
650
  * @ref https://www.w3.org/TR/webauthn-2/#sctn-automation-set-user-verified
651
651
  *
652
652
  */
653
- setUserVerified(authenticatorId: string, credentialId: string): void;
653
+ setUserVerified(authenticatorId: string, credentialId: string): Promise<void>;
654
654
  }
655
655
  //# sourceMappingURL=webdriver.d.ts.map