@appium/base-driver 10.0.0-beta.0 → 10.0.0-beta.1
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.
- package/README.md +0 -8
- package/build/lib/basedriver/capabilities.d.ts.map +1 -1
- package/build/lib/basedriver/capabilities.js +2 -4
- package/build/lib/basedriver/capabilities.js.map +1 -1
- package/build/lib/basedriver/commands/timeout.js +7 -25
- package/build/lib/basedriver/commands/timeout.js.map +1 -1
- package/build/lib/basedriver/core.d.ts +0 -8
- package/build/lib/basedriver/core.d.ts.map +1 -1
- package/build/lib/basedriver/core.js +8 -18
- package/build/lib/basedriver/core.js.map +1 -1
- package/build/lib/basedriver/driver.js +2 -2
- package/build/lib/basedriver/driver.js.map +1 -1
- package/build/lib/basedriver/helpers.d.ts +9 -1
- package/build/lib/basedriver/helpers.d.ts.map +1 -1
- package/build/lib/basedriver/helpers.js +56 -142
- package/build/lib/basedriver/helpers.js.map +1 -1
- package/build/lib/basedriver/validation.d.ts +7 -0
- package/build/lib/basedriver/validation.d.ts.map +1 -0
- package/build/lib/basedriver/validation.js +130 -0
- package/build/lib/basedriver/validation.js.map +1 -0
- package/build/lib/express/middleware.d.ts +0 -6
- package/build/lib/express/middleware.d.ts.map +1 -1
- package/build/lib/express/middleware.js +28 -60
- package/build/lib/express/middleware.js.map +1 -1
- package/build/lib/express/server.d.ts.map +1 -1
- package/build/lib/express/server.js +0 -1
- package/build/lib/express/server.js.map +1 -1
- package/build/lib/helpers/capabilities.d.ts +13 -6
- package/build/lib/helpers/capabilities.d.ts.map +1 -1
- package/build/lib/helpers/capabilities.js +7 -0
- package/build/lib/helpers/capabilities.js.map +1 -1
- package/build/lib/index.d.ts +1 -0
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +3 -1
- package/build/lib/index.js.map +1 -1
- package/build/lib/jsonwp-proxy/proxy.d.ts +0 -8
- package/build/lib/jsonwp-proxy/proxy.d.ts.map +1 -1
- package/build/lib/jsonwp-proxy/proxy.js +7 -38
- package/build/lib/jsonwp-proxy/proxy.js.map +1 -1
- package/build/lib/protocol/errors.d.ts +171 -277
- package/build/lib/protocol/errors.d.ts.map +1 -1
- package/build/lib/protocol/errors.js +201 -421
- package/build/lib/protocol/errors.js.map +1 -1
- package/build/lib/protocol/helpers.d.ts +6 -6
- package/build/lib/protocol/helpers.d.ts.map +1 -1
- package/build/lib/protocol/helpers.js +11 -7
- package/build/lib/protocol/helpers.js.map +1 -1
- package/build/lib/protocol/index.d.ts +2 -1
- package/build/lib/protocol/index.d.ts.map +1 -1
- package/build/lib/protocol/index.js +2 -1
- package/build/lib/protocol/index.js.map +1 -1
- package/build/lib/protocol/protocol.d.ts +5 -0
- package/build/lib/protocol/protocol.d.ts.map +1 -1
- package/build/lib/protocol/protocol.js +23 -23
- package/build/lib/protocol/protocol.js.map +1 -1
- package/build/lib/protocol/routes.d.ts +14 -715
- package/build/lib/protocol/routes.d.ts.map +1 -1
- package/build/lib/protocol/routes.js +28 -487
- package/build/lib/protocol/routes.js.map +1 -1
- package/build/lib/protocol/validators.d.ts +4 -7
- package/build/lib/protocol/validators.d.ts.map +1 -1
- package/build/lib/protocol/validators.js +4 -21
- package/build/lib/protocol/validators.js.map +1 -1
- package/lib/basedriver/capabilities.ts +2 -4
- package/lib/basedriver/commands/timeout.ts +11 -34
- package/lib/basedriver/core.ts +10 -19
- package/lib/basedriver/driver.ts +3 -3
- package/lib/basedriver/helpers.js +61 -167
- package/lib/basedriver/validation.ts +145 -0
- package/lib/express/middleware.js +32 -70
- package/lib/express/server.js +0 -2
- package/lib/helpers/capabilities.js +9 -4
- package/lib/index.js +2 -0
- package/lib/jsonwp-proxy/proxy.js +8 -45
- package/lib/protocol/{errors.js → errors.ts} +322 -436
- package/lib/protocol/helpers.js +12 -8
- package/lib/protocol/index.js +8 -1
- package/lib/protocol/protocol.js +25 -23
- package/lib/protocol/routes.js +30 -497
- package/lib/protocol/validators.ts +19 -0
- package/package.json +10 -11
- package/build/lib/basedriver/desired-caps.d.ts +0 -5
- package/build/lib/basedriver/desired-caps.d.ts.map +0 -1
- package/build/lib/basedriver/desired-caps.js +0 -92
- package/build/lib/basedriver/desired-caps.js.map +0 -1
- package/lib/basedriver/README.md +0 -36
- package/lib/basedriver/desired-caps.js +0 -103
- package/lib/express/README.md +0 -59
- package/lib/jsonwp-proxy/README.md +0 -52
- package/lib/jsonwp-status/README.md +0 -20
- package/lib/protocol/README.md +0 -100
- package/lib/protocol/validators.js +0 -38
|
@@ -22,8 +22,7 @@ export const METHOD_MAP: {
|
|
|
22
22
|
readonly POST: {
|
|
23
23
|
readonly command: "createSession";
|
|
24
24
|
readonly payloadParams: {
|
|
25
|
-
readonly
|
|
26
|
-
readonly optional: readonly ["desiredCapabilities", "requiredCapabilities", "capabilities"];
|
|
25
|
+
readonly optional: readonly ["capabilities", "capabilities", "capabilities"];
|
|
27
26
|
};
|
|
28
27
|
};
|
|
29
28
|
};
|
|
@@ -43,8 +42,8 @@ export const METHOD_MAP: {
|
|
|
43
42
|
readonly POST: {
|
|
44
43
|
readonly command: "timeouts";
|
|
45
44
|
readonly payloadParams: {
|
|
46
|
-
readonly validate: (
|
|
47
|
-
readonly optional: readonly ["
|
|
45
|
+
readonly validate: ({ script, pageLoad, implicit }: any) => "W3C protocol expects any of script, pageLoad or implicit to be set" | undefined;
|
|
46
|
+
readonly optional: readonly ["script", "pageLoad", "implicit"];
|
|
48
47
|
};
|
|
49
48
|
};
|
|
50
49
|
};
|
|
@@ -104,9 +103,7 @@ export const METHOD_MAP: {
|
|
|
104
103
|
readonly POST: {
|
|
105
104
|
readonly command: "setWindow";
|
|
106
105
|
readonly payloadParams: {
|
|
107
|
-
readonly
|
|
108
|
-
readonly makeArgs: (jsonObj: any) => any[];
|
|
109
|
-
readonly validate: (jsonObj: any) => false | "we require one of \"name\" or \"handle\" to be set";
|
|
106
|
+
readonly required: readonly ["handle"];
|
|
110
107
|
};
|
|
111
108
|
};
|
|
112
109
|
readonly DELETE: {
|
|
@@ -188,10 +185,6 @@ export const METHOD_MAP: {
|
|
|
188
185
|
readonly GET: {
|
|
189
186
|
readonly command: "active";
|
|
190
187
|
};
|
|
191
|
-
readonly POST: {
|
|
192
|
-
readonly command: "active";
|
|
193
|
-
readonly deprecated: true;
|
|
194
|
-
};
|
|
195
188
|
};
|
|
196
189
|
readonly '/session/:sessionId/element/:elementId': {
|
|
197
190
|
readonly GET: {};
|
|
@@ -226,9 +219,7 @@ export const METHOD_MAP: {
|
|
|
226
219
|
readonly POST: {
|
|
227
220
|
readonly command: "setValue";
|
|
228
221
|
readonly payloadParams: {
|
|
229
|
-
readonly
|
|
230
|
-
readonly optional: readonly ["value", "text"];
|
|
231
|
-
readonly makeArgs: (jsonObj: any) => any[];
|
|
222
|
+
readonly required: readonly ["text"];
|
|
232
223
|
};
|
|
233
224
|
};
|
|
234
225
|
};
|
|
@@ -321,9 +312,7 @@ export const METHOD_MAP: {
|
|
|
321
312
|
readonly POST: {
|
|
322
313
|
readonly command: "setAlertText";
|
|
323
314
|
readonly payloadParams: {
|
|
324
|
-
|
|
325
|
-
optional: string[];
|
|
326
|
-
makeArgs: (jsonObj: any) => any[];
|
|
315
|
+
readonly required: readonly ["text"];
|
|
327
316
|
};
|
|
328
317
|
};
|
|
329
318
|
};
|
|
@@ -377,21 +366,25 @@ export const METHOD_MAP: {
|
|
|
377
366
|
readonly '/session/:sessionId/ime/available_engines': {
|
|
378
367
|
readonly GET: {
|
|
379
368
|
readonly command: "availableIMEEngines";
|
|
369
|
+
readonly deprecated: true;
|
|
380
370
|
};
|
|
381
371
|
};
|
|
382
372
|
readonly '/session/:sessionId/ime/active_engine': {
|
|
383
373
|
readonly GET: {
|
|
384
374
|
readonly command: "getActiveIMEEngine";
|
|
375
|
+
readonly deprecated: true;
|
|
385
376
|
};
|
|
386
377
|
};
|
|
387
378
|
readonly '/session/:sessionId/ime/activated': {
|
|
388
379
|
readonly GET: {
|
|
389
380
|
readonly command: "isIMEActivated";
|
|
381
|
+
readonly deprecated: true;
|
|
390
382
|
};
|
|
391
383
|
};
|
|
392
384
|
readonly '/session/:sessionId/ime/deactivate': {
|
|
393
385
|
readonly POST: {
|
|
394
386
|
readonly command: "deactivateIMEEngine";
|
|
387
|
+
readonly deprecated: true;
|
|
395
388
|
};
|
|
396
389
|
};
|
|
397
390
|
readonly '/session/:sessionId/ime/activate': {
|
|
@@ -400,6 +393,7 @@ export const METHOD_MAP: {
|
|
|
400
393
|
readonly payloadParams: {
|
|
401
394
|
readonly required: readonly ["engine"];
|
|
402
395
|
};
|
|
396
|
+
readonly deprecated: true;
|
|
403
397
|
};
|
|
404
398
|
};
|
|
405
399
|
readonly '/session/:sessionId/rotation': {
|
|
@@ -454,6 +448,7 @@ export const METHOD_MAP: {
|
|
|
454
448
|
readonly '/session/:sessionId/network_connection': {
|
|
455
449
|
readonly GET: {
|
|
456
450
|
readonly command: "getNetworkConnection";
|
|
451
|
+
readonly deprecated: true;
|
|
457
452
|
};
|
|
458
453
|
readonly POST: {
|
|
459
454
|
readonly command: "setNetworkConnection";
|
|
@@ -461,6 +456,7 @@ export const METHOD_MAP: {
|
|
|
461
456
|
readonly unwrap: "parameters";
|
|
462
457
|
readonly required: readonly ["type"];
|
|
463
458
|
};
|
|
459
|
+
readonly deprecated: true;
|
|
464
460
|
};
|
|
465
461
|
};
|
|
466
462
|
readonly '/session/:sessionId/receive_async_response': {
|
|
@@ -469,6 +465,7 @@ export const METHOD_MAP: {
|
|
|
469
465
|
readonly payloadParams: {
|
|
470
466
|
readonly required: readonly ["status", "value"];
|
|
471
467
|
};
|
|
468
|
+
readonly deprecated: true;
|
|
472
469
|
};
|
|
473
470
|
};
|
|
474
471
|
readonly '/appium/sessions': {
|
|
@@ -484,9 +481,6 @@ export const METHOD_MAP: {
|
|
|
484
481
|
readonly '/session/:sessionId/appium/device/system_time': {
|
|
485
482
|
readonly GET: {
|
|
486
483
|
readonly command: "getDeviceTime";
|
|
487
|
-
readonly payloadParams: {
|
|
488
|
-
readonly optional: readonly ["format"];
|
|
489
|
-
};
|
|
490
484
|
};
|
|
491
485
|
readonly POST: {
|
|
492
486
|
readonly command: "getDeviceTime";
|
|
@@ -540,18 +534,11 @@ export const METHOD_MAP: {
|
|
|
540
534
|
};
|
|
541
535
|
};
|
|
542
536
|
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
537
|
readonly POST: {
|
|
550
538
|
readonly command: "queryAppState";
|
|
551
539
|
readonly payloadParams: {
|
|
552
540
|
readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
|
|
553
541
|
};
|
|
554
|
-
readonly deprecated: true;
|
|
555
542
|
};
|
|
556
543
|
};
|
|
557
544
|
readonly '/session/:sessionId/appium/device/hide_keyboard': {
|
|
@@ -693,694 +680,6 @@ export const METHOD_MAP: {
|
|
|
693
680
|
};
|
|
694
681
|
};
|
|
695
682
|
};
|
|
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
|
-
};
|
|
856
|
-
};
|
|
857
|
-
readonly '/session/:sessionId/touch/click': {
|
|
858
|
-
readonly POST: {
|
|
859
|
-
readonly command: "click";
|
|
860
|
-
readonly payloadParams: {
|
|
861
|
-
readonly required: readonly ["element"];
|
|
862
|
-
};
|
|
863
|
-
readonly deprecated: true;
|
|
864
|
-
};
|
|
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;
|
|
873
|
-
};
|
|
874
|
-
};
|
|
875
|
-
readonly '/session/:sessionId/touch/up': {
|
|
876
|
-
readonly POST: {
|
|
877
|
-
readonly command: "touchUp";
|
|
878
|
-
readonly payloadParams: {
|
|
879
|
-
readonly required: readonly ["x", "y"];
|
|
880
|
-
};
|
|
881
|
-
readonly deprecated: true;
|
|
882
|
-
};
|
|
883
|
-
};
|
|
884
|
-
readonly '/session/:sessionId/touch/move': {
|
|
885
|
-
readonly POST: {
|
|
886
|
-
readonly command: "touchMove";
|
|
887
|
-
readonly payloadParams: {
|
|
888
|
-
readonly required: readonly ["x", "y"];
|
|
889
|
-
};
|
|
890
|
-
readonly deprecated: true;
|
|
891
|
-
};
|
|
892
|
-
};
|
|
893
|
-
readonly '/session/:sessionId/touch/scroll': {
|
|
894
|
-
readonly POST: {
|
|
895
|
-
readonly deprecated: true;
|
|
896
|
-
};
|
|
897
|
-
};
|
|
898
|
-
readonly '/session/:sessionId/touch/doubleclick': {
|
|
899
|
-
readonly POST: {
|
|
900
|
-
readonly deprecated: true;
|
|
901
|
-
};
|
|
902
|
-
};
|
|
903
|
-
readonly '/session/:sessionId/touch/longclick': {
|
|
904
|
-
readonly POST: {
|
|
905
|
-
readonly command: "touchLongClick";
|
|
906
|
-
readonly payloadParams: {
|
|
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"];
|
|
917
|
-
};
|
|
918
|
-
readonly deprecated: true;
|
|
919
|
-
};
|
|
920
|
-
};
|
|
921
|
-
readonly '/session/:sessionId/local_storage': {
|
|
922
|
-
readonly GET: {
|
|
923
|
-
readonly deprecated: true;
|
|
924
|
-
};
|
|
925
|
-
readonly POST: {
|
|
926
|
-
readonly deprecated: true;
|
|
927
|
-
};
|
|
928
|
-
readonly DELETE: {
|
|
929
|
-
readonly deprecated: true;
|
|
930
|
-
};
|
|
931
|
-
};
|
|
932
|
-
readonly '/session/:sessionId/local_storage/key/:key': {
|
|
933
|
-
readonly GET: {
|
|
934
|
-
readonly deprecated: true;
|
|
935
|
-
};
|
|
936
|
-
readonly DELETE: {
|
|
937
|
-
readonly deprecated: true;
|
|
938
|
-
};
|
|
939
|
-
};
|
|
940
|
-
readonly '/session/:sessionId/local_storage/size': {
|
|
941
|
-
readonly GET: {
|
|
942
|
-
readonly deprecated: true;
|
|
943
|
-
};
|
|
944
|
-
};
|
|
945
|
-
readonly '/session/:sessionId/session_storage': {
|
|
946
|
-
readonly GET: {
|
|
947
|
-
readonly deprecated: true;
|
|
948
|
-
};
|
|
949
|
-
readonly POST: {
|
|
950
|
-
readonly deprecated: true;
|
|
951
|
-
};
|
|
952
|
-
readonly DELETE: {
|
|
953
|
-
readonly deprecated: true;
|
|
954
|
-
};
|
|
955
|
-
};
|
|
956
|
-
readonly '/session/:sessionId/session_storage/key/:key': {
|
|
957
|
-
readonly GET: {
|
|
958
|
-
readonly deprecated: true;
|
|
959
|
-
};
|
|
960
|
-
readonly DELETE: {
|
|
961
|
-
readonly deprecated: true;
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
readonly '/session/:sessionId/session_storage/size': {
|
|
965
|
-
readonly GET: {
|
|
966
|
-
readonly deprecated: true;
|
|
967
|
-
};
|
|
968
|
-
};
|
|
969
|
-
readonly '/session/:sessionId/application_cache/status': {
|
|
970
|
-
readonly GET: {
|
|
971
|
-
readonly deprecated: true;
|
|
972
|
-
};
|
|
973
|
-
};
|
|
974
|
-
readonly '/session/:sessionId/alert_text': {
|
|
975
|
-
readonly GET: {
|
|
976
|
-
readonly command: "getAlertText";
|
|
977
|
-
readonly deprecated: true;
|
|
978
|
-
};
|
|
979
|
-
readonly POST: {
|
|
980
|
-
readonly command: "setAlertText";
|
|
981
|
-
readonly payloadParams: {
|
|
982
|
-
validate: (jsonObj: any) => false | "either \"text\" or \"value\" must be set";
|
|
983
|
-
optional: string[];
|
|
984
|
-
makeArgs: (jsonObj: any) => any[];
|
|
985
|
-
};
|
|
986
|
-
readonly deprecated: true;
|
|
987
|
-
};
|
|
988
|
-
};
|
|
989
|
-
readonly '/session/:sessionId/accept_alert': {
|
|
990
|
-
readonly POST: {
|
|
991
|
-
readonly command: "postAcceptAlert";
|
|
992
|
-
readonly deprecated: true;
|
|
993
|
-
};
|
|
994
|
-
};
|
|
995
|
-
readonly '/session/:sessionId/dismiss_alert': {
|
|
996
|
-
readonly POST: {
|
|
997
|
-
readonly command: "postDismissAlert";
|
|
998
|
-
readonly deprecated: true;
|
|
999
|
-
};
|
|
1000
|
-
};
|
|
1001
|
-
readonly '/session/:sessionId/screenshot/:elementId': {
|
|
1002
|
-
readonly GET: {
|
|
1003
|
-
readonly command: "getElementScreenshot";
|
|
1004
|
-
readonly deprecated: true;
|
|
1005
|
-
};
|
|
1006
|
-
};
|
|
1007
|
-
readonly '/session/:sessionId/element/:elementId/pageIndex': {
|
|
1008
|
-
readonly GET: {
|
|
1009
|
-
readonly command: "getPageIndex";
|
|
1010
|
-
readonly deprecated: true;
|
|
1011
|
-
};
|
|
1012
|
-
};
|
|
1013
|
-
readonly '/session/:sessionId/touch/perform': {
|
|
1014
|
-
readonly POST: {
|
|
1015
|
-
readonly command: "performTouch";
|
|
1016
|
-
readonly payloadParams: {
|
|
1017
|
-
readonly wrap: "actions";
|
|
1018
|
-
readonly required: readonly ["actions"];
|
|
1019
|
-
};
|
|
1020
|
-
readonly deprecated: true;
|
|
1021
|
-
};
|
|
1022
|
-
};
|
|
1023
|
-
readonly '/session/:sessionId/touch/multi/perform': {
|
|
1024
|
-
readonly POST: {
|
|
1025
|
-
readonly command: "performMultiAction";
|
|
1026
|
-
readonly payloadParams: {
|
|
1027
|
-
readonly required: readonly ["actions"];
|
|
1028
|
-
readonly optional: readonly ["elementId"];
|
|
1029
|
-
};
|
|
1030
|
-
readonly deprecated: true;
|
|
1031
|
-
};
|
|
1032
|
-
};
|
|
1033
|
-
readonly '/session/:sessionId/appium/device/shake': {
|
|
1034
|
-
readonly POST: {
|
|
1035
|
-
readonly command: "mobileShake";
|
|
1036
|
-
readonly deprecated: true;
|
|
1037
|
-
};
|
|
1038
|
-
};
|
|
1039
|
-
readonly '/session/:sessionId/appium/device/lock': {
|
|
1040
|
-
readonly POST: {
|
|
1041
|
-
readonly command: "lock";
|
|
1042
|
-
readonly payloadParams: {
|
|
1043
|
-
readonly optional: readonly ["seconds"];
|
|
1044
|
-
};
|
|
1045
|
-
readonly deprecated: true;
|
|
1046
|
-
};
|
|
1047
|
-
};
|
|
1048
|
-
readonly '/session/:sessionId/appium/device/unlock': {
|
|
1049
|
-
readonly POST: {
|
|
1050
|
-
readonly command: "unlock";
|
|
1051
|
-
readonly deprecated: true;
|
|
1052
|
-
};
|
|
1053
|
-
};
|
|
1054
|
-
readonly '/session/:sessionId/appium/device/is_locked': {
|
|
1055
|
-
readonly POST: {
|
|
1056
|
-
readonly command: "isLocked";
|
|
1057
|
-
readonly deprecated: true;
|
|
1058
|
-
};
|
|
1059
|
-
};
|
|
1060
|
-
readonly '/session/:sessionId/appium/start_recording_screen': {
|
|
1061
|
-
readonly POST: {
|
|
1062
|
-
readonly command: "startRecordingScreen";
|
|
1063
|
-
readonly payloadParams: {
|
|
1064
|
-
readonly optional: readonly ["options"];
|
|
1065
|
-
};
|
|
1066
|
-
readonly deprecated: true;
|
|
1067
|
-
};
|
|
1068
|
-
};
|
|
1069
|
-
readonly '/session/:sessionId/appium/stop_recording_screen': {
|
|
1070
|
-
readonly POST: {
|
|
1071
|
-
readonly command: "stopRecordingScreen";
|
|
1072
|
-
readonly payloadParams: {
|
|
1073
|
-
readonly optional: readonly ["options"];
|
|
1074
|
-
};
|
|
1075
|
-
readonly deprecated: true;
|
|
1076
|
-
};
|
|
1077
|
-
};
|
|
1078
|
-
readonly '/session/:sessionId/appium/performanceData/types': {
|
|
1079
|
-
readonly POST: {
|
|
1080
|
-
readonly command: "getPerformanceDataTypes";
|
|
1081
|
-
readonly deprecated: true;
|
|
1082
|
-
};
|
|
1083
|
-
};
|
|
1084
|
-
readonly '/session/:sessionId/appium/getPerformanceData': {
|
|
1085
|
-
readonly POST: {
|
|
1086
|
-
readonly command: "getPerformanceData";
|
|
1087
|
-
readonly payloadParams: {
|
|
1088
|
-
readonly required: readonly ["packageName", "dataType"];
|
|
1089
|
-
readonly optional: readonly ["dataReadTimeout"];
|
|
1090
|
-
};
|
|
1091
|
-
readonly deprecated: true;
|
|
1092
|
-
};
|
|
1093
|
-
};
|
|
1094
|
-
readonly '/session/:sessionId/appium/device/press_keycode': {
|
|
1095
|
-
readonly POST: {
|
|
1096
|
-
readonly command: "pressKeyCode";
|
|
1097
|
-
readonly payloadParams: {
|
|
1098
|
-
readonly required: readonly ["keycode"];
|
|
1099
|
-
readonly optional: readonly ["metastate", "flags"];
|
|
1100
|
-
};
|
|
1101
|
-
readonly deprecated: true;
|
|
1102
|
-
};
|
|
1103
|
-
};
|
|
1104
|
-
readonly '/session/:sessionId/appium/device/long_press_keycode': {
|
|
1105
|
-
readonly POST: {
|
|
1106
|
-
readonly command: "longPressKeyCode";
|
|
1107
|
-
readonly payloadParams: {
|
|
1108
|
-
readonly required: readonly ["keycode"];
|
|
1109
|
-
readonly optional: readonly ["metastate", "flags"];
|
|
1110
|
-
};
|
|
1111
|
-
readonly deprecated: true;
|
|
1112
|
-
};
|
|
1113
|
-
};
|
|
1114
|
-
readonly '/session/:sessionId/appium/device/finger_print': {
|
|
1115
|
-
readonly POST: {
|
|
1116
|
-
readonly command: "fingerprint";
|
|
1117
|
-
readonly payloadParams: {
|
|
1118
|
-
readonly required: readonly ["fingerprintId"];
|
|
1119
|
-
};
|
|
1120
|
-
readonly deprecated: true;
|
|
1121
|
-
};
|
|
1122
|
-
};
|
|
1123
|
-
readonly '/session/:sessionId/appium/device/send_sms': {
|
|
1124
|
-
readonly POST: {
|
|
1125
|
-
readonly command: "sendSMS";
|
|
1126
|
-
readonly payloadParams: {
|
|
1127
|
-
readonly required: readonly ["phoneNumber", "message"];
|
|
1128
|
-
};
|
|
1129
|
-
readonly deprecated: true;
|
|
1130
|
-
};
|
|
1131
|
-
};
|
|
1132
|
-
readonly '/session/:sessionId/appium/device/gsm_call': {
|
|
1133
|
-
readonly POST: {
|
|
1134
|
-
readonly command: "gsmCall";
|
|
1135
|
-
readonly payloadParams: {
|
|
1136
|
-
readonly required: readonly ["phoneNumber", "action"];
|
|
1137
|
-
};
|
|
1138
|
-
readonly deprecated: true;
|
|
1139
|
-
};
|
|
1140
|
-
};
|
|
1141
|
-
readonly '/session/:sessionId/appium/device/gsm_signal': {
|
|
1142
|
-
readonly POST: {
|
|
1143
|
-
readonly command: "gsmSignal";
|
|
1144
|
-
readonly payloadParams: {
|
|
1145
|
-
readonly required: readonly ["signalStrength"];
|
|
1146
|
-
};
|
|
1147
|
-
readonly deprecated: true;
|
|
1148
|
-
};
|
|
1149
|
-
};
|
|
1150
|
-
readonly '/session/:sessionId/appium/device/gsm_voice': {
|
|
1151
|
-
readonly POST: {
|
|
1152
|
-
readonly command: "gsmVoice";
|
|
1153
|
-
readonly payloadParams: {
|
|
1154
|
-
readonly required: readonly ["state"];
|
|
1155
|
-
};
|
|
1156
|
-
readonly deprecated: true;
|
|
1157
|
-
};
|
|
1158
|
-
};
|
|
1159
|
-
readonly '/session/:sessionId/appium/device/power_capacity': {
|
|
1160
|
-
readonly POST: {
|
|
1161
|
-
readonly command: "powerCapacity";
|
|
1162
|
-
readonly payloadParams: {
|
|
1163
|
-
readonly required: readonly ["percent"];
|
|
1164
|
-
};
|
|
1165
|
-
readonly deprecated: true;
|
|
1166
|
-
};
|
|
1167
|
-
};
|
|
1168
|
-
readonly '/session/:sessionId/appium/device/power_ac': {
|
|
1169
|
-
readonly POST: {
|
|
1170
|
-
readonly command: "powerAC";
|
|
1171
|
-
readonly payloadParams: {
|
|
1172
|
-
readonly required: readonly ["state"];
|
|
1173
|
-
};
|
|
1174
|
-
readonly deprecated: true;
|
|
1175
|
-
};
|
|
1176
|
-
};
|
|
1177
|
-
readonly '/session/:sessionId/appium/device/network_speed': {
|
|
1178
|
-
readonly POST: {
|
|
1179
|
-
readonly command: "networkSpeed";
|
|
1180
|
-
readonly payloadParams: {
|
|
1181
|
-
readonly required: readonly ["netspeed"];
|
|
1182
|
-
};
|
|
1183
|
-
readonly deprecated: true;
|
|
1184
|
-
};
|
|
1185
|
-
};
|
|
1186
|
-
readonly '/session/:sessionId/appium/device/keyevent': {
|
|
1187
|
-
readonly POST: {
|
|
1188
|
-
readonly command: "keyevent";
|
|
1189
|
-
readonly payloadParams: {
|
|
1190
|
-
readonly required: readonly ["keycode"];
|
|
1191
|
-
readonly optional: readonly ["metastate"];
|
|
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;
|
|
1206
|
-
};
|
|
1207
|
-
};
|
|
1208
|
-
readonly '/session/:sessionId/appium/device/toggle_airplane_mode': {
|
|
1209
|
-
readonly POST: {
|
|
1210
|
-
readonly command: "toggleFlightMode";
|
|
1211
|
-
readonly deprecated: true;
|
|
1212
|
-
};
|
|
1213
|
-
};
|
|
1214
|
-
readonly '/session/:sessionId/appium/device/toggle_data': {
|
|
1215
|
-
readonly POST: {
|
|
1216
|
-
readonly command: "toggleData";
|
|
1217
|
-
readonly deprecated: true;
|
|
1218
|
-
};
|
|
1219
|
-
};
|
|
1220
|
-
readonly '/session/:sessionId/appium/device/toggle_wifi': {
|
|
1221
|
-
readonly POST: {
|
|
1222
|
-
readonly command: "toggleWiFi";
|
|
1223
|
-
readonly deprecated: true;
|
|
1224
|
-
};
|
|
1225
|
-
};
|
|
1226
|
-
readonly '/session/:sessionId/appium/device/toggle_location_services': {
|
|
1227
|
-
readonly POST: {
|
|
1228
|
-
readonly command: "toggleLocationServices";
|
|
1229
|
-
readonly deprecated: true;
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
readonly '/session/:sessionId/appium/device/open_notifications': {
|
|
1233
|
-
readonly POST: {
|
|
1234
|
-
readonly command: "openNotifications";
|
|
1235
|
-
readonly deprecated: true;
|
|
1236
|
-
};
|
|
1237
|
-
};
|
|
1238
|
-
readonly '/session/:sessionId/appium/device/start_activity': {
|
|
1239
|
-
readonly POST: {
|
|
1240
|
-
readonly command: "startActivity";
|
|
1241
|
-
readonly payloadParams: {
|
|
1242
|
-
readonly required: readonly ["appPackage", "appActivity"];
|
|
1243
|
-
readonly optional: readonly ["appWaitPackage", "appWaitActivity", "intentAction", "intentCategory", "intentFlags", "optionalIntentArguments", "dontStopAppOnReset"];
|
|
1244
|
-
};
|
|
1245
|
-
readonly deprecated: true;
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
readonly '/session/:sessionId/appium/device/system_bars': {
|
|
1249
|
-
readonly GET: {
|
|
1250
|
-
readonly command: "getSystemBars";
|
|
1251
|
-
readonly deprecated: true;
|
|
1252
|
-
};
|
|
1253
|
-
};
|
|
1254
|
-
readonly '/session/:sessionId/appium/device/display_density': {
|
|
1255
|
-
readonly GET: {
|
|
1256
|
-
readonly command: "getDisplayDensity";
|
|
1257
|
-
readonly deprecated: true;
|
|
1258
|
-
};
|
|
1259
|
-
};
|
|
1260
|
-
readonly '/session/:sessionId/appium/simulator/touch_id': {
|
|
1261
|
-
readonly POST: {
|
|
1262
|
-
readonly command: "touchId";
|
|
1263
|
-
readonly payloadParams: {
|
|
1264
|
-
readonly required: readonly ["match"];
|
|
1265
|
-
};
|
|
1266
|
-
readonly deprecated: true;
|
|
1267
|
-
};
|
|
1268
|
-
};
|
|
1269
|
-
readonly '/session/:sessionId/appium/simulator/toggle_touch_id_enrollment': {
|
|
1270
|
-
readonly POST: {
|
|
1271
|
-
readonly command: "toggleEnrollTouchId";
|
|
1272
|
-
readonly payloadParams: {
|
|
1273
|
-
readonly optional: readonly ["enabled"];
|
|
1274
|
-
};
|
|
1275
|
-
readonly deprecated: true;
|
|
1276
|
-
};
|
|
1277
|
-
};
|
|
1278
|
-
readonly '/session/:sessionId/appium/app/launch': {
|
|
1279
|
-
readonly POST: {
|
|
1280
|
-
readonly command: "launchApp";
|
|
1281
|
-
readonly deprecated: true;
|
|
1282
|
-
};
|
|
1283
|
-
};
|
|
1284
|
-
readonly '/session/:sessionId/appium/app/close': {
|
|
1285
|
-
readonly POST: {
|
|
1286
|
-
readonly command: "closeApp";
|
|
1287
|
-
readonly deprecated: true;
|
|
1288
|
-
};
|
|
1289
|
-
};
|
|
1290
|
-
readonly '/session/:sessionId/appium/app/reset': {
|
|
1291
|
-
readonly POST: {
|
|
1292
|
-
readonly command: "reset";
|
|
1293
|
-
readonly deprecated: true;
|
|
1294
|
-
};
|
|
1295
|
-
};
|
|
1296
|
-
readonly '/session/:sessionId/appium/app/background': {
|
|
1297
|
-
readonly POST: {
|
|
1298
|
-
readonly command: "background";
|
|
1299
|
-
readonly payloadParams: {
|
|
1300
|
-
readonly required: readonly ["seconds"];
|
|
1301
|
-
};
|
|
1302
|
-
readonly deprecated: true;
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1305
|
-
readonly '/session/:sessionId/appium/app/end_test_coverage': {
|
|
1306
|
-
readonly POST: {
|
|
1307
|
-
readonly command: "endCoverage";
|
|
1308
|
-
readonly payloadParams: {
|
|
1309
|
-
readonly required: readonly ["intent", "path"];
|
|
1310
|
-
};
|
|
1311
|
-
readonly deprecated: true;
|
|
1312
|
-
};
|
|
1313
|
-
};
|
|
1314
|
-
readonly '/session/:sessionId/appium/app/strings': {
|
|
1315
|
-
readonly POST: {
|
|
1316
|
-
readonly command: "getStrings";
|
|
1317
|
-
readonly payloadParams: {
|
|
1318
|
-
readonly optional: readonly ["language", "stringFile"];
|
|
1319
|
-
};
|
|
1320
|
-
readonly deprecated: true;
|
|
1321
|
-
};
|
|
1322
|
-
};
|
|
1323
|
-
readonly '/session/:sessionId/appium/element/:elementId/value': {
|
|
1324
|
-
readonly POST: {
|
|
1325
|
-
readonly command: "setValueImmediate";
|
|
1326
|
-
readonly payloadParams: {
|
|
1327
|
-
readonly required: readonly ["text"];
|
|
1328
|
-
};
|
|
1329
|
-
readonly deprecated: true;
|
|
1330
|
-
};
|
|
1331
|
-
};
|
|
1332
|
-
readonly '/session/:sessionId/appium/element/:elementId/replace_value': {
|
|
1333
|
-
readonly POST: {
|
|
1334
|
-
readonly command: "replaceValue";
|
|
1335
|
-
readonly payloadParams: {
|
|
1336
|
-
readonly required: readonly ["text"];
|
|
1337
|
-
};
|
|
1338
|
-
readonly deprecated: true;
|
|
1339
|
-
};
|
|
1340
|
-
};
|
|
1341
|
-
readonly '/session/:sessionId/appium/receive_async_response': {
|
|
1342
|
-
readonly POST: {
|
|
1343
|
-
readonly command: "receiveAsyncResponse";
|
|
1344
|
-
readonly payloadParams: {
|
|
1345
|
-
readonly required: readonly ["response"];
|
|
1346
|
-
};
|
|
1347
|
-
readonly deprecated: true;
|
|
1348
|
-
};
|
|
1349
|
-
};
|
|
1350
|
-
readonly '/session/:sessionId/appium/device/set_clipboard': {
|
|
1351
|
-
readonly POST: {
|
|
1352
|
-
readonly command: "setClipboard";
|
|
1353
|
-
readonly payloadParams: {
|
|
1354
|
-
readonly required: readonly ["content"];
|
|
1355
|
-
readonly optional: readonly ["contentType", "label"];
|
|
1356
|
-
};
|
|
1357
|
-
readonly deprecated: true;
|
|
1358
|
-
};
|
|
1359
|
-
};
|
|
1360
|
-
readonly '/session/:sessionId/appium/device/get_clipboard': {
|
|
1361
|
-
readonly POST: {
|
|
1362
|
-
readonly command: "getClipboard";
|
|
1363
|
-
readonly payloadParams: {
|
|
1364
|
-
readonly optional: readonly ["contentType"];
|
|
1365
|
-
};
|
|
1366
|
-
readonly deprecated: true;
|
|
1367
|
-
};
|
|
1368
|
-
};
|
|
1369
|
-
readonly '/session/:sessionId/log': {
|
|
1370
|
-
readonly POST: {
|
|
1371
|
-
readonly command: "getLog";
|
|
1372
|
-
readonly payloadParams: {
|
|
1373
|
-
readonly required: readonly ["type"];
|
|
1374
|
-
};
|
|
1375
|
-
readonly deprecated: true;
|
|
1376
|
-
};
|
|
1377
|
-
};
|
|
1378
|
-
readonly '/session/:sessionId/log/types': {
|
|
1379
|
-
readonly GET: {
|
|
1380
|
-
readonly command: "getLogTypes";
|
|
1381
|
-
readonly deprecated: true;
|
|
1382
|
-
};
|
|
1383
|
-
};
|
|
1384
683
|
};
|
|
1385
684
|
export const ALL_COMMANDS: any[];
|
|
1386
685
|
export const NO_SESSION_ID_COMMANDS: string[];
|