@appium/base-driver 9.15.0 → 9.16.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 (43) hide show
  1. package/build/lib/basedriver/commands/execute.d.ts.map +1 -1
  2. package/build/lib/basedriver/commands/execute.js +24 -2
  3. package/build/lib/basedriver/commands/execute.js.map +1 -1
  4. package/build/lib/basedriver/driver.d.ts +7 -1
  5. package/build/lib/basedriver/driver.d.ts.map +1 -1
  6. package/build/lib/basedriver/driver.js +8 -0
  7. package/build/lib/basedriver/driver.js.map +1 -1
  8. package/build/lib/express/server.d.ts +23 -17
  9. package/build/lib/express/server.d.ts.map +1 -1
  10. package/build/lib/express/server.js +15 -3
  11. package/build/lib/express/server.js.map +1 -1
  12. package/build/lib/index.d.ts +1 -0
  13. package/build/lib/index.d.ts.map +1 -1
  14. package/build/lib/index.js +4 -1
  15. package/build/lib/index.js.map +1 -1
  16. package/build/lib/jsonwp-proxy/proxy.d.ts +17 -1
  17. package/build/lib/jsonwp-proxy/proxy.d.ts.map +1 -1
  18. package/build/lib/jsonwp-proxy/proxy.js +20 -3
  19. package/build/lib/jsonwp-proxy/proxy.js.map +1 -1
  20. package/build/lib/protocol/bidi-commands.js +3 -2
  21. package/build/lib/protocol/bidi-commands.js.map +1 -1
  22. package/build/lib/protocol/index.d.ts +3 -1
  23. package/build/lib/protocol/index.d.ts.map +1 -1
  24. package/build/lib/protocol/index.js +3 -1
  25. package/build/lib/protocol/index.js.map +1 -1
  26. package/build/lib/protocol/protocol.d.ts +5 -3
  27. package/build/lib/protocol/protocol.d.ts.map +1 -1
  28. package/build/lib/protocol/protocol.js +10 -11
  29. package/build/lib/protocol/protocol.js.map +1 -1
  30. package/build/lib/protocol/routes.d.ts +637 -602
  31. package/build/lib/protocol/routes.d.ts.map +1 -1
  32. package/build/lib/protocol/routes.js +370 -351
  33. package/build/lib/protocol/routes.js.map +1 -1
  34. package/lib/basedriver/commands/execute.ts +27 -2
  35. package/lib/basedriver/driver.ts +10 -0
  36. package/lib/express/server.js +24 -6
  37. package/lib/index.js +3 -0
  38. package/lib/jsonwp-proxy/proxy.js +20 -3
  39. package/lib/protocol/bidi-commands.js +1 -3
  40. package/lib/protocol/index.js +4 -0
  41. package/lib/protocol/protocol.js +5 -6
  42. package/lib/protocol/routes.js +452 -437
  43. package/package.json +6 -11
@@ -27,14 +27,10 @@ export const METHOD_MAP: {
27
27
  };
28
28
  };
29
29
  };
30
- readonly '/sessions': {
31
- readonly GET: {
32
- readonly command: "getSessions";
33
- };
34
- };
35
30
  readonly '/session/:sessionId': {
36
31
  readonly GET: {
37
32
  readonly command: "getSession";
33
+ readonly deprecated: true;
38
34
  };
39
35
  readonly DELETE: {
40
36
  readonly command: "deleteSession";
@@ -52,39 +48,6 @@ export const METHOD_MAP: {
52
48
  };
53
49
  };
54
50
  };
55
- readonly '/session/:sessionId/timeouts/async_script': {
56
- readonly POST: {
57
- readonly command: "asyncScriptTimeout";
58
- readonly payloadParams: {
59
- readonly required: readonly ["ms"];
60
- };
61
- readonly deprecated: true;
62
- };
63
- };
64
- readonly '/session/:sessionId/timeouts/implicit_wait': {
65
- readonly POST: {
66
- readonly command: "implicitWait";
67
- readonly payloadParams: {
68
- readonly required: readonly ["ms"];
69
- };
70
- readonly deprecated: true;
71
- };
72
- };
73
- readonly '/session/:sessionId/window_handle': {
74
- readonly GET: {
75
- readonly command: "getWindowHandle";
76
- };
77
- };
78
- readonly '/session/:sessionId/window/handle': {
79
- readonly GET: {
80
- readonly command: "getWindowHandle";
81
- };
82
- };
83
- readonly '/session/:sessionId/window_handles': {
84
- readonly GET: {
85
- readonly command: "getWindowHandles";
86
- };
87
- };
88
51
  readonly '/session/:sessionId/window/handles': {
89
52
  readonly GET: {
90
53
  readonly command: "getWindowHandles";
@@ -116,60 +79,11 @@ export const METHOD_MAP: {
116
79
  readonly command: "refresh";
117
80
  };
118
81
  };
119
- readonly '/session/:sessionId/execute': {
120
- readonly POST: {
121
- readonly command: "execute";
122
- readonly payloadParams: {
123
- readonly required: readonly ["script", "args"];
124
- };
125
- };
126
- };
127
- readonly '/session/:sessionId/execute_async': {
128
- readonly POST: {
129
- readonly command: "executeAsync";
130
- readonly payloadParams: {
131
- readonly required: readonly ["script", "args"];
132
- };
133
- };
134
- };
135
82
  readonly '/session/:sessionId/screenshot': {
136
83
  readonly GET: {
137
84
  readonly command: "getScreenshot";
138
85
  };
139
86
  };
140
- readonly '/session/:sessionId/ime/available_engines': {
141
- readonly GET: {
142
- readonly command: "availableIMEEngines";
143
- readonly deprecated: true;
144
- };
145
- };
146
- readonly '/session/:sessionId/ime/active_engine': {
147
- readonly GET: {
148
- readonly command: "getActiveIMEEngine";
149
- readonly deprecated: true;
150
- };
151
- };
152
- readonly '/session/:sessionId/ime/activated': {
153
- readonly GET: {
154
- readonly command: "isIMEActivated";
155
- readonly deprecated: true;
156
- };
157
- };
158
- readonly '/session/:sessionId/ime/deactivate': {
159
- readonly POST: {
160
- readonly command: "deactivateIMEEngine";
161
- readonly deprecated: true;
162
- };
163
- };
164
- readonly '/session/:sessionId/ime/activate': {
165
- readonly POST: {
166
- readonly command: "activateIMEEngine";
167
- readonly payloadParams: {
168
- readonly required: readonly ["engine"];
169
- };
170
- readonly deprecated: true;
171
- };
172
- };
173
87
  readonly '/session/:sessionId/frame': {
174
88
  readonly POST: {
175
89
  readonly command: "setFrame";
@@ -199,23 +113,27 @@ export const METHOD_MAP: {
199
113
  readonly command: "closeWindow";
200
114
  };
201
115
  };
202
- readonly '/session/:sessionId/window/:windowhandle/size': {
203
- readonly GET: {
204
- readonly command: "getWindowSize";
205
- readonly deprecated: true;
116
+ readonly '/session/:sessionId/window/maximize': {
117
+ readonly POST: {
118
+ readonly command: "maximizeWindow";
206
119
  };
207
120
  };
208
- readonly '/session/:sessionId/window/:windowhandle/position': {
121
+ readonly '/session/:sessionId/window/minimize': {
209
122
  readonly POST: {
210
- readonly deprecated: true;
123
+ readonly command: "minimizeWindow";
211
124
  };
212
- readonly GET: {
213
- readonly deprecated: true;
125
+ };
126
+ readonly '/session/:sessionId/window/fullscreen': {
127
+ readonly POST: {
128
+ readonly command: "fullScreenWindow";
214
129
  };
215
130
  };
216
- readonly '/session/:sessionId/window/:windowhandle/maximize': {
131
+ readonly '/session/:sessionId/window/new': {
217
132
  readonly POST: {
218
- readonly command: "maximizeWindow";
133
+ readonly command: "createNewWindow";
134
+ readonly payloadParams: {
135
+ readonly optional: readonly ["type"];
136
+ };
219
137
  };
220
138
  };
221
139
  readonly '/session/:sessionId/cookie': {
@@ -272,6 +190,7 @@ export const METHOD_MAP: {
272
190
  };
273
191
  readonly POST: {
274
192
  readonly command: "active";
193
+ readonly deprecated: true;
275
194
  };
276
195
  };
277
196
  readonly '/session/:sessionId/element/:elementId': {
@@ -298,12 +217,6 @@ export const METHOD_MAP: {
298
217
  readonly command: "click";
299
218
  };
300
219
  };
301
- readonly '/session/:sessionId/element/:elementId/submit': {
302
- readonly POST: {
303
- readonly command: "submit";
304
- readonly deprecated: true;
305
- };
306
- };
307
220
  readonly '/session/:sessionId/element/:elementId/text': {
308
221
  readonly GET: {
309
222
  readonly command: "getText";
@@ -319,15 +232,6 @@ export const METHOD_MAP: {
319
232
  };
320
233
  };
321
234
  };
322
- readonly '/session/:sessionId/keys': {
323
- readonly POST: {
324
- readonly command: "keys";
325
- readonly payloadParams: {
326
- readonly required: readonly ["value"];
327
- };
328
- readonly deprecated: true;
329
- };
330
- };
331
235
  readonly '/session/:sessionId/element/:elementId/name': {
332
236
  readonly GET: {
333
237
  readonly command: "getName";
@@ -353,35 +257,11 @@ export const METHOD_MAP: {
353
257
  readonly command: "getAttribute";
354
258
  };
355
259
  };
356
- readonly '/session/:sessionId/element/:elementId/equals/:otherId': {
357
- readonly GET: {
358
- readonly command: "equalsElement";
359
- readonly deprecated: true;
360
- };
361
- };
362
260
  readonly '/session/:sessionId/element/:elementId/displayed': {
363
261
  readonly GET: {
364
262
  readonly command: "elementDisplayed";
365
263
  };
366
264
  };
367
- readonly '/session/:sessionId/element/:elementId/location': {
368
- readonly GET: {
369
- readonly command: "getLocation";
370
- readonly deprecated: true;
371
- };
372
- };
373
- readonly '/session/:sessionId/element/:elementId/location_in_view': {
374
- readonly GET: {
375
- readonly command: "getLocationInView";
376
- readonly deprecated: true;
377
- };
378
- };
379
- readonly '/session/:sessionId/element/:elementId/size': {
380
- readonly GET: {
381
- readonly command: "getSize";
382
- readonly deprecated: true;
383
- };
384
- };
385
265
  readonly '/session/:sessionId/element/:elementId/shadow': {
386
266
  readonly GET: {
387
267
  readonly command: "elementShadowRoot";
@@ -408,15 +288,9 @@ export const METHOD_MAP: {
408
288
  readonly command: "getCssProperty";
409
289
  };
410
290
  };
411
- readonly '/session/:sessionId/orientation': {
291
+ readonly '/session/:sessionId/element/:elementId/property/:name': {
412
292
  readonly GET: {
413
- readonly command: "getOrientation";
414
- };
415
- readonly POST: {
416
- readonly command: "setOrientation";
417
- readonly payloadParams: {
418
- readonly required: readonly ["orientation"];
419
- };
293
+ readonly command: "getProperty";
420
294
  };
421
295
  };
422
296
  readonly 'session/:sessionId/element/:elementId/computedrole': {
@@ -429,141 +303,619 @@ export const METHOD_MAP: {
429
303
  readonly command: "getComputedLabel";
430
304
  };
431
305
  };
432
- readonly '/session/:sessionId/rotation': {
433
- readonly GET: {
434
- readonly command: "getRotation";
435
- };
306
+ readonly '/session/:sessionId/actions': {
436
307
  readonly POST: {
437
- readonly command: "setRotation";
308
+ readonly command: "performActions";
438
309
  readonly payloadParams: {
439
- readonly required: readonly ["x", "y", "z"];
310
+ readonly required: readonly ["actions"];
440
311
  };
441
312
  };
442
- };
443
- readonly '/session/:sessionId/moveto': {
444
- readonly POST: {
445
- readonly command: "moveTo";
446
- readonly payloadParams: {
447
- readonly optional: readonly ["element", "xoffset", "yoffset"];
448
- };
449
- readonly deprecated: true;
313
+ readonly DELETE: {
314
+ readonly command: "releaseActions";
450
315
  };
451
316
  };
452
- readonly '/session/:sessionId/click': {
317
+ readonly '/session/:sessionId/alert/text': {
318
+ readonly GET: {
319
+ readonly command: "getAlertText";
320
+ };
453
321
  readonly POST: {
454
- readonly command: "clickCurrent";
322
+ readonly command: "setAlertText";
455
323
  readonly payloadParams: {
456
- readonly optional: readonly ["button"];
324
+ validate: (jsonObj: any) => false | "either \"text\" or \"value\" must be set";
325
+ optional: string[];
326
+ makeArgs: (jsonObj: any) => any[];
457
327
  };
458
- readonly deprecated: true;
459
328
  };
460
329
  };
461
- readonly '/session/:sessionId/buttondown': {
330
+ readonly '/session/:sessionId/alert/accept': {
462
331
  readonly POST: {
463
- readonly command: "buttonDown";
464
- readonly payloadParams: {
465
- readonly optional: readonly ["button"];
466
- };
467
- readonly deprecated: true;
332
+ readonly command: "postAcceptAlert";
468
333
  };
469
334
  };
470
- readonly '/session/:sessionId/buttonup': {
335
+ readonly '/session/:sessionId/alert/dismiss': {
471
336
  readonly POST: {
472
- readonly command: "buttonUp";
473
- readonly payloadParams: {
474
- readonly optional: readonly ["button"];
475
- };
476
- readonly deprecated: true;
337
+ readonly command: "postDismissAlert";
477
338
  };
478
339
  };
479
- readonly '/session/:sessionId/doubleclick': {
480
- readonly POST: {
481
- readonly command: "doubleClick";
482
- readonly deprecated: true;
340
+ readonly '/session/:sessionId/element/:elementId/rect': {
341
+ readonly GET: {
342
+ readonly command: "getElementRect";
483
343
  };
484
344
  };
485
- readonly '/session/:sessionId/touch/click': {
345
+ readonly '/session/:sessionId/execute/sync': {
486
346
  readonly POST: {
487
- readonly command: "click";
347
+ readonly command: "execute";
488
348
  readonly payloadParams: {
489
- readonly required: readonly ["element"];
349
+ readonly required: readonly ["script", "args"];
490
350
  };
491
- readonly deprecated: true;
492
351
  };
493
352
  };
494
- readonly '/session/:sessionId/touch/down': {
353
+ readonly '/session/:sessionId/execute/async': {
495
354
  readonly POST: {
496
- readonly command: "touchDown";
355
+ readonly command: "executeAsync";
497
356
  readonly payloadParams: {
498
- readonly required: readonly ["x", "y"];
357
+ readonly required: readonly ["script", "args"];
499
358
  };
500
- readonly deprecated: true;
501
359
  };
502
360
  };
503
- readonly '/session/:sessionId/touch/up': {
504
- readonly POST: {
505
- readonly command: "touchUp";
506
- readonly payloadParams: {
507
- readonly required: readonly ["x", "y"];
508
- };
509
- readonly deprecated: true;
361
+ readonly '/session/:sessionId/element/:elementId/screenshot': {
362
+ readonly GET: {
363
+ readonly command: "getElementScreenshot";
510
364
  };
511
365
  };
512
- readonly '/session/:sessionId/touch/move': {
366
+ readonly '/session/:sessionId/window/rect': {
367
+ readonly GET: {
368
+ readonly command: "getWindowRect";
369
+ };
513
370
  readonly POST: {
514
- readonly command: "touchMove";
371
+ readonly command: "setWindowRect";
515
372
  readonly payloadParams: {
516
- readonly required: readonly ["x", "y"];
373
+ readonly optional: readonly ["x", "y", "width", "height"];
517
374
  };
518
- readonly deprecated: true;
519
375
  };
520
376
  };
521
- readonly '/session/:sessionId/touch/scroll': {
522
- readonly POST: {
523
- readonly deprecated: true;
377
+ readonly '/session/:sessionId/ime/available_engines': {
378
+ readonly GET: {
379
+ readonly command: "availableIMEEngines";
524
380
  };
525
381
  };
526
- readonly '/session/:sessionId/touch/doubleclick': {
527
- readonly POST: {};
382
+ readonly '/session/:sessionId/ime/active_engine': {
383
+ readonly GET: {
384
+ readonly command: "getActiveIMEEngine";
385
+ };
386
+ };
387
+ readonly '/session/:sessionId/ime/activated': {
388
+ readonly GET: {
389
+ readonly command: "isIMEActivated";
390
+ };
391
+ };
392
+ readonly '/session/:sessionId/ime/deactivate': {
393
+ readonly POST: {
394
+ readonly command: "deactivateIMEEngine";
395
+ };
396
+ };
397
+ readonly '/session/:sessionId/ime/activate': {
398
+ readonly POST: {
399
+ readonly command: "activateIMEEngine";
400
+ readonly payloadParams: {
401
+ readonly required: readonly ["engine"];
402
+ };
403
+ };
404
+ };
405
+ readonly '/session/:sessionId/rotation': {
406
+ readonly GET: {
407
+ readonly command: "getRotation";
408
+ };
409
+ readonly POST: {
410
+ readonly command: "setRotation";
411
+ readonly payloadParams: {
412
+ readonly required: readonly ["x", "y", "z"];
413
+ };
414
+ };
415
+ };
416
+ readonly '/session/:sessionId/location': {
417
+ readonly GET: {
418
+ readonly command: "getGeoLocation";
419
+ };
420
+ readonly POST: {
421
+ readonly command: "setGeoLocation";
422
+ readonly payloadParams: {
423
+ readonly required: readonly ["location"];
424
+ };
425
+ };
426
+ };
427
+ readonly '/session/:sessionId/orientation': {
428
+ readonly GET: {
429
+ readonly command: "getOrientation";
430
+ };
431
+ readonly POST: {
432
+ readonly command: "setOrientation";
433
+ readonly payloadParams: {
434
+ readonly required: readonly ["orientation"];
435
+ };
436
+ };
437
+ };
438
+ readonly '/session/:sessionId/context': {
439
+ readonly GET: {
440
+ readonly command: "getCurrentContext";
441
+ };
442
+ readonly POST: {
443
+ readonly command: "setContext";
444
+ readonly payloadParams: {
445
+ readonly required: readonly ["name"];
446
+ };
447
+ };
448
+ };
449
+ readonly '/session/:sessionId/contexts': {
450
+ readonly GET: {
451
+ readonly command: "getContexts";
452
+ };
453
+ };
454
+ readonly '/session/:sessionId/network_connection': {
455
+ readonly GET: {
456
+ readonly command: "getNetworkConnection";
457
+ };
458
+ readonly POST: {
459
+ readonly command: "setNetworkConnection";
460
+ readonly payloadParams: {
461
+ readonly unwrap: "parameters";
462
+ readonly required: readonly ["type"];
463
+ };
464
+ };
465
+ };
466
+ readonly '/session/:sessionId/receive_async_response': {
467
+ readonly POST: {
468
+ readonly command: "receiveAsyncResponse";
469
+ readonly payloadParams: {
470
+ readonly required: readonly ["status", "value"];
471
+ };
472
+ };
473
+ };
474
+ readonly '/appium/sessions': {
475
+ readonly GET: {
476
+ readonly command: "getAppiumSessions";
477
+ };
478
+ };
479
+ readonly '/session/:sessionId/appium/capabilities': {
480
+ readonly GET: {
481
+ readonly command: "getAppiumSessionCapabilities";
482
+ };
483
+ };
484
+ readonly '/session/:sessionId/appium/device/system_time': {
485
+ readonly GET: {
486
+ readonly command: "getDeviceTime";
487
+ readonly payloadParams: {
488
+ readonly optional: readonly ["format"];
489
+ };
490
+ };
491
+ readonly POST: {
492
+ readonly command: "getDeviceTime";
493
+ readonly payloadParams: {
494
+ readonly optional: readonly ["format"];
495
+ };
496
+ };
497
+ };
498
+ readonly '/session/:sessionId/appium/device/install_app': {
499
+ readonly POST: {
500
+ readonly command: "installApp";
501
+ readonly payloadParams: {
502
+ readonly required: readonly ["appPath"];
503
+ readonly optional: readonly ["options"];
504
+ };
505
+ };
506
+ };
507
+ readonly '/session/:sessionId/appium/device/activate_app': {
508
+ readonly POST: {
509
+ readonly command: "activateApp";
510
+ readonly payloadParams: {
511
+ readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
512
+ readonly optional: readonly ["options"];
513
+ };
514
+ };
515
+ };
516
+ readonly '/session/:sessionId/appium/device/remove_app': {
517
+ readonly POST: {
518
+ readonly command: "removeApp";
519
+ readonly payloadParams: {
520
+ readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
521
+ readonly optional: readonly ["options"];
522
+ };
523
+ };
524
+ };
525
+ readonly '/session/:sessionId/appium/device/terminate_app': {
526
+ readonly POST: {
527
+ readonly command: "terminateApp";
528
+ readonly payloadParams: {
529
+ readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
530
+ readonly optional: readonly ["options"];
531
+ };
532
+ };
533
+ };
534
+ readonly '/session/:sessionId/appium/device/app_installed': {
535
+ readonly POST: {
536
+ readonly command: "isAppInstalled";
537
+ readonly payloadParams: {
538
+ readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
539
+ };
540
+ };
541
+ };
542
+ readonly '/session/:sessionId/appium/device/app_state': {
543
+ readonly GET: {
544
+ readonly command: "queryAppState";
545
+ readonly payloadParams: {
546
+ readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
547
+ };
548
+ };
549
+ readonly POST: {
550
+ readonly command: "queryAppState";
551
+ readonly payloadParams: {
552
+ readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
553
+ };
554
+ readonly deprecated: true;
555
+ };
556
+ };
557
+ readonly '/session/:sessionId/appium/device/hide_keyboard': {
558
+ readonly POST: {
559
+ readonly command: "hideKeyboard";
560
+ readonly payloadParams: {
561
+ readonly optional: readonly ["strategy", "key", "keyCode", "keyName"];
562
+ };
563
+ };
564
+ };
565
+ readonly '/session/:sessionId/appium/device/is_keyboard_shown': {
566
+ readonly GET: {
567
+ readonly command: "isKeyboardShown";
568
+ };
569
+ };
570
+ readonly '/session/:sessionId/appium/device/push_file': {
571
+ readonly POST: {
572
+ readonly command: "pushFile";
573
+ readonly payloadParams: {
574
+ readonly required: readonly ["path", "data"];
575
+ };
576
+ };
577
+ };
578
+ readonly '/session/:sessionId/appium/device/pull_file': {
579
+ readonly POST: {
580
+ readonly command: "pullFile";
581
+ readonly payloadParams: {
582
+ readonly required: readonly ["path"];
583
+ };
584
+ };
585
+ };
586
+ readonly '/session/:sessionId/appium/device/pull_folder': {
587
+ readonly POST: {
588
+ readonly command: "pullFolder";
589
+ readonly payloadParams: {
590
+ readonly required: readonly ["path"];
591
+ };
592
+ };
593
+ };
594
+ readonly '/session/:sessionId/appium/settings': {
595
+ readonly POST: {
596
+ readonly command: "updateSettings";
597
+ readonly payloadParams: {
598
+ readonly required: readonly ["settings"];
599
+ };
600
+ };
601
+ readonly GET: {
602
+ readonly command: "getSettings";
603
+ };
604
+ };
605
+ readonly '/session/:sessionId/appium/events': {
606
+ readonly POST: {
607
+ readonly command: "getLogEvents";
608
+ readonly payloadParams: {
609
+ readonly optional: readonly ["type"];
610
+ };
611
+ };
612
+ };
613
+ readonly '/session/:sessionId/appium/log_event': {
614
+ readonly POST: {
615
+ readonly command: "logCustomEvent";
616
+ readonly payloadParams: {
617
+ readonly required: readonly ["vendor", "event"];
618
+ };
619
+ };
620
+ };
621
+ readonly '/session/:sessionId/appium/commands': {
622
+ readonly GET: {
623
+ readonly command: "listCommands";
624
+ };
625
+ };
626
+ readonly '/session/:sessionId/appium/extensions': {
627
+ readonly GET: {
628
+ readonly command: "listExtensions";
629
+ };
630
+ };
631
+ readonly '/session/:sessionId/se/log': {
632
+ readonly POST: {
633
+ readonly command: "getLog";
634
+ readonly payloadParams: {
635
+ readonly required: readonly ["type"];
636
+ };
637
+ };
638
+ };
639
+ readonly '/session/:sessionId/se/log/types': {
640
+ readonly GET: {
641
+ readonly command: "getLogTypes";
642
+ };
643
+ };
644
+ readonly '/session/:sessionId/:vendor/cdp/execute': {
645
+ readonly POST: {
646
+ readonly command: "executeCdp";
647
+ readonly payloadParams: {
648
+ readonly required: readonly ["cmd", "params"];
649
+ };
650
+ };
651
+ };
652
+ readonly '/session/:sessionId/webauthn/authenticator': {
653
+ readonly POST: {
654
+ readonly command: "addVirtualAuthenticator";
655
+ readonly payloadParams: {
656
+ readonly required: readonly ["protocol", "transport"];
657
+ readonly optional: readonly ["hasResidentKey", "hasUserVerification", "isUserConsenting", "isUserVerified"];
658
+ };
659
+ };
660
+ };
661
+ readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId': {
662
+ readonly DELETE: {
663
+ readonly command: "removeVirtualAuthenticator";
664
+ };
665
+ };
666
+ readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/credential': {
667
+ readonly POST: {
668
+ readonly command: "addAuthCredential";
669
+ readonly payloadParams: {
670
+ readonly required: readonly ["credentialId", "isResidentCredential", "rpId", "privateKey"];
671
+ readonly optional: readonly ["userHandle", "signCount"];
672
+ };
673
+ };
674
+ };
675
+ readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials': {
676
+ readonly GET: {
677
+ readonly command: "getAuthCredential";
678
+ };
679
+ readonly DELETE: {
680
+ readonly command: "removeAllAuthCredentials";
681
+ };
682
+ };
683
+ readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials/:credentialId': {
684
+ readonly DELETE: {
685
+ readonly command: "removeAuthCredential";
686
+ };
687
+ };
688
+ readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/uv': {
689
+ readonly POST: {
690
+ readonly command: "setUserAuthVerified";
691
+ readonly payloadParams: {
692
+ readonly required: readonly ["isUserVerified"];
693
+ };
694
+ };
695
+ };
696
+ readonly '/sessions': {
697
+ readonly GET: {
698
+ readonly command: "getSessions";
699
+ readonly deprecated: true;
700
+ };
701
+ };
702
+ readonly '/session/:sessionId/timeouts/async_script': {
703
+ readonly POST: {
704
+ readonly command: "asyncScriptTimeout";
705
+ readonly payloadParams: {
706
+ readonly required: readonly ["ms"];
707
+ };
708
+ readonly deprecated: true;
709
+ };
710
+ };
711
+ readonly '/session/:sessionId/timeouts/implicit_wait': {
712
+ readonly POST: {
713
+ readonly command: "implicitWait";
714
+ readonly payloadParams: {
715
+ readonly required: readonly ["ms"];
716
+ };
717
+ readonly deprecated: true;
718
+ };
719
+ };
720
+ readonly '/session/:sessionId/window_handle': {
721
+ readonly GET: {
722
+ readonly command: "getWindowHandle";
723
+ readonly deprecated: true;
724
+ };
725
+ };
726
+ readonly '/session/:sessionId/window/handle': {
727
+ readonly GET: {
728
+ readonly command: "getWindowHandle";
729
+ readonly deprecated: true;
730
+ };
731
+ };
732
+ readonly '/session/:sessionId/window_handles': {
733
+ readonly GET: {
734
+ readonly command: "getWindowHandles";
735
+ readonly deprecated: true;
736
+ };
737
+ };
738
+ readonly '/session/:sessionId/execute': {
739
+ readonly POST: {
740
+ readonly command: "execute";
741
+ readonly payloadParams: {
742
+ readonly required: readonly ["script", "args"];
743
+ };
744
+ readonly deprecated: true;
745
+ };
746
+ };
747
+ readonly '/session/:sessionId/execute_async': {
748
+ readonly POST: {
749
+ readonly command: "executeAsync";
750
+ readonly payloadParams: {
751
+ readonly required: readonly ["script", "args"];
752
+ };
753
+ readonly deprecated: true;
754
+ };
755
+ };
756
+ readonly '/session/:sessionId/window/:windowhandle/size': {
757
+ readonly GET: {
758
+ readonly command: "getWindowSize";
759
+ readonly deprecated: true;
760
+ };
761
+ };
762
+ readonly '/session/:sessionId/window/:windowhandle/position': {
763
+ readonly POST: {
764
+ readonly deprecated: true;
765
+ };
766
+ readonly GET: {
767
+ readonly deprecated: true;
768
+ };
769
+ };
770
+ readonly '/session/:sessionId/window/:windowhandle/maximize': {
771
+ readonly POST: {
772
+ readonly command: "maximizeWindow";
773
+ readonly deprecated: true;
774
+ };
775
+ };
776
+ readonly '/session/:sessionId/element/:elementId/submit': {
777
+ readonly POST: {
778
+ readonly command: "submit";
779
+ readonly deprecated: true;
780
+ };
781
+ };
782
+ readonly '/session/:sessionId/keys': {
783
+ readonly POST: {
784
+ readonly command: "keys";
785
+ readonly payloadParams: {
786
+ readonly required: readonly ["value"];
787
+ };
788
+ readonly deprecated: true;
789
+ };
790
+ };
791
+ readonly '/session/:sessionId/element/:elementId/equals/:otherId': {
792
+ readonly GET: {
793
+ readonly command: "equalsElement";
794
+ readonly deprecated: true;
795
+ };
796
+ };
797
+ readonly '/session/:sessionId/element/:elementId/location': {
798
+ readonly GET: {
799
+ readonly command: "getLocation";
800
+ readonly deprecated: true;
801
+ };
802
+ };
803
+ readonly '/session/:sessionId/element/:elementId/location_in_view': {
804
+ readonly GET: {
805
+ readonly command: "getLocationInView";
806
+ readonly deprecated: true;
807
+ };
808
+ };
809
+ readonly '/session/:sessionId/element/:elementId/size': {
810
+ readonly GET: {
811
+ readonly command: "getSize";
812
+ readonly deprecated: true;
813
+ };
814
+ };
815
+ readonly '/session/:sessionId/moveto': {
816
+ readonly POST: {
817
+ readonly command: "moveTo";
818
+ readonly payloadParams: {
819
+ readonly optional: readonly ["element", "xoffset", "yoffset"];
820
+ };
821
+ readonly deprecated: true;
822
+ };
823
+ };
824
+ readonly '/session/:sessionId/click': {
825
+ readonly POST: {
826
+ readonly command: "clickCurrent";
827
+ readonly payloadParams: {
828
+ readonly optional: readonly ["button"];
829
+ };
830
+ readonly deprecated: true;
831
+ };
832
+ };
833
+ readonly '/session/:sessionId/buttondown': {
834
+ readonly POST: {
835
+ readonly command: "buttonDown";
836
+ readonly payloadParams: {
837
+ readonly optional: readonly ["button"];
838
+ };
839
+ readonly deprecated: true;
840
+ };
841
+ };
842
+ readonly '/session/:sessionId/buttonup': {
843
+ readonly POST: {
844
+ readonly command: "buttonUp";
845
+ readonly payloadParams: {
846
+ readonly optional: readonly ["button"];
847
+ };
848
+ readonly deprecated: true;
849
+ };
850
+ };
851
+ readonly '/session/:sessionId/doubleclick': {
852
+ readonly POST: {
853
+ readonly command: "doubleClick";
854
+ readonly deprecated: true;
855
+ };
528
856
  };
529
- readonly '/session/:sessionId/actions': {
857
+ readonly '/session/:sessionId/touch/click': {
530
858
  readonly POST: {
531
- readonly command: "performActions";
859
+ readonly command: "click";
532
860
  readonly payloadParams: {
533
- readonly required: readonly ["actions"];
861
+ readonly required: readonly ["element"];
534
862
  };
863
+ readonly deprecated: true;
535
864
  };
536
- readonly DELETE: {
537
- readonly command: "releaseActions";
865
+ };
866
+ readonly '/session/:sessionId/touch/down': {
867
+ readonly POST: {
868
+ readonly command: "touchDown";
869
+ readonly payloadParams: {
870
+ readonly required: readonly ["x", "y"];
871
+ };
872
+ readonly deprecated: true;
538
873
  };
539
874
  };
540
- readonly '/session/:sessionId/touch/longclick': {
875
+ readonly '/session/:sessionId/touch/up': {
541
876
  readonly POST: {
542
- readonly command: "touchLongClick";
877
+ readonly command: "touchUp";
543
878
  readonly payloadParams: {
544
- readonly required: readonly ["elements"];
879
+ readonly required: readonly ["x", "y"];
545
880
  };
546
881
  readonly deprecated: true;
547
882
  };
548
883
  };
549
- readonly '/session/:sessionId/touch/flick': {
884
+ readonly '/session/:sessionId/touch/move': {
550
885
  readonly POST: {
551
- readonly command: "flick";
886
+ readonly command: "touchMove";
552
887
  readonly payloadParams: {
553
- readonly optional: readonly ["element", "xspeed", "yspeed", "xoffset", "yoffset", "speed"];
888
+ readonly required: readonly ["x", "y"];
554
889
  };
555
890
  readonly deprecated: true;
556
891
  };
557
892
  };
558
- readonly '/session/:sessionId/location': {
559
- readonly GET: {
560
- readonly command: "getGeoLocation";
893
+ readonly '/session/:sessionId/touch/scroll': {
894
+ readonly POST: {
895
+ readonly deprecated: true;
561
896
  };
897
+ };
898
+ readonly '/session/:sessionId/touch/doubleclick': {
562
899
  readonly POST: {
563
- readonly command: "setGeoLocation";
900
+ readonly deprecated: true;
901
+ };
902
+ };
903
+ readonly '/session/:sessionId/touch/longclick': {
904
+ readonly POST: {
905
+ readonly command: "touchLongClick";
564
906
  readonly payloadParams: {
565
- readonly required: readonly ["location"];
907
+ readonly required: readonly ["elements"];
908
+ };
909
+ readonly deprecated: true;
910
+ };
911
+ };
912
+ readonly '/session/:sessionId/touch/flick': {
913
+ readonly POST: {
914
+ readonly command: "flick";
915
+ readonly payloadParams: {
916
+ readonly optional: readonly ["element", "xspeed", "yspeed", "xoffset", "yoffset", "speed"];
566
917
  };
918
+ readonly deprecated: true;
567
919
  };
568
920
  };
569
921
  readonly '/session/:sessionId/local_storage': {
@@ -614,49 +966,42 @@ export const METHOD_MAP: {
614
966
  readonly deprecated: true;
615
967
  };
616
968
  };
617
- readonly '/session/:sessionId/se/log': {
618
- readonly POST: {
619
- readonly command: "getLog";
620
- readonly payloadParams: {
621
- readonly required: readonly ["type"];
622
- };
969
+ readonly '/session/:sessionId/application_cache/status': {
970
+ readonly GET: {
971
+ readonly deprecated: true;
623
972
  };
624
973
  };
625
- readonly '/session/:sessionId/se/log/types': {
974
+ readonly '/session/:sessionId/alert_text': {
626
975
  readonly GET: {
627
- readonly command: "getLogTypes";
976
+ readonly command: "getAlertText";
977
+ readonly deprecated: true;
628
978
  };
629
- };
630
- readonly '/session/:sessionId/log': {
631
979
  readonly POST: {
632
- readonly command: "getLog";
980
+ readonly command: "setAlertText";
633
981
  readonly payloadParams: {
634
- readonly required: readonly ["type"];
982
+ validate: (jsonObj: any) => false | "either \"text\" or \"value\" must be set";
983
+ optional: string[];
984
+ makeArgs: (jsonObj: any) => any[];
635
985
  };
986
+ readonly deprecated: true;
636
987
  };
637
988
  };
638
- readonly '/session/:sessionId/log/types': {
639
- readonly GET: {
640
- readonly command: "getLogTypes";
989
+ readonly '/session/:sessionId/accept_alert': {
990
+ readonly POST: {
991
+ readonly command: "postAcceptAlert";
992
+ readonly deprecated: true;
641
993
  };
642
994
  };
643
- readonly '/session/:sessionId/application_cache/status': {
644
- readonly GET: {};
645
- };
646
- readonly '/session/:sessionId/context': {
647
- readonly GET: {
648
- readonly command: "getCurrentContext";
649
- };
995
+ readonly '/session/:sessionId/dismiss_alert': {
650
996
  readonly POST: {
651
- readonly command: "setContext";
652
- readonly payloadParams: {
653
- readonly required: readonly ["name"];
654
- };
997
+ readonly command: "postDismissAlert";
998
+ readonly deprecated: true;
655
999
  };
656
1000
  };
657
- readonly '/session/:sessionId/contexts': {
1001
+ readonly '/session/:sessionId/screenshot/:elementId': {
658
1002
  readonly GET: {
659
- readonly command: "getContexts";
1003
+ readonly command: "getElementScreenshot";
1004
+ readonly deprecated: true;
660
1005
  };
661
1006
  };
662
1007
  readonly '/session/:sessionId/element/:elementId/pageIndex': {
@@ -665,18 +1010,6 @@ export const METHOD_MAP: {
665
1010
  readonly deprecated: true;
666
1011
  };
667
1012
  };
668
- readonly '/session/:sessionId/network_connection': {
669
- readonly GET: {
670
- readonly command: "getNetworkConnection";
671
- };
672
- readonly POST: {
673
- readonly command: "setNetworkConnection";
674
- readonly payloadParams: {
675
- readonly unwrap: "parameters";
676
- readonly required: readonly ["type"];
677
- };
678
- };
679
- };
680
1013
  readonly '/session/:sessionId/touch/perform': {
681
1014
  readonly POST: {
682
1015
  readonly command: "performTouch";
@@ -697,34 +1030,12 @@ export const METHOD_MAP: {
697
1030
  readonly deprecated: true;
698
1031
  };
699
1032
  };
700
- readonly '/session/:sessionId/receive_async_response': {
701
- readonly POST: {
702
- readonly command: "receiveAsyncResponse";
703
- readonly payloadParams: {
704
- readonly required: readonly ["status", "value"];
705
- };
706
- };
707
- };
708
1033
  readonly '/session/:sessionId/appium/device/shake': {
709
1034
  readonly POST: {
710
1035
  readonly command: "mobileShake";
711
1036
  readonly deprecated: true;
712
1037
  };
713
1038
  };
714
- readonly '/session/:sessionId/appium/device/system_time': {
715
- readonly GET: {
716
- readonly command: "getDeviceTime";
717
- readonly payloadParams: {
718
- readonly optional: readonly ["format"];
719
- };
720
- };
721
- readonly POST: {
722
- readonly command: "getDeviceTime";
723
- readonly payloadParams: {
724
- readonly optional: readonly ["format"];
725
- };
726
- };
727
- };
728
1039
  readonly '/session/:sessionId/appium/device/lock': {
729
1040
  readonly POST: {
730
1041
  readonly command: "lock";
@@ -824,170 +1135,74 @@ export const METHOD_MAP: {
824
1135
  readonly payloadParams: {
825
1136
  readonly required: readonly ["phoneNumber", "action"];
826
1137
  };
827
- readonly deprecated: true;
828
- };
829
- };
830
- readonly '/session/:sessionId/appium/device/gsm_signal': {
831
- readonly POST: {
832
- readonly command: "gsmSignal";
833
- readonly payloadParams: {
834
- readonly required: readonly ["signalStrength"];
835
- };
836
- readonly deprecated: true;
837
- };
838
- };
839
- readonly '/session/:sessionId/appium/device/gsm_voice': {
840
- readonly POST: {
841
- readonly command: "gsmVoice";
842
- readonly payloadParams: {
843
- readonly required: readonly ["state"];
844
- };
845
- readonly deprecated: true;
846
- };
847
- };
848
- readonly '/session/:sessionId/appium/device/power_capacity': {
849
- readonly POST: {
850
- readonly command: "powerCapacity";
851
- readonly payloadParams: {
852
- readonly required: readonly ["percent"];
853
- };
854
- readonly deprecated: true;
855
- };
856
- };
857
- readonly '/session/:sessionId/appium/device/power_ac': {
858
- readonly POST: {
859
- readonly command: "powerAC";
860
- readonly payloadParams: {
861
- readonly required: readonly ["state"];
862
- };
863
- readonly deprecated: true;
864
- };
865
- };
866
- readonly '/session/:sessionId/appium/device/network_speed': {
867
- readonly POST: {
868
- readonly command: "networkSpeed";
869
- readonly payloadParams: {
870
- readonly required: readonly ["netspeed"];
871
- };
872
- readonly deprecated: true;
873
- };
874
- };
875
- readonly '/session/:sessionId/appium/device/keyevent': {
876
- readonly POST: {
877
- readonly command: "keyevent";
878
- readonly payloadParams: {
879
- readonly required: readonly ["keycode"];
880
- readonly optional: readonly ["metastate"];
881
- };
882
- readonly deprecated: true;
883
- };
884
- };
885
- readonly '/session/:sessionId/appium/device/current_activity': {
886
- readonly GET: {
887
- readonly command: "getCurrentActivity";
888
- readonly deprecated: true;
889
- };
890
- };
891
- readonly '/session/:sessionId/appium/device/current_package': {
892
- readonly GET: {
893
- readonly command: "getCurrentPackage";
894
- readonly deprecated: true;
895
- };
896
- };
897
- readonly '/session/:sessionId/appium/device/install_app': {
898
- readonly POST: {
899
- readonly command: "installApp";
900
- readonly payloadParams: {
901
- readonly required: readonly ["appPath"];
902
- readonly optional: readonly ["options"];
903
- };
904
- };
905
- };
906
- readonly '/session/:sessionId/appium/device/activate_app': {
907
- readonly POST: {
908
- readonly command: "activateApp";
909
- readonly payloadParams: {
910
- readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
911
- readonly optional: readonly ["options"];
912
- };
913
- };
914
- };
915
- readonly '/session/:sessionId/appium/device/remove_app': {
916
- readonly POST: {
917
- readonly command: "removeApp";
918
- readonly payloadParams: {
919
- readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
920
- readonly optional: readonly ["options"];
921
- };
922
- };
923
- };
924
- readonly '/session/:sessionId/appium/device/terminate_app': {
925
- readonly POST: {
926
- readonly command: "terminateApp";
927
- readonly payloadParams: {
928
- readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
929
- readonly optional: readonly ["options"];
930
- };
931
- };
932
- };
933
- readonly '/session/:sessionId/appium/device/app_installed': {
934
- readonly POST: {
935
- readonly command: "isAppInstalled";
936
- readonly payloadParams: {
937
- readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
938
- };
1138
+ readonly deprecated: true;
939
1139
  };
940
1140
  };
941
- readonly '/session/:sessionId/appium/device/app_state': {
942
- readonly GET: {
943
- readonly command: "queryAppState";
1141
+ readonly '/session/:sessionId/appium/device/gsm_signal': {
1142
+ readonly POST: {
1143
+ readonly command: "gsmSignal";
944
1144
  readonly payloadParams: {
945
- readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
1145
+ readonly required: readonly ["signalStrength"];
946
1146
  };
1147
+ readonly deprecated: true;
947
1148
  };
1149
+ };
1150
+ readonly '/session/:sessionId/appium/device/gsm_voice': {
948
1151
  readonly POST: {
949
- readonly command: "queryAppState";
1152
+ readonly command: "gsmVoice";
950
1153
  readonly payloadParams: {
951
- readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
1154
+ readonly required: readonly ["state"];
952
1155
  };
953
1156
  readonly deprecated: true;
954
1157
  };
955
1158
  };
956
- readonly '/session/:sessionId/appium/device/hide_keyboard': {
1159
+ readonly '/session/:sessionId/appium/device/power_capacity': {
957
1160
  readonly POST: {
958
- readonly command: "hideKeyboard";
1161
+ readonly command: "powerCapacity";
959
1162
  readonly payloadParams: {
960
- readonly optional: readonly ["strategy", "key", "keyCode", "keyName"];
1163
+ readonly required: readonly ["percent"];
961
1164
  };
1165
+ readonly deprecated: true;
962
1166
  };
963
1167
  };
964
- readonly '/session/:sessionId/appium/device/is_keyboard_shown': {
965
- readonly GET: {
966
- readonly command: "isKeyboardShown";
967
- };
968
- };
969
- readonly '/session/:sessionId/appium/device/push_file': {
1168
+ readonly '/session/:sessionId/appium/device/power_ac': {
970
1169
  readonly POST: {
971
- readonly command: "pushFile";
1170
+ readonly command: "powerAC";
972
1171
  readonly payloadParams: {
973
- readonly required: readonly ["path", "data"];
1172
+ readonly required: readonly ["state"];
974
1173
  };
1174
+ readonly deprecated: true;
975
1175
  };
976
1176
  };
977
- readonly '/session/:sessionId/appium/device/pull_file': {
1177
+ readonly '/session/:sessionId/appium/device/network_speed': {
978
1178
  readonly POST: {
979
- readonly command: "pullFile";
1179
+ readonly command: "networkSpeed";
980
1180
  readonly payloadParams: {
981
- readonly required: readonly ["path"];
1181
+ readonly required: readonly ["netspeed"];
982
1182
  };
1183
+ readonly deprecated: true;
983
1184
  };
984
1185
  };
985
- readonly '/session/:sessionId/appium/device/pull_folder': {
1186
+ readonly '/session/:sessionId/appium/device/keyevent': {
986
1187
  readonly POST: {
987
- readonly command: "pullFolder";
1188
+ readonly command: "keyevent";
988
1189
  readonly payloadParams: {
989
- readonly required: readonly ["path"];
1190
+ readonly required: readonly ["keycode"];
1191
+ readonly optional: readonly ["metastate"];
990
1192
  };
1193
+ readonly deprecated: true;
1194
+ };
1195
+ };
1196
+ readonly '/session/:sessionId/appium/device/current_activity': {
1197
+ readonly GET: {
1198
+ readonly command: "getCurrentActivity";
1199
+ readonly deprecated: true;
1200
+ };
1201
+ };
1202
+ readonly '/session/:sessionId/appium/device/current_package': {
1203
+ readonly GET: {
1204
+ readonly command: "getCurrentPackage";
1205
+ readonly deprecated: true;
991
1206
  };
992
1207
  };
993
1208
  readonly '/session/:sessionId/appium/device/toggle_airplane_mode': {
@@ -1123,17 +1338,6 @@ export const METHOD_MAP: {
1123
1338
  readonly deprecated: true;
1124
1339
  };
1125
1340
  };
1126
- readonly '/session/:sessionId/appium/settings': {
1127
- readonly POST: {
1128
- readonly command: "updateSettings";
1129
- readonly payloadParams: {
1130
- readonly required: readonly ["settings"];
1131
- };
1132
- };
1133
- readonly GET: {
1134
- readonly command: "getSettings";
1135
- };
1136
- };
1137
1341
  readonly '/session/:sessionId/appium/receive_async_response': {
1138
1342
  readonly POST: {
1139
1343
  readonly command: "receiveAsyncResponse";
@@ -1143,138 +1347,6 @@ export const METHOD_MAP: {
1143
1347
  readonly deprecated: true;
1144
1348
  };
1145
1349
  };
1146
- readonly '/session/:sessionId/appium/events': {
1147
- readonly POST: {
1148
- readonly command: "getLogEvents";
1149
- readonly payloadParams: {
1150
- readonly optional: readonly ["type"];
1151
- };
1152
- };
1153
- };
1154
- readonly '/session/:sessionId/appium/log_event': {
1155
- readonly POST: {
1156
- readonly command: "logCustomEvent";
1157
- readonly payloadParams: {
1158
- readonly required: readonly ["vendor", "event"];
1159
- };
1160
- };
1161
- };
1162
- readonly '/session/:sessionId/alert_text': {
1163
- readonly GET: {
1164
- readonly command: "getAlertText";
1165
- };
1166
- readonly POST: {
1167
- readonly command: "setAlertText";
1168
- readonly payloadParams: {
1169
- validate: (jsonObj: any) => false | "either \"text\" or \"value\" must be set";
1170
- optional: string[];
1171
- makeArgs: (jsonObj: any) => any[];
1172
- };
1173
- };
1174
- };
1175
- readonly '/session/:sessionId/accept_alert': {
1176
- readonly POST: {
1177
- readonly command: "postAcceptAlert";
1178
- };
1179
- };
1180
- readonly '/session/:sessionId/dismiss_alert': {
1181
- readonly POST: {
1182
- readonly command: "postDismissAlert";
1183
- };
1184
- };
1185
- readonly '/session/:sessionId/alert/text': {
1186
- readonly GET: {
1187
- readonly command: "getAlertText";
1188
- };
1189
- readonly POST: {
1190
- readonly command: "setAlertText";
1191
- readonly payloadParams: {
1192
- validate: (jsonObj: any) => false | "either \"text\" or \"value\" must be set";
1193
- optional: string[];
1194
- makeArgs: (jsonObj: any) => any[];
1195
- };
1196
- };
1197
- };
1198
- readonly '/session/:sessionId/alert/accept': {
1199
- readonly POST: {
1200
- readonly command: "postAcceptAlert";
1201
- };
1202
- };
1203
- readonly '/session/:sessionId/alert/dismiss': {
1204
- readonly POST: {
1205
- readonly command: "postDismissAlert";
1206
- };
1207
- };
1208
- readonly '/session/:sessionId/element/:elementId/rect': {
1209
- readonly GET: {
1210
- readonly command: "getElementRect";
1211
- };
1212
- };
1213
- readonly '/session/:sessionId/execute/sync': {
1214
- readonly POST: {
1215
- readonly command: "execute";
1216
- readonly payloadParams: {
1217
- readonly required: readonly ["script", "args"];
1218
- };
1219
- };
1220
- };
1221
- readonly '/session/:sessionId/execute/async': {
1222
- readonly POST: {
1223
- readonly command: "executeAsync";
1224
- readonly payloadParams: {
1225
- readonly required: readonly ["script", "args"];
1226
- };
1227
- };
1228
- };
1229
- readonly '/session/:sessionId/screenshot/:elementId': {
1230
- readonly GET: {
1231
- readonly command: "getElementScreenshot";
1232
- };
1233
- };
1234
- readonly '/session/:sessionId/element/:elementId/screenshot': {
1235
- readonly GET: {
1236
- readonly command: "getElementScreenshot";
1237
- };
1238
- };
1239
- readonly '/session/:sessionId/window/rect': {
1240
- readonly GET: {
1241
- readonly command: "getWindowRect";
1242
- };
1243
- readonly POST: {
1244
- readonly command: "setWindowRect";
1245
- readonly payloadParams: {
1246
- readonly optional: readonly ["x", "y", "width", "height"];
1247
- };
1248
- };
1249
- };
1250
- readonly '/session/:sessionId/window/maximize': {
1251
- readonly POST: {
1252
- readonly command: "maximizeWindow";
1253
- };
1254
- };
1255
- readonly '/session/:sessionId/window/minimize': {
1256
- readonly POST: {
1257
- readonly command: "minimizeWindow";
1258
- };
1259
- };
1260
- readonly '/session/:sessionId/window/fullscreen': {
1261
- readonly POST: {
1262
- readonly command: "fullScreenWindow";
1263
- };
1264
- };
1265
- readonly '/session/:sessionId/window/new': {
1266
- readonly POST: {
1267
- readonly command: "createNewWindow";
1268
- readonly payloadParams: {
1269
- readonly optional: readonly ["type"];
1270
- };
1271
- };
1272
- };
1273
- readonly '/session/:sessionId/element/:elementId/property/:name': {
1274
- readonly GET: {
1275
- readonly command: "getProperty";
1276
- };
1277
- };
1278
1350
  readonly '/session/:sessionId/appium/device/set_clipboard': {
1279
1351
  readonly POST: {
1280
1352
  readonly command: "setClipboard";
@@ -1294,56 +1366,19 @@ export const METHOD_MAP: {
1294
1366
  readonly deprecated: true;
1295
1367
  };
1296
1368
  };
1297
- readonly '/session/:sessionId/:vendor/cdp/execute': {
1298
- readonly POST: {
1299
- readonly command: "executeCdp";
1300
- readonly payloadParams: {
1301
- readonly required: readonly ["cmd", "params"];
1302
- };
1303
- };
1304
- };
1305
- readonly '/session/:sessionId/webauthn/authenticator': {
1306
- readonly POST: {
1307
- readonly command: "addVirtualAuthenticator";
1308
- readonly payloadParams: {
1309
- readonly required: readonly ["protocol", "transport"];
1310
- readonly optional: readonly ["hasResidentKey", "hasUserVerification", "isUserConsenting", "isUserVerified"];
1311
- };
1312
- };
1313
- };
1314
- readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId': {
1315
- readonly DELETE: {
1316
- readonly command: "removeVirtualAuthenticator";
1317
- };
1318
- };
1319
- readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/credential': {
1369
+ readonly '/session/:sessionId/log': {
1320
1370
  readonly POST: {
1321
- readonly command: "addAuthCredential";
1371
+ readonly command: "getLog";
1322
1372
  readonly payloadParams: {
1323
- readonly required: readonly ["credentialId", "isResidentCredential", "rpId", "privateKey"];
1324
- readonly optional: readonly ["userHandle", "signCount"];
1373
+ readonly required: readonly ["type"];
1325
1374
  };
1375
+ readonly deprecated: true;
1326
1376
  };
1327
1377
  };
1328
- readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials': {
1378
+ readonly '/session/:sessionId/log/types': {
1329
1379
  readonly GET: {
1330
- readonly command: "getAuthCredential";
1331
- };
1332
- readonly DELETE: {
1333
- readonly command: "removeAllAuthCredentials";
1334
- };
1335
- };
1336
- readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/credentials/:credentialId': {
1337
- readonly DELETE: {
1338
- readonly command: "removeAuthCredential";
1339
- };
1340
- };
1341
- readonly '/session/:sessionId/webauthn/authenticator/:authenticatorId/uv': {
1342
- readonly POST: {
1343
- readonly command: "setUserAuthVerified";
1344
- readonly payloadParams: {
1345
- readonly required: readonly ["isUserVerified"];
1346
- };
1380
+ readonly command: "getLogTypes";
1381
+ readonly deprecated: true;
1347
1382
  };
1348
1383
  };
1349
1384
  };