@wdio/protocols 8.3.5 → 8.5.6

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.
@@ -131,7 +131,7 @@ export default interface WebdriverCommands {
131
131
  /**
132
132
  * Webdriver Protocol Command
133
133
  *
134
- * The Print Page command renders the document to a paginated PDF document.
134
+ * The Print Page command renders the document to a paginated PDF document. __Note:__ Chrome currently only supports this in [headless mode](https://webdriver.io/docs/capabilities/#run-browser-headless), see [`crbug753118`](https://bugs.chromium.org/p/chromium/issues/detail?id=753118)).
135
135
  * @ref https://w3c.github.io/webdriver/#print-page
136
136
  *
137
137
  */
@@ -198,13 +198,6 @@ export default interface WebdriverCommands {
198
198
  * The Find Element command is used to find an element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.
199
199
  * @ref https://w3c.github.io/webdriver/#dfn-find-element
200
200
  *
201
- * @example
202
- * ```js
203
- * // get element
204
- * const elementRef = await browser.findElement('xpath', '//div')
205
- * const element = await $(elementRef)
206
- * await element.click()
207
- * ```
208
201
  */
209
202
  findElement(using: string, value: string): Promise<ElementReference>;
210
203
  /**
@@ -213,20 +206,6 @@ export default interface WebdriverCommands {
213
206
  * The Find Element From Shadow Root command is used to find an element within the shadow root of an element that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.
214
207
  * @ref https://w3c.github.io/webdriver/#find-element-from-shadow-root
215
208
  *
216
- * @example
217
- * ```js
218
- * // get shadow root
219
- * const element = await browser.findElement('xpath', '//div')
220
- * const shadowRoot = await browser.getElementShadowRoot(
221
- * element['element-6066-11e4-a52e-4f735466cecf']
222
- * )
223
- * // fetch element within that shadow root
224
- * const elementRef = await browser.findElementFromShadowRoot(
225
- * shadowRoot['shadow-6066-11e4-a52e-4f735466cecf'],
226
- * 'xpath',
227
- * '//div'
228
- * )
229
- * ```
230
209
  */
231
210
  findElementFromShadowRoot(shadowId: string, using: string, value: string): Promise<ProtocolCommandResponse>;
232
211
  /**
@@ -243,20 +222,6 @@ export default interface WebdriverCommands {
243
222
  * The Find Elements command is used to find elements within the shadow root of an element that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).
244
223
  * @ref https://w3c.github.io/webdriver/#find-elements-from-shadow-root
245
224
  *
246
- * @example
247
- * ```js
248
- * // get shadow root
249
- * const element = await browser.findElement('xpath', '//div')
250
- * const shadowRoot = await browser.getElementShadowRoot(
251
- * element['element-6066-11e4-a52e-4f735466cecf']
252
- * )
253
- * // fetch elements within that shadow root
254
- * const elementRef = await browser.findElementsFromShadowRoot(
255
- * shadowRoot['shadow-6066-11e4-a52e-4f735466cecf'],
256
- * 'xpath',
257
- * '//div'
258
- * )
259
- * ```
260
225
  */
261
226
  findElementsFromShadowRoot(shadowId: string, using: string, value: string): Promise<object[]>;
262
227
  /**
@@ -402,7 +367,7 @@ export default interface WebdriverCommands {
402
367
  * @ref https://w3c.github.io/webdriver/#dfn-execute-script
403
368
  *
404
369
  */
405
- executeScript(script: string, args: (string | object | number | boolean | undefined)[]): Promise<any>;
370
+ executeScript(script: string, args: (string | object | number | boolean | null | undefined)[]): Promise<any>;
406
371
  /**
407
372
  * Webdriver Protocol Command
408
373
  *
@@ -410,7 +375,7 @@ export default interface WebdriverCommands {
410
375
  * @ref https://w3c.github.io/webdriver/#dfn-execute-async-script
411
376
  *
412
377
  */
413
- executeAsyncScript(script: string, args: (string | object | number | boolean | undefined)[]): Promise<any>;
378
+ executeAsyncScript(script: string, args: (string | object | number | boolean | null | undefined)[]): Promise<any>;
414
379
  /**
415
380
  * Webdriver Protocol Command
416
381
  *
@@ -1 +1 @@
1
- {"version":3,"file":"webdriver.d.ts","sourceRoot":"","sources":["../../src/commands/webdriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,gBAA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EpO;;;;;;OAMG;IACH,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;;;;;OAMG;IACH,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9K;;;;;;OAMG;IACH,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvD;;;;;;OAMG;IACH,oBAAoB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE7D;;;;;;OAMG;IACH,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/E;;;;;;OAMG;IACH,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjF"}
@@ -31,6 +31,7 @@ declare const _default: {
31
31
  description: string;
32
32
  ref: string;
33
33
  parameters: never[];
34
+ exampleReferences: string[];
34
35
  returns: {
35
36
  type: string;
36
37
  name: string;
@@ -44,6 +45,7 @@ declare const _default: {
44
45
  description: string;
45
46
  ref: string;
46
47
  parameters: never[];
48
+ exampleReferences: string[];
47
49
  returns: {
48
50
  type: string;
49
51
  name: string;
@@ -60,6 +62,7 @@ declare const _default: {
60
62
  description: string;
61
63
  required: boolean;
62
64
  }[];
65
+ exampleReferences: string[];
63
66
  };
64
67
  };
65
68
  '/session/:sessionId/url': {
@@ -68,6 +71,7 @@ declare const _default: {
68
71
  description: string;
69
72
  ref: string;
70
73
  parameters: never[];
74
+ exampleReferences: string[];
71
75
  returns: {
72
76
  type: string;
73
77
  name: string;
@@ -84,6 +88,8 @@ declare const _default: {
84
88
  description: string;
85
89
  required: boolean;
86
90
  }[];
91
+ exampleReferences: string[];
92
+ alternativeCommands: string[];
87
93
  returns: {
88
94
  type: string;
89
95
  name: string;
@@ -97,6 +103,7 @@ declare const _default: {
97
103
  description: string;
98
104
  ref: string;
99
105
  parameters: never[];
106
+ exampleReferences: string[];
100
107
  };
101
108
  };
102
109
  '/session/:sessionId/forward': {
@@ -105,6 +112,7 @@ declare const _default: {
105
112
  description: string;
106
113
  ref: string;
107
114
  parameters: never[];
115
+ exampleReferences: string[];
108
116
  };
109
117
  };
110
118
  '/session/:sessionId/refresh': {
@@ -113,6 +121,7 @@ declare const _default: {
113
121
  description: string;
114
122
  ref: string;
115
123
  parameters: never[];
124
+ exampleReferences: string[];
116
125
  };
117
126
  };
118
127
  '/session/:sessionId/title': {
@@ -126,6 +135,7 @@ declare const _default: {
126
135
  name: string;
127
136
  description: string;
128
137
  };
138
+ exampleReferences: string[];
129
139
  };
130
140
  };
131
141
  '/session/:sessionId/window': {
@@ -139,12 +149,14 @@ declare const _default: {
139
149
  name: string;
140
150
  description: string;
141
151
  };
152
+ exampleReferences: string[];
142
153
  };
143
154
  DELETE: {
144
155
  command: string;
145
156
  description: string;
146
157
  ref: string;
147
158
  parameters: never[];
159
+ exampleReferences: string[];
148
160
  };
149
161
  POST: {
150
162
  command: string;
@@ -156,6 +168,8 @@ declare const _default: {
156
168
  description: string;
157
169
  required: boolean;
158
170
  }[];
171
+ alternativeCommands: string[];
172
+ exampleReferences: string[];
159
173
  };
160
174
  };
161
175
  '/session/:sessionId/window/new': {
@@ -174,6 +188,7 @@ declare const _default: {
174
188
  name: string;
175
189
  description: string;
176
190
  };
191
+ exampleReferences: string[];
177
192
  };
178
193
  };
179
194
  '/session/:sessionId/window/handles': {
@@ -187,6 +202,7 @@ declare const _default: {
187
202
  name: string;
188
203
  description: string;
189
204
  };
205
+ exampleReferences: string[];
190
206
  };
191
207
  };
192
208
  '/session/:sessionId/print': {
@@ -205,6 +221,7 @@ declare const _default: {
205
221
  name: string;
206
222
  description: string;
207
223
  };
224
+ exampleReferences: string[];
208
225
  };
209
226
  };
210
227
  '/session/:sessionId/frame': {
@@ -218,6 +235,7 @@ declare const _default: {
218
235
  description: string;
219
236
  required: boolean;
220
237
  }[];
238
+ exampleReferences: string[];
221
239
  };
222
240
  };
223
241
  '/session/:sessionId/frame/parent': {
@@ -226,6 +244,7 @@ declare const _default: {
226
244
  description: string;
227
245
  ref: string;
228
246
  parameters: never[];
247
+ exampleReferences: string[];
229
248
  };
230
249
  };
231
250
  '/session/:sessionId/window/rect': {
@@ -239,6 +258,8 @@ declare const _default: {
239
258
  name: string;
240
259
  description: string;
241
260
  };
261
+ alternativeCommands: string[];
262
+ exampleReferences: string[];
242
263
  };
243
264
  POST: {
244
265
  command: string;
@@ -250,11 +271,13 @@ declare const _default: {
250
271
  description: string;
251
272
  required: boolean;
252
273
  }[];
274
+ alternativeCommands: string[];
253
275
  returns: {
254
276
  type: string;
255
277
  name: string;
256
278
  description: string;
257
279
  };
280
+ exampleReferences: string[];
258
281
  };
259
282
  };
260
283
  '/session/:sessionId/window/maximize': {
@@ -268,6 +291,7 @@ declare const _default: {
268
291
  name: string;
269
292
  description: string;
270
293
  };
294
+ exampleReferences: string[];
271
295
  };
272
296
  };
273
297
  '/session/:sessionId/window/minimize': {
@@ -301,7 +325,6 @@ declare const _default: {
301
325
  command: string;
302
326
  description: string;
303
327
  ref: string;
304
- examples: string[][];
305
328
  parameters: {
306
329
  name: string;
307
330
  type: string;
@@ -313,6 +336,8 @@ declare const _default: {
313
336
  name: string;
314
337
  description: string;
315
338
  };
339
+ alternativeCommands: string[];
340
+ exampleReferences: string[];
316
341
  };
317
342
  };
318
343
  '/session/:sessionId/shadow/:shadowId/element': {
@@ -320,7 +345,6 @@ declare const _default: {
320
345
  command: string;
321
346
  description: string;
322
347
  ref: string;
323
- examples: string[][];
324
348
  variables: {
325
349
  name: string;
326
350
  description: string;
@@ -331,11 +355,13 @@ declare const _default: {
331
355
  description: string;
332
356
  required: boolean;
333
357
  }[];
358
+ alternativeCommands: string[];
334
359
  returns: {
335
360
  type: string;
336
361
  name: string;
337
362
  description: string;
338
363
  };
364
+ exampleReferences: string[];
339
365
  };
340
366
  };
341
367
  '/session/:sessionId/elements': {
@@ -349,11 +375,13 @@ declare const _default: {
349
375
  description: string;
350
376
  required: boolean;
351
377
  }[];
378
+ alternativeCommands: string[];
352
379
  returns: {
353
380
  type: string;
354
381
  name: string;
355
382
  description: string;
356
383
  };
384
+ exampleReferences: string[];
357
385
  };
358
386
  };
359
387
  '/session/:sessionId/shadow/:shadowId/elements': {
@@ -365,13 +393,14 @@ declare const _default: {
365
393
  name: string;
366
394
  description: string;
367
395
  }[];
396
+ alternativeCommands: string[];
368
397
  parameters: {
369
398
  name: string;
370
399
  type: string;
371
400
  description: string;
372
401
  required: boolean;
373
402
  }[];
374
- examples: string[][];
403
+ exampleReferences: string[];
375
404
  returns: {
376
405
  type: string;
377
406
  name: string;
@@ -394,11 +423,13 @@ declare const _default: {
394
423
  description: string;
395
424
  required: boolean;
396
425
  }[];
426
+ alternativeCommands: string[];
397
427
  returns: {
398
428
  type: string;
399
429
  name: string;
400
430
  description: string;
401
431
  };
432
+ exampleReferences: string[];
402
433
  };
403
434
  };
404
435
  '/session/:sessionId/element/:elementId/elements': {
@@ -416,11 +447,13 @@ declare const _default: {
416
447
  description: string;
417
448
  required: boolean;
418
449
  }[];
450
+ alternativeCommands: string[];
419
451
  returns: {
420
452
  type: string;
421
453
  name: string;
422
454
  description: string;
423
455
  };
456
+ exampleReferences: string[];
424
457
  };
425
458
  };
426
459
  '/session/:sessionId/element/:elementId/shadow': {
@@ -438,6 +471,8 @@ declare const _default: {
438
471
  name: string;
439
472
  description: string;
440
473
  };
474
+ alternativeCommands: string[];
475
+ exampleReferences: string[];
441
476
  };
442
477
  };
443
478
  '/session/:sessionId/element/active': {
@@ -451,6 +486,7 @@ declare const _default: {
451
486
  name: string;
452
487
  description: string;
453
488
  };
489
+ exampleReferences: string[];
454
490
  };
455
491
  };
456
492
  '/session/:sessionId/element/:elementId/selected': {
@@ -468,6 +504,8 @@ declare const _default: {
468
504
  name: string;
469
505
  description: string;
470
506
  };
507
+ alternativeCommands: string[];
508
+ exampleReferences: string[];
471
509
  };
472
510
  };
473
511
  '/session/:sessionId/element/:elementId/displayed': {
@@ -485,6 +523,8 @@ declare const _default: {
485
523
  name: string;
486
524
  description: string;
487
525
  };
526
+ alternativeCommands: string[];
527
+ exampleReferences: string[];
488
528
  };
489
529
  };
490
530
  '/session/:sessionId/element/:elementId/attribute/:name': {
@@ -502,6 +542,8 @@ declare const _default: {
502
542
  name: string;
503
543
  description: string;
504
544
  };
545
+ alternativeCommands: string[];
546
+ exampleReferences: string[];
505
547
  };
506
548
  };
507
549
  '/session/:sessionId/element/:elementId/property/:name': {
@@ -519,6 +561,8 @@ declare const _default: {
519
561
  name: string;
520
562
  description: string;
521
563
  };
564
+ alternativeCommands: string[];
565
+ exampleReferences: string[];
522
566
  };
523
567
  };
524
568
  '/session/:sessionId/element/:elementId/css/:propertyName': {
@@ -531,11 +575,13 @@ declare const _default: {
531
575
  description: string;
532
576
  }[];
533
577
  parameters: never[];
578
+ alternativeCommands: string[];
534
579
  returns: {
535
580
  type: string;
536
581
  name: string;
537
582
  description: string;
538
583
  };
584
+ exampleReferences: string[];
539
585
  };
540
586
  };
541
587
  '/session/:sessionId/element/:elementId/text': {
@@ -553,6 +599,7 @@ declare const _default: {
553
599
  name: string;
554
600
  description: string;
555
601
  };
602
+ exampleReferences: string[];
556
603
  };
557
604
  };
558
605
  '/session/:sessionId/element/:elementId/name': {
@@ -570,6 +617,8 @@ declare const _default: {
570
617
  name: string;
571
618
  description: string;
572
619
  };
620
+ alternativeCommands: string[];
621
+ exampleReferences: string[];
573
622
  };
574
623
  };
575
624
  '/session/:sessionId/element/:elementId/rect': {
@@ -587,6 +636,8 @@ declare const _default: {
587
636
  name: string;
588
637
  description: string;
589
638
  };
639
+ alternativeCommands: string[];
640
+ exampleReferences: string[];
590
641
  };
591
642
  };
592
643
  '/session/:sessionId/element/:elementId/enabled': {
@@ -604,6 +655,8 @@ declare const _default: {
604
655
  name: string;
605
656
  description: string;
606
657
  };
658
+ alternativeCommands: string[];
659
+ exampleReferences: string[];
607
660
  };
608
661
  };
609
662
  '/session/:sessionId/element/:elementId/click': {
@@ -616,6 +669,8 @@ declare const _default: {
616
669
  description: string;
617
670
  }[];
618
671
  parameters: never[];
672
+ alternativeCommands: string[];
673
+ exampleReferences: string[];
619
674
  };
620
675
  };
621
676
  '/session/:sessionId/element/:elementId/clear': {
@@ -628,6 +683,8 @@ declare const _default: {
628
683
  description: string;
629
684
  }[];
630
685
  parameters: never[];
686
+ alternativeCommands: string[];
687
+ exampleReferences: string[];
631
688
  };
632
689
  };
633
690
  '/session/:sessionId/element/:elementId/value': {
@@ -645,6 +702,8 @@ declare const _default: {
645
702
  description: string;
646
703
  required: boolean;
647
704
  }[];
705
+ alternativeCommands: string[];
706
+ exampleReferences: string[];
648
707
  };
649
708
  };
650
709
  '/session/:sessionId/source': {
@@ -658,6 +717,7 @@ declare const _default: {
658
717
  name: string;
659
718
  description: string;
660
719
  };
720
+ exampleReferences: string[];
661
721
  };
662
722
  };
663
723
  '/session/:sessionId/execute/sync': {
@@ -676,6 +736,8 @@ declare const _default: {
676
736
  name: string;
677
737
  description: string;
678
738
  };
739
+ alternativeCommands: string[];
740
+ exampleReferences: string[];
679
741
  };
680
742
  };
681
743
  '/session/:sessionId/execute/async': {
@@ -694,6 +756,8 @@ declare const _default: {
694
756
  name: string;
695
757
  description: string;
696
758
  };
759
+ alternativeCommands: string[];
760
+ exampleReferences: string[];
697
761
  };
698
762
  };
699
763
  '/session/:sessionId/cookie': {
@@ -707,6 +771,7 @@ declare const _default: {
707
771
  name: string;
708
772
  description: string;
709
773
  };
774
+ exampleReferences: string[];
710
775
  };
711
776
  POST: {
712
777
  command: string;
@@ -718,12 +783,14 @@ declare const _default: {
718
783
  description: string;
719
784
  required: boolean;
720
785
  }[];
786
+ exampleReferences: string[];
721
787
  };
722
788
  DELETE: {
723
789
  command: string;
724
790
  description: string;
725
791
  ref: string;
726
792
  parameters: never[];
793
+ exampleReferences: string[];
727
794
  };
728
795
  };
729
796
  '/session/:sessionId/cookie/:name': {
@@ -741,6 +808,7 @@ declare const _default: {
741
808
  name: string;
742
809
  description: string;
743
810
  };
811
+ exampleReferences: string[];
744
812
  };
745
813
  DELETE: {
746
814
  command: string;
@@ -751,6 +819,7 @@ declare const _default: {
751
819
  description: string;
752
820
  }[];
753
821
  parameters: never[];
822
+ exampleReferences: string[];
754
823
  };
755
824
  };
756
825
  '/session/:sessionId/actions': {
@@ -778,6 +847,7 @@ declare const _default: {
778
847
  description: string;
779
848
  ref: string;
780
849
  parameters: never[];
850
+ exampleReferences: string[];
781
851
  };
782
852
  };
783
853
  '/session/:sessionId/alert/accept': {
@@ -799,6 +869,7 @@ declare const _default: {
799
869
  name: string;
800
870
  description: string;
801
871
  };
872
+ exampleReferences: string[];
802
873
  };
803
874
  POST: {
804
875
  command: string;
@@ -1 +1 @@
1
- {"version":3,"file":"webdriver.d.ts","sourceRoot":"","sources":["../../src/protocols/webdriver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAsqDC"}
@@ -33,6 +33,7 @@ export default {
33
33
  description: 'The Status command returns information about whether a remote end is in a state in which it can create new sessions and can additionally include arbitrary meta information that is specific to the implementation.',
34
34
  ref: 'https://w3c.github.io/webdriver/#dfn-status',
35
35
  parameters: [],
36
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L5-L16'],
36
37
  returns: {
37
38
  type: 'Object',
38
39
  name: 'status',
@@ -46,6 +47,7 @@ export default {
46
47
  description: 'The Get Timeouts command gets timeout durations associated with the current session.',
47
48
  ref: 'https://w3c.github.io/webdriver/#dfn-get-timeouts',
48
49
  parameters: [],
50
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L20-L24'],
49
51
  returns: {
50
52
  type: 'Object',
51
53
  name: 'timeouts',
@@ -76,6 +78,7 @@ export default {
76
78
  required: false,
77
79
  },
78
80
  ],
81
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L28-L33']
79
82
  },
80
83
  },
81
84
  '/session/:sessionId/url': {
@@ -84,6 +87,7 @@ export default {
84
87
  description: 'The Get Current URL command returns the URL of the current top-level browsing context.',
85
88
  ref: 'https://w3c.github.io/webdriver/#dfn-get-current-url',
86
89
  parameters: [],
90
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L39-L43'],
87
91
  returns: {
88
92
  type: 'string',
89
93
  name: 'url',
@@ -102,6 +106,8 @@ export default {
102
106
  required: true,
103
107
  },
104
108
  ],
109
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L47-L51'],
110
+ alternativeCommands: ['browser/url'],
105
111
  returns: {
106
112
  type: 'string',
107
113
  name: 'url',
@@ -115,6 +121,7 @@ export default {
115
121
  description: 'The Back command causes the browser to traverse one step backward in the joint session history of the current top-level browsing context. This is equivalent to pressing the back button in the browser chrome or calling `window.history.back`.',
116
122
  ref: 'https://w3c.github.io/webdriver/#dfn-back',
117
123
  parameters: [],
124
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L55-L59'],
118
125
  },
119
126
  },
120
127
  '/session/:sessionId/forward': {
@@ -123,6 +130,7 @@ export default {
123
130
  description: 'The Forward command causes the browser to traverse one step forwards in the joint session history of the current top-level browsing context.',
124
131
  ref: 'https://w3c.github.io/webdriver/#dfn-forward',
125
132
  parameters: [],
133
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L63-L69']
126
134
  },
127
135
  },
128
136
  '/session/:sessionId/refresh': {
@@ -131,6 +139,7 @@ export default {
131
139
  description: 'The Refresh command causes the browser to reload the page in current top-level browsing context.',
132
140
  ref: 'https://w3c.github.io/webdriver/#dfn-refresh',
133
141
  parameters: [],
142
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L73-L78']
134
143
  },
135
144
  },
136
145
  '/session/:sessionId/title': {
@@ -144,6 +153,7 @@ export default {
144
153
  name: 'title',
145
154
  description: 'Returns a string which is the same as `document.title` of the current top-level browsing context.',
146
155
  },
156
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L82-L86']
147
157
  },
148
158
  },
149
159
  '/session/:sessionId/window': {
@@ -157,12 +167,14 @@ export default {
157
167
  name: 'handle',
158
168
  description: 'Returns a string which is the window handle for the current top-level browsing context.',
159
169
  },
170
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L90-L93']
160
171
  },
161
172
  DELETE: {
162
173
  command: 'closeWindow',
163
174
  description: 'The Close Window command closes the current top-level browsing context. Once done, if there are no more top-level browsing contexts open, the WebDriver session itself is closed.',
164
175
  ref: 'https://w3c.github.io/webdriver/#dfn-close-window',
165
176
  parameters: [],
177
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L97-L117']
166
178
  },
167
179
  POST: {
168
180
  command: 'switchToWindow',
@@ -176,6 +188,8 @@ export default {
176
188
  required: true,
177
189
  },
178
190
  ],
191
+ alternativeCommands: ['browser/switchWindow'],
192
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L121-L130']
179
193
  },
180
194
  },
181
195
  '/session/:sessionId/window/new': {
@@ -196,6 +210,7 @@ export default {
196
210
  name: 'window',
197
211
  description: "New window object containing 'handle' with the value of the handle and 'type' with the value of the created window type",
198
212
  },
213
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L134-L136']
199
214
  },
200
215
  },
201
216
  '/session/:sessionId/window/handles': {
@@ -209,12 +224,13 @@ export default {
209
224
  name: 'handles',
210
225
  description: 'An array which is a list of window handles.',
211
226
  },
227
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L140-L143']
212
228
  },
213
229
  },
214
230
  '/session/:sessionId/print': {
215
231
  POST: {
216
232
  command: 'printPage',
217
- description: 'The Print Page command renders the document to a paginated PDF document.',
233
+ description: 'The Print Page command renders the document to a paginated PDF document. __Note:__ Chrome currently only supports this in [headless mode](https://webdriver.io/docs/capabilities/#run-browser-headless), see [`crbug753118`](https://bugs.chromium.org/p/chromium/issues/detail?id=753118)).',
218
234
  ref: 'https://w3c.github.io/webdriver/#print-page',
219
235
  parameters: [
220
236
  {
@@ -289,6 +305,7 @@ export default {
289
305
  name: 'pdf',
290
306
  description: 'The base64-encoded PDF representation of the paginated document.',
291
307
  },
308
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L150-L151']
292
309
  },
293
310
  },
294
311
  '/session/:sessionId/frame': {
@@ -304,6 +321,7 @@ export default {
304
321
  required: true,
305
322
  },
306
323
  ],
324
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L155-L168']
307
325
  },
308
326
  },
309
327
  '/session/:sessionId/frame/parent': {
@@ -312,6 +330,7 @@ export default {
312
330
  description: 'The Switch to Parent Frame command sets the current browsing context for future commands to the parent of the current browsing context.',
313
331
  ref: 'https://w3c.github.io/webdriver/#dfn-switch-to-parent-frame',
314
332
  parameters: [],
333
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L172-L189']
315
334
  },
316
335
  },
317
336
  '/session/:sessionId/window/rect': {
@@ -325,6 +344,8 @@ export default {
325
344
  name: 'windowRect',
326
345
  description: 'A JSON representation of a "window rect" object. This has 4 properties: `x`, `y`, `width` and `height`.',
327
346
  },
347
+ alternativeCommands: ['browser/getWindowSize'],
348
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L193-L196']
328
349
  },
329
350
  POST: {
330
351
  command: 'setWindowRect',
@@ -356,11 +377,13 @@ export default {
356
377
  required: true,
357
378
  },
358
379
  ],
380
+ alternativeCommands: ['browser/setWindowSize'],
359
381
  returns: {
360
382
  type: 'Object',
361
383
  name: 'windowRect',
362
384
  description: 'A JSON representation of a "window rect" object based on the new window state.',
363
385
  },
386
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L200-L204']
364
387
  },
365
388
  },
366
389
  '/session/:sessionId/window/maximize': {
@@ -374,6 +397,7 @@ export default {
374
397
  name: 'windowRect',
375
398
  description: 'A JSON representation of a "window rect" object based on the new window state.',
376
399
  },
400
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L208-L212']
377
401
  },
378
402
  },
379
403
  '/session/:sessionId/window/minimize': {
@@ -407,14 +431,6 @@ export default {
407
431
  command: 'findElement',
408
432
  description: 'The Find Element command is used to find an element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.',
409
433
  ref: 'https://w3c.github.io/webdriver/#dfn-find-element',
410
- examples: [
411
- [
412
- '// get element',
413
- "const elementRef = await browser.findElement('xpath', '//div')",
414
- 'const element = await $(elementRef)',
415
- 'await element.click()',
416
- ],
417
- ],
418
434
  parameters: [
419
435
  {
420
436
  name: 'using',
@@ -434,6 +450,8 @@ export default {
434
450
  name: 'element',
435
451
  description: "A JSON representation of an element object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`.",
436
452
  },
453
+ alternativeCommands: ['browser/$'],
454
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L226-L232']
437
455
  },
438
456
  },
439
457
  '/session/:sessionId/shadow/:shadowId/element': {
@@ -441,21 +459,6 @@ export default {
441
459
  command: 'findElementFromShadowRoot',
442
460
  description: 'The Find Element From Shadow Root command is used to find an element within the shadow root of an element that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.',
443
461
  ref: 'https://w3c.github.io/webdriver/#find-element-from-shadow-root',
444
- examples: [
445
- [
446
- '// get shadow root',
447
- "const element = await browser.findElement('xpath', '//div')",
448
- 'const shadowRoot = await browser.getElementShadowRoot(',
449
- " element['element-6066-11e4-a52e-4f735466cecf']",
450
- ')',
451
- '// fetch element within that shadow root',
452
- 'const elementRef = await browser.findElementFromShadowRoot(',
453
- " shadowRoot['shadow-6066-11e4-a52e-4f735466cecf'],",
454
- " 'xpath',",
455
- " '//div'",
456
- ')',
457
- ],
458
- ],
459
462
  variables: [
460
463
  {
461
464
  name: 'shadowId',
@@ -476,11 +479,13 @@ export default {
476
479
  required: true,
477
480
  },
478
481
  ],
482
+ alternativeCommands: ['element/shadow$'],
479
483
  returns: {
480
484
  type: 'object',
481
485
  name: 'element',
482
486
  description: "A JSON representation of an element shadow object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`.",
483
487
  },
488
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L236-L248']
484
489
  },
485
490
  },
486
491
  '/session/:sessionId/elements': {
@@ -502,11 +507,13 @@ export default {
502
507
  required: true,
503
508
  },
504
509
  ],
510
+ alternativeCommands: ['browser/$$'],
505
511
  returns: {
506
512
  type: 'object[]',
507
513
  name: 'elements',
508
514
  description: "A (possibly empty) JSON list of representations of an element object, e.g. `[{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }]`.",
509
515
  },
516
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L252-L254']
510
517
  },
511
518
  },
512
519
  '/session/:sessionId/shadow/:shadowId/elements': {
@@ -520,6 +527,7 @@ export default {
520
527
  description: 'element id of a shadow root element',
521
528
  },
522
529
  ],
530
+ alternativeCommands: ['element/shadow$$'],
523
531
  parameters: [
524
532
  {
525
533
  name: 'using',
@@ -534,21 +542,7 @@ export default {
534
542
  required: true,
535
543
  },
536
544
  ],
537
- examples: [
538
- [
539
- '// get shadow root',
540
- "const element = await browser.findElement('xpath', '//div')",
541
- 'const shadowRoot = await browser.getElementShadowRoot(',
542
- " element['element-6066-11e4-a52e-4f735466cecf']",
543
- ')',
544
- '// fetch elements within that shadow root',
545
- 'const elementRef = await browser.findElementsFromShadowRoot(',
546
- " shadowRoot['shadow-6066-11e4-a52e-4f735466cecf'],",
547
- " 'xpath',",
548
- " '//div'",
549
- ')',
550
- ],
551
- ],
545
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L258-L268'],
552
546
  returns: {
553
547
  type: 'object[]',
554
548
  name: 'elements',
@@ -581,11 +575,13 @@ export default {
581
575
  required: true,
582
576
  },
583
577
  ],
578
+ alternativeCommands: ['element/$'],
584
579
  returns: {
585
580
  type: 'object',
586
581
  name: 'element',
587
582
  description: "A JSON representation of an element object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`.",
588
583
  },
584
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L272-L279']
589
585
  },
590
586
  },
591
587
  '/session/:sessionId/element/:elementId/elements': {
@@ -613,11 +609,13 @@ export default {
613
609
  required: true,
614
610
  },
615
611
  ],
612
+ alternativeCommands: ['element/$$'],
616
613
  returns: {
617
614
  type: 'object[]',
618
615
  name: 'elements',
619
616
  description: "A (possibly empty) JSON list of representations of an element object, e.g. `[{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }]`.",
620
617
  },
618
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L283-L290']
621
619
  },
622
620
  },
623
621
  '/session/:sessionId/element/:elementId/shadow': {
@@ -637,6 +635,8 @@ export default {
637
635
  name: 'element',
638
636
  description: "A JSON representation of an element shadow root, e.g. `{ 'shadow-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`.",
639
637
  },
638
+ alternativeCommands: ['element/shadow$'],
639
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L294-L305']
640
640
  },
641
641
  },
642
642
  '/session/:sessionId/element/active': {
@@ -650,6 +650,7 @@ export default {
650
650
  name: 'element',
651
651
  description: "A JSON representation of an element object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`.",
652
652
  },
653
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L309-L316']
653
654
  },
654
655
  },
655
656
  '/session/:sessionId/element/:elementId/selected': {
@@ -669,6 +670,8 @@ export default {
669
670
  name: 'isSelected',
670
671
  description: '`true` or `false` based on the selected state.',
671
672
  },
673
+ alternativeCommands: ['element/isSelected'],
674
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L322-L325']
672
675
  },
673
676
  },
674
677
  '/session/:sessionId/element/:elementId/displayed': {
@@ -688,6 +691,8 @@ export default {
688
691
  name: 'isDisplayed',
689
692
  description: '`true` or `false` based on the visible state.',
690
693
  },
694
+ alternativeCommands: ['element/isDisplayed'],
695
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L331-L333']
691
696
  },
692
697
  },
693
698
  '/session/:sessionId/element/:elementId/attribute/:name': {
@@ -711,6 +716,8 @@ export default {
711
716
  name: 'attribute',
712
717
  description: 'The named attribute of the element.',
713
718
  },
719
+ alternativeCommands: ['element/getAttribute'],
720
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L339-L341']
714
721
  },
715
722
  },
716
723
  '/session/:sessionId/element/:elementId/property/:name': {
@@ -734,6 +741,8 @@ export default {
734
741
  name: 'property',
735
742
  description: 'The named property of the element, accessed by calling GetOwnProperty on the element object.',
736
743
  },
744
+ alternativeCommands: ['element/getProperty'],
745
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L347-L349']
737
746
  },
738
747
  },
739
748
  '/session/:sessionId/element/:elementId/css/:propertyName': {
@@ -752,11 +761,13 @@ export default {
752
761
  },
753
762
  ],
754
763
  parameters: [],
764
+ alternativeCommands: ['element/getCSSProperty'],
755
765
  returns: {
756
766
  type: 'string',
757
767
  name: 'cssValue',
758
768
  description: "The computed value of the parameter corresponding to property name from the element's style declarations (unless the document type is xml, in which case the return value is simply the empty string).",
759
769
  },
770
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L355-L357']
760
771
  },
761
772
  },
762
773
  '/session/:sessionId/element/:elementId/text': {
@@ -776,6 +787,7 @@ export default {
776
787
  name: 'text',
777
788
  description: 'The visible text of the element (including child elements), following the algorithm defined in the Selenium Atoms for [`bot.dom.getVisibleText`](https://github.com/SeleniumHQ/selenium/blob/e09e28f016c9f53196cf68d6f71991c5af4a35d4/javascript/atoms/dom.js#L981).',
778
789
  },
790
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L363-L365']
779
791
  },
780
792
  },
781
793
  '/session/:sessionId/element/:elementId/name': {
@@ -795,6 +807,8 @@ export default {
795
807
  name: 'text',
796
808
  description: 'The tagName attribute of the element.',
797
809
  },
810
+ alternativeCommands: ['element/getTagName'],
811
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L371-L373']
798
812
  },
799
813
  },
800
814
  '/session/:sessionId/element/:elementId/rect': {
@@ -814,6 +828,8 @@ export default {
814
828
  name: 'elementRect',
815
829
  description: 'A JSON object representing the position and bounding rect of the element.',
816
830
  },
831
+ alternativeCommands: ['element/getSize', 'element/getLocation'],
832
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L379-L381']
817
833
  },
818
834
  },
819
835
  '/session/:sessionId/element/:elementId/enabled': {
@@ -833,6 +849,8 @@ export default {
833
849
  name: 'isEnabled',
834
850
  description: 'If the element is in an xml document, or is a disabled form control: `false`, otherwise, `true`.',
835
851
  },
852
+ alternativeCommands: ['element/isEnabled'],
853
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L387-L390']
836
854
  },
837
855
  },
838
856
  '/session/:sessionId/element/:elementId/click': {
@@ -847,6 +865,8 @@ export default {
847
865
  },
848
866
  ],
849
867
  parameters: [],
868
+ alternativeCommands: ['element/click'],
869
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L396-L398']
850
870
  },
851
871
  },
852
872
  '/session/:sessionId/element/:elementId/clear': {
@@ -861,6 +881,8 @@ export default {
861
881
  },
862
882
  ],
863
883
  parameters: [],
884
+ alternativeCommands: ['element/clearValue'],
885
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L404-L407']
864
886
  },
865
887
  },
866
888
  '/session/:sessionId/element/:elementId/value': {
@@ -882,6 +904,8 @@ export default {
882
904
  required: true,
883
905
  },
884
906
  ],
907
+ alternativeCommands: ['element/addValue', 'element/setValue'],
908
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L413-L416']
885
909
  },
886
910
  },
887
911
  '/session/:sessionId/source': {
@@ -895,6 +919,7 @@ export default {
895
919
  name: 'pageSource',
896
920
  description: 'the DOM of the current browsing context active document',
897
921
  },
922
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L420-L421']
898
923
  },
899
924
  },
900
925
  '/session/:sessionId/execute/sync': {
@@ -911,7 +936,7 @@ export default {
911
936
  },
912
937
  {
913
938
  name: 'args',
914
- type: '(string|object|number|boolean|undefined)[]',
939
+ type: '(string|object|number|boolean|null|undefined)[]',
915
940
  description: 'an array of JSON values which will be deserialized and passed as arguments to your function',
916
941
  required: true,
917
942
  },
@@ -921,6 +946,8 @@ export default {
921
946
  name: 'result',
922
947
  description: "Either the return value of your script, the fulfillment of the Promise returned by your script, or the error which was the reason for your script's returned Promise's rejection.",
923
948
  },
949
+ alternativeCommands: ['browser/execute'],
950
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L425-L426']
924
951
  },
925
952
  },
926
953
  '/session/:sessionId/execute/async': {
@@ -937,7 +964,7 @@ export default {
937
964
  },
938
965
  {
939
966
  name: 'args',
940
- type: '(string|object|number|boolean|undefined)[]',
967
+ type: '(string|object|number|boolean|null|undefined)[]',
941
968
  description: 'an array of JSON values which will be deserialized and passed as arguments to your function',
942
969
  required: true,
943
970
  },
@@ -947,6 +974,8 @@ export default {
947
974
  name: 'result',
948
975
  description: "Either the return value of your script, the fulfillment of the Promise returned by your script, or the error which was the reason for your script's returned Promise's rejection.",
949
976
  },
977
+ alternativeCommands: ['browser/executeAsync'],
978
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L430-L434']
950
979
  },
951
980
  },
952
981
  '/session/:sessionId/cookie': {
@@ -960,6 +989,7 @@ export default {
960
989
  name: 'cookies',
961
990
  description: 'A list of serialized cookies. Each serialized cookie has a number of optional fields which may or may not be returned in addition to `name` and `value`.',
962
991
  },
992
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L438-L455']
963
993
  },
964
994
  POST: {
965
995
  command: 'addCookie',
@@ -973,12 +1003,14 @@ export default {
973
1003
  required: true,
974
1004
  },
975
1005
  ],
1006
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L459-L477']
976
1007
  },
977
1008
  DELETE: {
978
1009
  command: 'deleteAllCookies',
979
1010
  description: "The Delete All Cookies command allows deletion of all cookies associated with the active document's address.",
980
1011
  ref: 'https://w3c.github.io/webdriver/#dfn-delete-all-cookies',
981
1012
  parameters: [],
1013
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L481-L485']
982
1014
  },
983
1015
  },
984
1016
  '/session/:sessionId/cookie/:name': {
@@ -998,6 +1030,7 @@ export default {
998
1030
  name: 'cookie',
999
1031
  description: 'A serialized cookie, with name and value fields. There are a number of optional fields like `path`, `domain`, and `expiry-time` which may also be present.',
1000
1032
  },
1033
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L489-L503']
1001
1034
  },
1002
1035
  DELETE: {
1003
1036
  command: 'deleteCookie',
@@ -1010,6 +1043,7 @@ export default {
1010
1043
  },
1011
1044
  ],
1012
1045
  parameters: [],
1046
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L507-L512']
1013
1047
  },
1014
1048
  },
1015
1049
  '/session/:sessionId/actions': {
@@ -1039,6 +1073,7 @@ export default {
1039
1073
  description: 'The Dismiss Alert command dismisses a simple dialog if present, otherwise error. A request to dismiss an alert user prompt, which may not necessarily have a dismiss button, has the same effect as accepting it.',
1040
1074
  ref: 'https://w3c.github.io/webdriver/#dfn-dismiss-alert',
1041
1075
  parameters: [],
1076
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L516-L517']
1042
1077
  },
1043
1078
  },
1044
1079
  '/session/:sessionId/alert/accept': {
@@ -1060,6 +1095,7 @@ export default {
1060
1095
  name: 'alertText',
1061
1096
  description: 'The message of the user prompt.',
1062
1097
  },
1098
+ exampleReferences: ['https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/api/webdriver/examples.js#L521-L522']
1063
1099
  },
1064
1100
  POST: {
1065
1101
  command: 'sendAlertText',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/protocols",
3
- "version": "8.3.5",
3
+ "version": "8.5.6",
4
4
  "description": "Utility package providing information about automation protocols",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-protocols",
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "cc6deb72e7c4f064074ca8a2e101da7c08db8b4b"
27
+ "gitHead": "01be486a93582b19bfade3f6f0778f2b5e2d4c01"
28
28
  }