@appium/base-driver 9.0.0 → 9.2.3

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.
@@ -68,10 +68,10 @@ const METHOD_MAP = /** @type {const} */ ({
68
68
  },
69
69
  },
70
70
  '/session/:sessionId/timeouts/async_script': {
71
- POST: {command: 'asyncScriptTimeout', payloadParams: {required: ['ms']}},
71
+ POST: {command: 'asyncScriptTimeout', payloadParams: {required: ['ms']}, deprecated: true},
72
72
  },
73
73
  '/session/:sessionId/timeouts/implicit_wait': {
74
- POST: {command: 'implicitWait', payloadParams: {required: ['ms']}},
74
+ POST: {command: 'implicitWait', payloadParams: {required: ['ms']}, deprecated: true},
75
75
  },
76
76
  // JSONWP
77
77
  '/session/:sessionId/window_handle': {
@@ -117,25 +117,25 @@ const METHOD_MAP = /** @type {const} */ ({
117
117
  GET: {command: 'getScreenshot'},
118
118
  },
119
119
  '/session/:sessionId/ime/available_engines': {
120
- GET: {command: 'availableIMEEngines'},
120
+ GET: {command: 'availableIMEEngines', deprecated: true},
121
121
  },
122
122
  '/session/:sessionId/ime/active_engine': {
123
- GET: {command: 'getActiveIMEEngine'},
123
+ GET: {command: 'getActiveIMEEngine', deprecated: true},
124
124
  },
125
125
  '/session/:sessionId/ime/activated': {
126
- GET: {command: 'isIMEActivated'},
126
+ GET: {command: 'isIMEActivated', deprecated: true},
127
127
  },
128
128
  '/session/:sessionId/ime/deactivate': {
129
- POST: {command: 'deactivateIMEEngine'},
129
+ POST: {command: 'deactivateIMEEngine', deprecated: true},
130
130
  },
131
131
  '/session/:sessionId/ime/activate': {
132
- POST: {command: 'activateIMEEngine', payloadParams: {required: ['engine']}},
132
+ POST: {command: 'activateIMEEngine', payloadParams: {required: ['engine']}, deprecated: true},
133
133
  },
134
134
  '/session/:sessionId/frame': {
135
135
  POST: {command: 'setFrame', payloadParams: {required: ['id']}},
136
136
  },
137
137
  '/session/:sessionId/frame/parent': {
138
- POST: {},
138
+ POST: {command: 'switchToParentFrame'},
139
139
  },
140
140
  '/session/:sessionId/window': {
141
141
  GET: {command: 'getWindowHandle'},
@@ -162,12 +162,11 @@ const METHOD_MAP = /** @type {const} */ ({
162
162
  DELETE: {command: 'closeWindow'},
163
163
  },
164
164
  '/session/:sessionId/window/:windowhandle/size': {
165
- GET: {command: 'getWindowSize'},
166
- POST: {},
165
+ GET: {command: 'getWindowSize', deprecated: true},
167
166
  },
168
167
  '/session/:sessionId/window/:windowhandle/position': {
169
- POST: {},
170
- GET: {},
168
+ POST: {deprecated: true},
169
+ GET: {deprecated: true},
171
170
  },
172
171
  '/session/:sessionId/window/:windowhandle/maximize': {
173
172
  POST: {command: 'maximizeWindow'},
@@ -222,7 +221,7 @@ const METHOD_MAP = /** @type {const} */ ({
222
221
  POST: {command: 'click'},
223
222
  },
224
223
  '/session/:sessionId/element/:elementId/submit': {
225
- POST: {command: 'submit'},
224
+ POST: {command: 'submit', deprecated: true},
226
225
  },
227
226
  '/session/:sessionId/element/:elementId/text': {
228
227
  GET: {command: 'getText'},
@@ -246,7 +245,7 @@ const METHOD_MAP = /** @type {const} */ ({
246
245
  },
247
246
  },
248
247
  '/session/:sessionId/keys': {
249
- POST: {command: 'keys', payloadParams: {required: ['value']}},
248
+ POST: {command: 'keys', payloadParams: {required: ['value']}, deprecated: true},
250
249
  },
251
250
  '/session/:sessionId/element/:elementId/name': {
252
251
  GET: {command: 'getName'},
@@ -264,19 +263,19 @@ const METHOD_MAP = /** @type {const} */ ({
264
263
  GET: {command: 'getAttribute'},
265
264
  },
266
265
  '/session/:sessionId/element/:elementId/equals/:otherId': {
267
- GET: {command: 'equalsElement'},
266
+ GET: {command: 'equalsElement', deprecated: true},
268
267
  },
269
268
  '/session/:sessionId/element/:elementId/displayed': {
270
269
  GET: {command: 'elementDisplayed'},
271
270
  },
272
271
  '/session/:sessionId/element/:elementId/location': {
273
- GET: {command: 'getLocation'},
272
+ GET: {command: 'getLocation', deprecated: true},
274
273
  },
275
274
  '/session/:sessionId/element/:elementId/location_in_view': {
276
- GET: {command: 'getLocationInView'},
275
+ GET: {command: 'getLocationInView', deprecated: true},
277
276
  },
278
277
  '/session/:sessionId/element/:elementId/size': {
279
- GET: {command: 'getSize'},
278
+ GET: {command: 'getSize', deprecated: true},
280
279
  },
281
280
  '/session/:sessionId/element/:elementId/shadow': {
282
281
  GET: {command: 'elementShadowRoot'},
@@ -303,6 +302,14 @@ const METHOD_MAP = /** @type {const} */ ({
303
302
  payloadParams: {required: ['orientation']},
304
303
  },
305
304
  },
305
+ // w3c v2 https://www.w3.org/TR/webdriver2/#get-computed-role
306
+ 'session/:sessionId/element/:elementId/computedrole': {
307
+ GET: {command: 'getComputedRole'},
308
+ },
309
+ // W3C v2 https://www.w3.org/TR/webdriver2/#get-computed-label
310
+ 'session/:sessionId/element/:elementId/computedlabel': {
311
+ GET: {command: 'getComputedLabel'},
312
+ },
306
313
  '/session/:sessionId/rotation': {
307
314
  GET: {command: 'getRotation'},
308
315
  POST: {command: 'setRotation', payloadParams: {required: ['x', 'y', 'z']}},
@@ -311,34 +318,35 @@ const METHOD_MAP = /** @type {const} */ ({
311
318
  POST: {
312
319
  command: 'moveTo',
313
320
  payloadParams: {optional: ['element', 'xoffset', 'yoffset']},
321
+ deprecated: true,
314
322
  },
315
323
  },
316
324
  '/session/:sessionId/click': {
317
- POST: {command: 'clickCurrent', payloadParams: {optional: ['button']}},
325
+ POST: {command: 'clickCurrent', payloadParams: {optional: ['button']}, deprecated: true},
318
326
  },
319
327
  '/session/:sessionId/buttondown': {
320
- POST: {command: 'buttonDown', payloadParams: {optional: ['button']}},
328
+ POST: {command: 'buttonDown', payloadParams: {optional: ['button']}, deprecated: true},
321
329
  },
322
330
  '/session/:sessionId/buttonup': {
323
- POST: {command: 'buttonUp', payloadParams: {optional: ['button']}},
331
+ POST: {command: 'buttonUp', payloadParams: {optional: ['button']}, deprecated: true},
324
332
  },
325
333
  '/session/:sessionId/doubleclick': {
326
- POST: {command: 'doubleClick'},
334
+ POST: {command: 'doubleClick', deprecated: true},
327
335
  },
328
336
  '/session/:sessionId/touch/click': {
329
- POST: {command: 'click', payloadParams: {required: ['element']}},
337
+ POST: {command: 'click', payloadParams: {required: ['element']}, deprecated: true},
330
338
  },
331
339
  '/session/:sessionId/touch/down': {
332
- POST: {command: 'touchDown', payloadParams: {required: ['x', 'y']}},
340
+ POST: {command: 'touchDown', payloadParams: {required: ['x', 'y']}, deprecated: true},
333
341
  },
334
342
  '/session/:sessionId/touch/up': {
335
- POST: {command: 'touchUp', payloadParams: {required: ['x', 'y']}},
343
+ POST: {command: 'touchUp', payloadParams: {required: ['x', 'y']}, deprecated: true},
336
344
  },
337
345
  '/session/:sessionId/touch/move': {
338
- POST: {command: 'touchMove', payloadParams: {required: ['x', 'y']}},
346
+ POST: {command: 'touchMove', payloadParams: {required: ['x', 'y']}, deprecated: true},
339
347
  },
340
348
  '/session/:sessionId/touch/scroll': {
341
- POST: {},
349
+ POST: {deprecated: true},
342
350
  },
343
351
  '/session/:sessionId/touch/doubleclick': {
344
352
  POST: {},
@@ -348,7 +356,7 @@ const METHOD_MAP = /** @type {const} */ ({
348
356
  DELETE: {command: 'releaseActions'},
349
357
  },
350
358
  '/session/:sessionId/touch/longclick': {
351
- POST: {command: 'touchLongClick', payloadParams: {required: ['elements']}},
359
+ POST: {command: 'touchLongClick', payloadParams: {required: ['elements']}, deprecated: true},
352
360
  },
353
361
  '/session/:sessionId/touch/flick': {
354
362
  POST: {
@@ -356,6 +364,7 @@ const METHOD_MAP = /** @type {const} */ ({
356
364
  payloadParams: {
357
365
  optional: ['element', 'xspeed', 'yspeed', 'xoffset', 'yoffset', 'speed'],
358
366
  },
367
+ deprecated: true,
359
368
  },
360
369
  },
361
370
  '/session/:sessionId/location': {
@@ -363,28 +372,28 @@ const METHOD_MAP = /** @type {const} */ ({
363
372
  POST: {command: 'setGeoLocation', payloadParams: {required: ['location']}},
364
373
  },
365
374
  '/session/:sessionId/local_storage': {
366
- GET: {},
367
- POST: {},
368
- DELETE: {},
375
+ GET: {deprecated: true},
376
+ POST: {deprecated: true},
377
+ DELETE: {deprecated: true},
369
378
  },
370
379
  '/session/:sessionId/local_storage/key/:key': {
371
- GET: {},
372
- DELETE: {},
380
+ GET: {deprecated: true},
381
+ DELETE: {deprecated: true},
373
382
  },
374
383
  '/session/:sessionId/local_storage/size': {
375
- GET: {},
384
+ GET: {deprecated: true},
376
385
  },
377
386
  '/session/:sessionId/session_storage': {
378
- GET: {},
379
- POST: {},
380
- DELETE: {},
387
+ GET: {deprecated: true},
388
+ POST: {deprecated: true},
389
+ DELETE: {deprecated: true},
381
390
  },
382
391
  '/session/:sessionId/session_storage/key/:key': {
383
- GET: {},
384
- DELETE: {},
392
+ GET: {deprecated: true},
393
+ DELETE: {deprecated: true},
385
394
  },
386
395
  '/session/:sessionId/session_storage/size': {
387
- GET: {},
396
+ GET: {deprecated: true},
388
397
  },
389
398
  // Selenium 4 clients
390
399
  '/session/:sessionId/se/log': {
@@ -417,7 +426,7 @@ const METHOD_MAP = /** @type {const} */ ({
417
426
  GET: {command: 'getContexts'},
418
427
  },
419
428
  '/session/:sessionId/element/:elementId/pageIndex': {
420
- GET: {command: 'getPageIndex'},
429
+ GET: {command: 'getPageIndex', deprecated: true},
421
430
  },
422
431
  '/session/:sessionId/network_connection': {
423
432
  GET: {command: 'getNetworkConnection'},
@@ -430,12 +439,14 @@ const METHOD_MAP = /** @type {const} */ ({
430
439
  POST: {
431
440
  command: 'performTouch',
432
441
  payloadParams: {wrap: 'actions', required: ['actions']},
442
+ deprecated: true,
433
443
  },
434
444
  },
435
445
  '/session/:sessionId/touch/multi/perform': {
436
446
  POST: {
437
447
  command: 'performMultiAction',
438
448
  payloadParams: {required: ['actions'], optional: ['elementId']},
449
+ deprecated: true,
439
450
  },
440
451
  },
441
452
  '/session/:sessionId/receive_async_response': {
@@ -445,35 +456,37 @@ const METHOD_MAP = /** @type {const} */ ({
445
456
  },
446
457
  },
447
458
  '/session/:sessionId/appium/device/shake': {
448
- POST: {command: 'mobileShake'},
459
+ POST: {command: 'mobileShake', deprecated: true},
449
460
  },
450
461
  '/session/:sessionId/appium/device/system_time': {
451
462
  GET: {command: 'getDeviceTime', payloadParams: {optional: ['format']}},
452
463
  POST: {command: 'getDeviceTime', payloadParams: {optional: ['format']}},
453
464
  },
454
465
  '/session/:sessionId/appium/device/lock': {
455
- POST: {command: 'lock', payloadParams: {optional: ['seconds']}},
466
+ POST: {command: 'lock', payloadParams: {optional: ['seconds']}, deprecated: true},
456
467
  },
457
468
  '/session/:sessionId/appium/device/unlock': {
458
- POST: {command: 'unlock'},
469
+ POST: {command: 'unlock', deprecated: true},
459
470
  },
460
471
  '/session/:sessionId/appium/device/is_locked': {
461
- POST: {command: 'isLocked'},
472
+ POST: {command: 'isLocked', deprecated: true},
462
473
  },
463
474
  '/session/:sessionId/appium/start_recording_screen': {
464
475
  POST: {
465
476
  command: 'startRecordingScreen',
466
477
  payloadParams: {optional: ['options']},
478
+ deprecated: true,
467
479
  },
468
480
  },
469
481
  '/session/:sessionId/appium/stop_recording_screen': {
470
482
  POST: {
471
483
  command: 'stopRecordingScreen',
472
484
  payloadParams: {optional: ['options']},
485
+ deprecated: true,
473
486
  },
474
487
  },
475
488
  '/session/:sessionId/appium/performanceData/types': {
476
- POST: {command: 'getPerformanceDataTypes'},
489
+ POST: {command: 'getPerformanceDataTypes', deprecated: true},
477
490
  },
478
491
  '/session/:sessionId/appium/getPerformanceData': {
479
492
  POST: {
@@ -482,70 +495,68 @@ const METHOD_MAP = /** @type {const} */ ({
482
495
  required: ['packageName', 'dataType'],
483
496
  optional: ['dataReadTimeout'],
484
497
  },
498
+ deprecated: true,
485
499
  },
486
500
  },
487
501
  '/session/:sessionId/appium/device/press_keycode': {
488
502
  POST: {
489
503
  command: 'pressKeyCode',
490
504
  payloadParams: {required: ['keycode'], optional: ['metastate', 'flags']},
505
+ deprecated: true,
491
506
  },
492
507
  },
493
508
  '/session/:sessionId/appium/device/long_press_keycode': {
494
509
  POST: {
495
510
  command: 'longPressKeyCode',
496
511
  payloadParams: {required: ['keycode'], optional: ['metastate', 'flags']},
512
+ deprecated: true,
497
513
  },
498
514
  },
499
515
  '/session/:sessionId/appium/device/finger_print': {
500
516
  POST: {
501
517
  command: 'fingerprint',
502
518
  payloadParams: {required: ['fingerprintId']},
519
+ deprecated: true,
503
520
  },
504
521
  },
505
522
  '/session/:sessionId/appium/device/send_sms': {
506
523
  POST: {
507
524
  command: 'sendSMS',
508
525
  payloadParams: {required: ['phoneNumber', 'message']},
526
+ deprecated: true,
509
527
  },
510
528
  },
511
529
  '/session/:sessionId/appium/device/gsm_call': {
512
530
  POST: {
513
531
  command: 'gsmCall',
514
532
  payloadParams: {required: ['phoneNumber', 'action']},
533
+ deprecated: true,
515
534
  },
516
535
  },
517
536
  '/session/:sessionId/appium/device/gsm_signal': {
518
537
  POST: {
519
538
  command: 'gsmSignal',
520
- payloadParams: {
521
- validate: (jsonObj) =>
522
- !util.hasValue(jsonObj.signalStrength) &&
523
- !util.hasValue(jsonObj.signalStrengh) &&
524
- 'we require one of "signalStrength" or "signalStrengh" params',
525
- optional: ['signalStrength', 'signalStrengh'],
526
- // backward-compatible. sonObj.signalStrength can be 0
527
- makeArgs: (jsonObj) => [
528
- util.hasValue(jsonObj.signalStrength) ? jsonObj.signalStrength : jsonObj.signalStrengh,
529
- ],
530
- },
539
+ payloadParams: {required: ['signalStrength']},
540
+ deprecated: true,
531
541
  },
532
542
  },
533
543
  '/session/:sessionId/appium/device/gsm_voice': {
534
- POST: {command: 'gsmVoice', payloadParams: {required: ['state']}},
544
+ POST: {command: 'gsmVoice', payloadParams: {required: ['state']}, deprecated: true},
535
545
  },
536
546
  '/session/:sessionId/appium/device/power_capacity': {
537
- POST: {command: 'powerCapacity', payloadParams: {required: ['percent']}},
547
+ POST: {command: 'powerCapacity', payloadParams: {required: ['percent']}, deprecated: true},
538
548
  },
539
549
  '/session/:sessionId/appium/device/power_ac': {
540
- POST: {command: 'powerAC', payloadParams: {required: ['state']}},
550
+ POST: {command: 'powerAC', payloadParams: {required: ['state']}, deprecated: true},
541
551
  },
542
552
  '/session/:sessionId/appium/device/network_speed': {
543
- POST: {command: 'networkSpeed', payloadParams: {required: ['netspeed']}},
553
+ POST: {command: 'networkSpeed', payloadParams: {required: ['netspeed']}, deprecated: true},
544
554
  },
545
555
  '/session/:sessionId/appium/device/keyevent': {
546
556
  POST: {
547
557
  command: 'keyevent',
548
558
  payloadParams: {required: ['keycode'], optional: ['metastate']},
559
+ deprecated: true,
549
560
  },
550
561
  },
551
562
  '/session/:sessionId/appium/device/rotate': {
@@ -555,13 +566,14 @@ const METHOD_MAP = /** @type {const} */ ({
555
566
  required: ['x', 'y', 'radius', 'rotation', 'touchCount', 'duration'],
556
567
  optional: ['element'],
557
568
  },
569
+ deprecated: true,
558
570
  },
559
571
  },
560
572
  '/session/:sessionId/appium/device/current_activity': {
561
- GET: {command: 'getCurrentActivity'},
573
+ GET: {command: 'getCurrentActivity', deprecated: true},
562
574
  },
563
575
  '/session/:sessionId/appium/device/current_package': {
564
- GET: {command: 'getCurrentPackage'},
576
+ GET: {command: 'getCurrentPackage', deprecated: true},
565
577
  },
566
578
  //region Applications Management
567
579
  '/session/:sessionId/appium/device/install_app': {
@@ -620,6 +632,7 @@ const METHOD_MAP = /** @type {const} */ ({
620
632
  payloadParams: {
621
633
  required: [['appId'], ['bundleId']],
622
634
  },
635
+ deprecated: true,
623
636
  },
624
637
  },
625
638
  //endregion
@@ -642,19 +655,19 @@ const METHOD_MAP = /** @type {const} */ ({
642
655
  POST: {command: 'pullFolder', payloadParams: {required: ['path']}},
643
656
  },
644
657
  '/session/:sessionId/appium/device/toggle_airplane_mode': {
645
- POST: {command: 'toggleFlightMode'},
658
+ POST: {command: 'toggleFlightMode', deprecated: true},
646
659
  },
647
660
  '/session/:sessionId/appium/device/toggle_data': {
648
- POST: {command: 'toggleData'},
661
+ POST: {command: 'toggleData', deprecated: true},
649
662
  },
650
663
  '/session/:sessionId/appium/device/toggle_wifi': {
651
- POST: {command: 'toggleWiFi'},
664
+ POST: {command: 'toggleWiFi', deprecated: true},
652
665
  },
653
666
  '/session/:sessionId/appium/device/toggle_location_services': {
654
- POST: {command: 'toggleLocationServices'},
667
+ POST: {command: 'toggleLocationServices', deprecated: true},
655
668
  },
656
669
  '/session/:sessionId/appium/device/open_notifications': {
657
- POST: {command: 'openNotifications'},
670
+ POST: {command: 'openNotifications', deprecated: true},
658
671
  },
659
672
  '/session/:sessionId/appium/device/start_activity': {
660
673
  POST: {
@@ -671,77 +684,63 @@ const METHOD_MAP = /** @type {const} */ ({
671
684
  'dontStopAppOnReset',
672
685
  ],
673
686
  },
687
+ deprecated: true,
674
688
  },
675
689
  },
676
690
  '/session/:sessionId/appium/device/system_bars': {
677
- GET: {command: 'getSystemBars'},
691
+ GET: {command: 'getSystemBars', deprecated: true},
678
692
  },
679
693
  '/session/:sessionId/appium/device/display_density': {
680
- GET: {command: 'getDisplayDensity'},
694
+ GET: {command: 'getDisplayDensity', deprecated: true},
681
695
  },
682
696
  '/session/:sessionId/appium/simulator/touch_id': {
683
- POST: {command: 'touchId', payloadParams: {required: ['match']}},
697
+ POST: {command: 'touchId', payloadParams: {required: ['match']}, deprecated: true},
684
698
  },
685
699
  '/session/:sessionId/appium/simulator/toggle_touch_id_enrollment': {
686
700
  POST: {
687
701
  command: 'toggleEnrollTouchId',
688
702
  payloadParams: {optional: ['enabled']},
703
+ deprecated: true,
689
704
  },
690
705
  },
691
706
  '/session/:sessionId/appium/app/launch': {
692
- POST: {command: 'launchApp'},
707
+ POST: {command: 'launchApp', deprecated: true},
693
708
  },
694
709
  '/session/:sessionId/appium/app/close': {
695
- POST: {command: 'closeApp'},
710
+ POST: {command: 'closeApp', deprecated: true},
696
711
  },
697
712
  '/session/:sessionId/appium/app/reset': {
698
- POST: {command: 'reset'},
713
+ POST: {command: 'reset', deprecated: true},
699
714
  },
700
715
  '/session/:sessionId/appium/app/background': {
701
- POST: {command: 'background', payloadParams: {required: ['seconds']}},
716
+ POST: {command: 'background', payloadParams: {required: ['seconds']}, deprecated: true},
702
717
  },
703
718
  '/session/:sessionId/appium/app/end_test_coverage': {
704
719
  POST: {
705
720
  command: 'endCoverage',
706
721
  payloadParams: {required: ['intent', 'path']},
722
+ deprecated: true,
707
723
  },
708
724
  },
709
725
  '/session/:sessionId/appium/app/strings': {
710
726
  POST: {
711
727
  command: 'getStrings',
712
728
  payloadParams: {optional: ['language', 'stringFile']},
729
+ deprecated: true,
713
730
  },
714
731
  },
715
732
  '/session/:sessionId/appium/element/:elementId/value': {
716
733
  POST: {
717
734
  command: 'setValueImmediate',
718
- payloadParams: {
719
- validate: (jsonObj) =>
720
- !util.hasValue(jsonObj.value) &&
721
- !util.hasValue(jsonObj.text) &&
722
- 'we require one of "text" or "value" params',
723
- optional: ['value', 'text'],
724
- // We want to either a value (old JSONWP) or a text (new W3C) parameter,
725
- // but only send one of them to the command (not both).
726
- // Prefer 'value' since it's more backward-compatible.
727
- makeArgs: (jsonObj) => [jsonObj.value || jsonObj.text],
728
- },
735
+ payloadParams: {required: ['text']},
736
+ deprecated: true,
729
737
  },
730
738
  },
731
739
  '/session/:sessionId/appium/element/:elementId/replace_value': {
732
740
  POST: {
733
741
  command: 'replaceValue',
734
- payloadParams: {
735
- validate: (jsonObj) =>
736
- !util.hasValue(jsonObj.value) &&
737
- !util.hasValue(jsonObj.text) &&
738
- 'we require one of "text" or "value" params',
739
- optional: ['value', 'text'],
740
- // We want to either a value (old JSONWP) or a text (new W3C) parameter,
741
- // but only send one of them to the command (not both).
742
- // Prefer 'value' since it's more backward-compatible.
743
- makeArgs: (jsonObj) => [jsonObj.value ?? jsonObj.text ?? ''],
744
- },
742
+ payloadParams: {required: ['text']},
743
+ deprecated: true,
745
744
  },
746
745
  },
747
746
  '/session/:sessionId/appium/settings': {
@@ -752,6 +751,7 @@ const METHOD_MAP = /** @type {const} */ ({
752
751
  POST: {
753
752
  command: 'receiveAsyncResponse',
754
753
  payloadParams: {required: ['response']},
754
+ deprecated: true,
755
755
  },
756
756
  },
757
757
  '/session/:sessionId/appium/events': {
@@ -849,6 +849,7 @@ const METHOD_MAP = /** @type {const} */ ({
849
849
  required: ['content'],
850
850
  optional: ['contentType', 'label'],
851
851
  },
852
+ deprecated: true,
852
853
  },
853
854
  },
854
855
  '/session/:sessionId/appium/device/get_clipboard': {
@@ -857,6 +858,7 @@ const METHOD_MAP = /** @type {const} */ ({
857
858
  payloadParams: {
858
859
  optional: ['contentType'],
859
860
  },
861
+ deprecated: true,
860
862
  },
861
863
  },
862
864
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appium/base-driver",
3
- "version": "9.0.0",
3
+ "version": "9.2.3",
4
4
  "description": "Base driver class for Appium drivers",
5
5
  "keywords": [
6
6
  "automation",
@@ -32,25 +32,27 @@
32
32
  "index.d.ts",
33
33
  "lib",
34
34
  "static",
35
- "build"
35
+ "build",
36
+ "tsconfig.json"
36
37
  ],
37
38
  "scripts": {
38
39
  "test": "npm run test:unit",
39
- "test:e2e": "mocha --timeout 20s --slow 10s \"./test/e2e/**/*.spec.js\"",
40
+ "test:e2e": "mocha -p --timeout 20s --slow 10s \"./test/e2e/**/*.spec.js\"",
40
41
  "test:smoke": "node ./index.js",
41
42
  "test:unit": "mocha \"./test/unit/**/*.spec.js\""
42
43
  },
43
44
  "dependencies": {
44
- "@appium/support": "^3.0.0",
45
+ "@appium/support": "^3.1.3",
46
+ "@appium/types": "^0.8.3",
45
47
  "@colors/colors": "1.5.0",
46
48
  "@types/async-lock": "1.3.0",
47
49
  "@types/bluebird": "3.5.38",
48
- "@types/express": "4.17.14",
50
+ "@types/express": "4.17.15",
49
51
  "@types/method-override": "0.0.32",
50
52
  "@types/serve-favicon": "2.5.3",
51
53
  "async-lock": "1.4.0",
52
54
  "asyncbox": "2.9.4",
53
- "axios": "1.2.1",
55
+ "axios": "1.2.2",
54
56
  "bluebird": "3.7.2",
55
57
  "body-parser": "1.20.1",
56
58
  "es6-error": "4.1.1",
@@ -62,7 +64,7 @@
62
64
  "morgan": "1.10.0",
63
65
  "serve-favicon": "2.5.0",
64
66
  "source-map-support": "0.5.21",
65
- "type-fest": "3.3.0",
67
+ "type-fest": "3.5.1",
66
68
  "validate.js": "0.13.1"
67
69
  },
68
70
  "engines": {
@@ -72,8 +74,8 @@
72
74
  "publishConfig": {
73
75
  "access": "public"
74
76
  },
75
- "gitHead": "0823f0b60e40395cd1dc3b72cfa3c0092bc81302",
77
+ "gitHead": "67c9bdfbceeb049aa134bf1d9b107543ff0a80b0",
76
78
  "typedoc": {
77
- "entryPoint": "./build/lib/index.js"
79
+ "entryPoint": "./lib/index.js"
78
80
  }
79
81
  }
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "@appium/tsconfig/tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "build",
5
+ "paths": {
6
+ "@appium/support": ["../support"],
7
+ "@appium/types": ["../types"],
8
+ "@appium/driver-test-support": ["../driver-test-support"]
9
+ },
10
+ "checkJs": true
11
+ },
12
+ "include": ["lib"],
13
+ "references": [{"path": "../support"}, {"path": "../types"}]
14
+ }