@appium/base-driver 9.17.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.
Files changed (81) hide show
  1. package/build/lib/basedriver/capabilities.d.ts.map +1 -1
  2. package/build/lib/basedriver/capabilities.js +2 -4
  3. package/build/lib/basedriver/capabilities.js.map +1 -1
  4. package/build/lib/basedriver/commands/timeout.js +7 -25
  5. package/build/lib/basedriver/commands/timeout.js.map +1 -1
  6. package/build/lib/basedriver/core.d.ts +0 -8
  7. package/build/lib/basedriver/core.d.ts.map +1 -1
  8. package/build/lib/basedriver/core.js +8 -18
  9. package/build/lib/basedriver/core.js.map +1 -1
  10. package/build/lib/basedriver/driver.js +2 -2
  11. package/build/lib/basedriver/driver.js.map +1 -1
  12. package/build/lib/basedriver/helpers.d.ts +9 -1
  13. package/build/lib/basedriver/helpers.d.ts.map +1 -1
  14. package/build/lib/basedriver/helpers.js +56 -142
  15. package/build/lib/basedriver/helpers.js.map +1 -1
  16. package/build/lib/basedriver/validation.d.ts +7 -0
  17. package/build/lib/basedriver/validation.d.ts.map +1 -0
  18. package/build/lib/basedriver/validation.js +130 -0
  19. package/build/lib/basedriver/validation.js.map +1 -0
  20. package/build/lib/express/middleware.d.ts +0 -6
  21. package/build/lib/express/middleware.d.ts.map +1 -1
  22. package/build/lib/express/middleware.js +12 -64
  23. package/build/lib/express/middleware.js.map +1 -1
  24. package/build/lib/express/server.d.ts.map +1 -1
  25. package/build/lib/express/server.js +1 -2
  26. package/build/lib/express/server.js.map +1 -1
  27. package/build/lib/helpers/capabilities.d.ts +13 -6
  28. package/build/lib/helpers/capabilities.d.ts.map +1 -1
  29. package/build/lib/helpers/capabilities.js +7 -0
  30. package/build/lib/helpers/capabilities.js.map +1 -1
  31. package/build/lib/index.d.ts +1 -0
  32. package/build/lib/index.d.ts.map +1 -1
  33. package/build/lib/index.js +3 -1
  34. package/build/lib/index.js.map +1 -1
  35. package/build/lib/jsonwp-proxy/proxy.d.ts +0 -8
  36. package/build/lib/jsonwp-proxy/proxy.d.ts.map +1 -1
  37. package/build/lib/jsonwp-proxy/proxy.js +1 -29
  38. package/build/lib/jsonwp-proxy/proxy.js.map +1 -1
  39. package/build/lib/protocol/errors.d.ts +171 -277
  40. package/build/lib/protocol/errors.d.ts.map +1 -1
  41. package/build/lib/protocol/errors.js +201 -421
  42. package/build/lib/protocol/errors.js.map +1 -1
  43. package/build/lib/protocol/helpers.d.ts +6 -6
  44. package/build/lib/protocol/helpers.d.ts.map +1 -1
  45. package/build/lib/protocol/helpers.js +11 -7
  46. package/build/lib/protocol/helpers.js.map +1 -1
  47. package/build/lib/protocol/protocol.d.ts +5 -0
  48. package/build/lib/protocol/protocol.d.ts.map +1 -1
  49. package/build/lib/protocol/protocol.js +23 -23
  50. package/build/lib/protocol/protocol.js.map +1 -1
  51. package/build/lib/protocol/routes.d.ts +6 -715
  52. package/build/lib/protocol/routes.d.ts.map +1 -1
  53. package/build/lib/protocol/routes.js +16 -481
  54. package/build/lib/protocol/routes.js.map +1 -1
  55. package/build/lib/protocol/validators.d.ts +4 -7
  56. package/build/lib/protocol/validators.d.ts.map +1 -1
  57. package/build/lib/protocol/validators.js +4 -24
  58. package/build/lib/protocol/validators.js.map +1 -1
  59. package/lib/basedriver/capabilities.ts +2 -4
  60. package/lib/basedriver/commands/timeout.ts +11 -34
  61. package/lib/basedriver/core.ts +10 -19
  62. package/lib/basedriver/driver.ts +3 -3
  63. package/lib/basedriver/helpers.js +61 -167
  64. package/lib/basedriver/validation.ts +145 -0
  65. package/lib/express/middleware.js +16 -75
  66. package/lib/express/server.js +1 -3
  67. package/lib/helpers/capabilities.js +9 -4
  68. package/lib/index.js +2 -0
  69. package/lib/jsonwp-proxy/proxy.js +2 -33
  70. package/lib/protocol/{errors.js → errors.ts} +322 -436
  71. package/lib/protocol/helpers.js +12 -8
  72. package/lib/protocol/protocol.js +25 -23
  73. package/lib/protocol/routes.js +18 -491
  74. package/lib/protocol/validators.ts +19 -0
  75. package/package.json +10 -10
  76. package/build/lib/basedriver/desired-caps.d.ts +0 -5
  77. package/build/lib/basedriver/desired-caps.d.ts.map +0 -1
  78. package/build/lib/basedriver/desired-caps.js +0 -92
  79. package/build/lib/basedriver/desired-caps.js.map +0 -1
  80. package/lib/basedriver/desired-caps.js +0 -103
  81. package/lib/protocol/validators.js +0 -41
@@ -22,8 +22,7 @@ export const METHOD_MAP: {
22
22
  readonly POST: {
23
23
  readonly command: "createSession";
24
24
  readonly payloadParams: {
25
- readonly validate: (jsonObj: any) => false | "we require one of \"desiredCapabilities\" or \"capabilities\" object";
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: (jsonObj: any, protocolName: string) => "W3C protocol expects any of script, pageLoad or implicit to be set" | "MJSONWP protocol requires type and ms" | undefined;
47
- readonly optional: readonly ["type", "ms", "script", "pageLoad", "implicit"];
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 optional: readonly ["name", "handle"];
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 validate: (jsonObj: any) => false | "we require one of \"text\" or \"value\" params";
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
- validate: (jsonObj: any) => false | "either \"text\" or \"value\" must be set";
325
- optional: string[];
326
- makeArgs: (jsonObj: any) => any[];
315
+ readonly required: readonly ["text"];
327
316
  };
328
317
  };
329
318
  };
@@ -492,9 +481,6 @@ export const METHOD_MAP: {
492
481
  readonly '/session/:sessionId/appium/device/system_time': {
493
482
  readonly GET: {
494
483
  readonly command: "getDeviceTime";
495
- readonly payloadParams: {
496
- readonly optional: readonly ["format"];
497
- };
498
484
  };
499
485
  readonly POST: {
500
486
  readonly command: "getDeviceTime";
@@ -548,18 +534,11 @@ export const METHOD_MAP: {
548
534
  };
549
535
  };
550
536
  readonly '/session/:sessionId/appium/device/app_state': {
551
- readonly GET: {
552
- readonly command: "queryAppState";
553
- readonly payloadParams: {
554
- readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
555
- };
556
- };
557
537
  readonly POST: {
558
538
  readonly command: "queryAppState";
559
539
  readonly payloadParams: {
560
540
  readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
561
541
  };
562
- readonly deprecated: true;
563
542
  };
564
543
  };
565
544
  readonly '/session/:sessionId/appium/device/hide_keyboard': {
@@ -701,694 +680,6 @@ export const METHOD_MAP: {
701
680
  };
702
681
  };
703
682
  };
704
- readonly '/sessions': {
705
- readonly GET: {
706
- readonly command: "getSessions";
707
- readonly deprecated: true;
708
- };
709
- };
710
- readonly '/session/:sessionId/timeouts/async_script': {
711
- readonly POST: {
712
- readonly command: "asyncScriptTimeout";
713
- readonly payloadParams: {
714
- readonly required: readonly ["ms"];
715
- };
716
- readonly deprecated: true;
717
- };
718
- };
719
- readonly '/session/:sessionId/timeouts/implicit_wait': {
720
- readonly POST: {
721
- readonly command: "implicitWait";
722
- readonly payloadParams: {
723
- readonly required: readonly ["ms"];
724
- };
725
- readonly deprecated: true;
726
- };
727
- };
728
- readonly '/session/:sessionId/window_handle': {
729
- readonly GET: {
730
- readonly command: "getWindowHandle";
731
- readonly deprecated: true;
732
- };
733
- };
734
- readonly '/session/:sessionId/window/handle': {
735
- readonly GET: {
736
- readonly command: "getWindowHandle";
737
- readonly deprecated: true;
738
- };
739
- };
740
- readonly '/session/:sessionId/window_handles': {
741
- readonly GET: {
742
- readonly command: "getWindowHandles";
743
- readonly deprecated: true;
744
- };
745
- };
746
- readonly '/session/:sessionId/execute': {
747
- readonly POST: {
748
- readonly command: "execute";
749
- readonly payloadParams: {
750
- readonly required: readonly ["script", "args"];
751
- };
752
- readonly deprecated: true;
753
- };
754
- };
755
- readonly '/session/:sessionId/execute_async': {
756
- readonly POST: {
757
- readonly command: "executeAsync";
758
- readonly payloadParams: {
759
- readonly required: readonly ["script", "args"];
760
- };
761
- readonly deprecated: true;
762
- };
763
- };
764
- readonly '/session/:sessionId/window/:windowhandle/size': {
765
- readonly GET: {
766
- readonly command: "getWindowSize";
767
- readonly deprecated: true;
768
- };
769
- };
770
- readonly '/session/:sessionId/window/:windowhandle/position': {
771
- readonly POST: {
772
- readonly deprecated: true;
773
- };
774
- readonly GET: {
775
- readonly deprecated: true;
776
- };
777
- };
778
- readonly '/session/:sessionId/window/:windowhandle/maximize': {
779
- readonly POST: {
780
- readonly command: "maximizeWindow";
781
- readonly deprecated: true;
782
- };
783
- };
784
- readonly '/session/:sessionId/element/:elementId/submit': {
785
- readonly POST: {
786
- readonly command: "submit";
787
- readonly deprecated: true;
788
- };
789
- };
790
- readonly '/session/:sessionId/keys': {
791
- readonly POST: {
792
- readonly command: "keys";
793
- readonly payloadParams: {
794
- readonly required: readonly ["value"];
795
- };
796
- readonly deprecated: true;
797
- };
798
- };
799
- readonly '/session/:sessionId/element/:elementId/equals/:otherId': {
800
- readonly GET: {
801
- readonly command: "equalsElement";
802
- readonly deprecated: true;
803
- };
804
- };
805
- readonly '/session/:sessionId/element/:elementId/location': {
806
- readonly GET: {
807
- readonly command: "getLocation";
808
- readonly deprecated: true;
809
- };
810
- };
811
- readonly '/session/:sessionId/element/:elementId/location_in_view': {
812
- readonly GET: {
813
- readonly command: "getLocationInView";
814
- readonly deprecated: true;
815
- };
816
- };
817
- readonly '/session/:sessionId/element/:elementId/size': {
818
- readonly GET: {
819
- readonly command: "getSize";
820
- readonly deprecated: true;
821
- };
822
- };
823
- readonly '/session/:sessionId/moveto': {
824
- readonly POST: {
825
- readonly command: "moveTo";
826
- readonly payloadParams: {
827
- readonly optional: readonly ["element", "xoffset", "yoffset"];
828
- };
829
- readonly deprecated: true;
830
- };
831
- };
832
- readonly '/session/:sessionId/click': {
833
- readonly POST: {
834
- readonly command: "clickCurrent";
835
- readonly payloadParams: {
836
- readonly optional: readonly ["button"];
837
- };
838
- readonly deprecated: true;
839
- };
840
- };
841
- readonly '/session/:sessionId/buttondown': {
842
- readonly POST: {
843
- readonly command: "buttonDown";
844
- readonly payloadParams: {
845
- readonly optional: readonly ["button"];
846
- };
847
- readonly deprecated: true;
848
- };
849
- };
850
- readonly '/session/:sessionId/buttonup': {
851
- readonly POST: {
852
- readonly command: "buttonUp";
853
- readonly payloadParams: {
854
- readonly optional: readonly ["button"];
855
- };
856
- readonly deprecated: true;
857
- };
858
- };
859
- readonly '/session/:sessionId/doubleclick': {
860
- readonly POST: {
861
- readonly command: "doubleClick";
862
- readonly deprecated: true;
863
- };
864
- };
865
- readonly '/session/:sessionId/touch/click': {
866
- readonly POST: {
867
- readonly command: "click";
868
- readonly payloadParams: {
869
- readonly required: readonly ["element"];
870
- };
871
- readonly deprecated: true;
872
- };
873
- };
874
- readonly '/session/:sessionId/touch/down': {
875
- readonly POST: {
876
- readonly command: "touchDown";
877
- readonly payloadParams: {
878
- readonly required: readonly ["x", "y"];
879
- };
880
- readonly deprecated: true;
881
- };
882
- };
883
- readonly '/session/:sessionId/touch/up': {
884
- readonly POST: {
885
- readonly command: "touchUp";
886
- readonly payloadParams: {
887
- readonly required: readonly ["x", "y"];
888
- };
889
- readonly deprecated: true;
890
- };
891
- };
892
- readonly '/session/:sessionId/touch/move': {
893
- readonly POST: {
894
- readonly command: "touchMove";
895
- readonly payloadParams: {
896
- readonly required: readonly ["x", "y"];
897
- };
898
- readonly deprecated: true;
899
- };
900
- };
901
- readonly '/session/:sessionId/touch/scroll': {
902
- readonly POST: {
903
- readonly deprecated: true;
904
- };
905
- };
906
- readonly '/session/:sessionId/touch/doubleclick': {
907
- readonly POST: {
908
- readonly deprecated: true;
909
- };
910
- };
911
- readonly '/session/:sessionId/touch/longclick': {
912
- readonly POST: {
913
- readonly command: "touchLongClick";
914
- readonly payloadParams: {
915
- readonly required: readonly ["elements"];
916
- };
917
- readonly deprecated: true;
918
- };
919
- };
920
- readonly '/session/:sessionId/touch/flick': {
921
- readonly POST: {
922
- readonly command: "flick";
923
- readonly payloadParams: {
924
- readonly optional: readonly ["element", "xspeed", "yspeed", "xoffset", "yoffset", "speed"];
925
- };
926
- readonly deprecated: true;
927
- };
928
- };
929
- readonly '/session/:sessionId/local_storage': {
930
- readonly GET: {
931
- readonly deprecated: true;
932
- };
933
- readonly POST: {
934
- readonly deprecated: true;
935
- };
936
- readonly DELETE: {
937
- readonly deprecated: true;
938
- };
939
- };
940
- readonly '/session/:sessionId/local_storage/key/:key': {
941
- readonly GET: {
942
- readonly deprecated: true;
943
- };
944
- readonly DELETE: {
945
- readonly deprecated: true;
946
- };
947
- };
948
- readonly '/session/:sessionId/local_storage/size': {
949
- readonly GET: {
950
- readonly deprecated: true;
951
- };
952
- };
953
- readonly '/session/:sessionId/session_storage': {
954
- readonly GET: {
955
- readonly deprecated: true;
956
- };
957
- readonly POST: {
958
- readonly deprecated: true;
959
- };
960
- readonly DELETE: {
961
- readonly deprecated: true;
962
- };
963
- };
964
- readonly '/session/:sessionId/session_storage/key/:key': {
965
- readonly GET: {
966
- readonly deprecated: true;
967
- };
968
- readonly DELETE: {
969
- readonly deprecated: true;
970
- };
971
- };
972
- readonly '/session/:sessionId/session_storage/size': {
973
- readonly GET: {
974
- readonly deprecated: true;
975
- };
976
- };
977
- readonly '/session/:sessionId/application_cache/status': {
978
- readonly GET: {
979
- readonly deprecated: true;
980
- };
981
- };
982
- readonly '/session/:sessionId/alert_text': {
983
- readonly GET: {
984
- readonly command: "getAlertText";
985
- readonly deprecated: true;
986
- };
987
- readonly POST: {
988
- readonly command: "setAlertText";
989
- readonly payloadParams: {
990
- validate: (jsonObj: any) => false | "either \"text\" or \"value\" must be set";
991
- optional: string[];
992
- makeArgs: (jsonObj: any) => any[];
993
- };
994
- readonly deprecated: true;
995
- };
996
- };
997
- readonly '/session/:sessionId/accept_alert': {
998
- readonly POST: {
999
- readonly command: "postAcceptAlert";
1000
- readonly deprecated: true;
1001
- };
1002
- };
1003
- readonly '/session/:sessionId/dismiss_alert': {
1004
- readonly POST: {
1005
- readonly command: "postDismissAlert";
1006
- readonly deprecated: true;
1007
- };
1008
- };
1009
- readonly '/session/:sessionId/screenshot/:elementId': {
1010
- readonly GET: {
1011
- readonly command: "getElementScreenshot";
1012
- readonly deprecated: true;
1013
- };
1014
- };
1015
- readonly '/session/:sessionId/element/:elementId/pageIndex': {
1016
- readonly GET: {
1017
- readonly command: "getPageIndex";
1018
- readonly deprecated: true;
1019
- };
1020
- };
1021
- readonly '/session/:sessionId/touch/perform': {
1022
- readonly POST: {
1023
- readonly command: "performTouch";
1024
- readonly payloadParams: {
1025
- readonly wrap: "actions";
1026
- readonly required: readonly ["actions"];
1027
- };
1028
- readonly deprecated: true;
1029
- };
1030
- };
1031
- readonly '/session/:sessionId/touch/multi/perform': {
1032
- readonly POST: {
1033
- readonly command: "performMultiAction";
1034
- readonly payloadParams: {
1035
- readonly required: readonly ["actions"];
1036
- readonly optional: readonly ["elementId"];
1037
- };
1038
- readonly deprecated: true;
1039
- };
1040
- };
1041
- readonly '/session/:sessionId/appium/device/shake': {
1042
- readonly POST: {
1043
- readonly command: "mobileShake";
1044
- readonly deprecated: true;
1045
- };
1046
- };
1047
- readonly '/session/:sessionId/appium/device/lock': {
1048
- readonly POST: {
1049
- readonly command: "lock";
1050
- readonly payloadParams: {
1051
- readonly optional: readonly ["seconds"];
1052
- };
1053
- readonly deprecated: true;
1054
- };
1055
- };
1056
- readonly '/session/:sessionId/appium/device/unlock': {
1057
- readonly POST: {
1058
- readonly command: "unlock";
1059
- readonly deprecated: true;
1060
- };
1061
- };
1062
- readonly '/session/:sessionId/appium/device/is_locked': {
1063
- readonly POST: {
1064
- readonly command: "isLocked";
1065
- readonly deprecated: true;
1066
- };
1067
- };
1068
- readonly '/session/:sessionId/appium/start_recording_screen': {
1069
- readonly POST: {
1070
- readonly command: "startRecordingScreen";
1071
- readonly payloadParams: {
1072
- readonly optional: readonly ["options"];
1073
- };
1074
- readonly deprecated: true;
1075
- };
1076
- };
1077
- readonly '/session/:sessionId/appium/stop_recording_screen': {
1078
- readonly POST: {
1079
- readonly command: "stopRecordingScreen";
1080
- readonly payloadParams: {
1081
- readonly optional: readonly ["options"];
1082
- };
1083
- readonly deprecated: true;
1084
- };
1085
- };
1086
- readonly '/session/:sessionId/appium/performanceData/types': {
1087
- readonly POST: {
1088
- readonly command: "getPerformanceDataTypes";
1089
- readonly deprecated: true;
1090
- };
1091
- };
1092
- readonly '/session/:sessionId/appium/getPerformanceData': {
1093
- readonly POST: {
1094
- readonly command: "getPerformanceData";
1095
- readonly payloadParams: {
1096
- readonly required: readonly ["packageName", "dataType"];
1097
- readonly optional: readonly ["dataReadTimeout"];
1098
- };
1099
- readonly deprecated: true;
1100
- };
1101
- };
1102
- readonly '/session/:sessionId/appium/device/press_keycode': {
1103
- readonly POST: {
1104
- readonly command: "pressKeyCode";
1105
- readonly payloadParams: {
1106
- readonly required: readonly ["keycode"];
1107
- readonly optional: readonly ["metastate", "flags"];
1108
- };
1109
- readonly deprecated: true;
1110
- };
1111
- };
1112
- readonly '/session/:sessionId/appium/device/long_press_keycode': {
1113
- readonly POST: {
1114
- readonly command: "longPressKeyCode";
1115
- readonly payloadParams: {
1116
- readonly required: readonly ["keycode"];
1117
- readonly optional: readonly ["metastate", "flags"];
1118
- };
1119
- readonly deprecated: true;
1120
- };
1121
- };
1122
- readonly '/session/:sessionId/appium/device/finger_print': {
1123
- readonly POST: {
1124
- readonly command: "fingerprint";
1125
- readonly payloadParams: {
1126
- readonly required: readonly ["fingerprintId"];
1127
- };
1128
- readonly deprecated: true;
1129
- };
1130
- };
1131
- readonly '/session/:sessionId/appium/device/send_sms': {
1132
- readonly POST: {
1133
- readonly command: "sendSMS";
1134
- readonly payloadParams: {
1135
- readonly required: readonly ["phoneNumber", "message"];
1136
- };
1137
- readonly deprecated: true;
1138
- };
1139
- };
1140
- readonly '/session/:sessionId/appium/device/gsm_call': {
1141
- readonly POST: {
1142
- readonly command: "gsmCall";
1143
- readonly payloadParams: {
1144
- readonly required: readonly ["phoneNumber", "action"];
1145
- };
1146
- readonly deprecated: true;
1147
- };
1148
- };
1149
- readonly '/session/:sessionId/appium/device/gsm_signal': {
1150
- readonly POST: {
1151
- readonly command: "gsmSignal";
1152
- readonly payloadParams: {
1153
- readonly required: readonly ["signalStrength"];
1154
- };
1155
- readonly deprecated: true;
1156
- };
1157
- };
1158
- readonly '/session/:sessionId/appium/device/gsm_voice': {
1159
- readonly POST: {
1160
- readonly command: "gsmVoice";
1161
- readonly payloadParams: {
1162
- readonly required: readonly ["state"];
1163
- };
1164
- readonly deprecated: true;
1165
- };
1166
- };
1167
- readonly '/session/:sessionId/appium/device/power_capacity': {
1168
- readonly POST: {
1169
- readonly command: "powerCapacity";
1170
- readonly payloadParams: {
1171
- readonly required: readonly ["percent"];
1172
- };
1173
- readonly deprecated: true;
1174
- };
1175
- };
1176
- readonly '/session/:sessionId/appium/device/power_ac': {
1177
- readonly POST: {
1178
- readonly command: "powerAC";
1179
- readonly payloadParams: {
1180
- readonly required: readonly ["state"];
1181
- };
1182
- readonly deprecated: true;
1183
- };
1184
- };
1185
- readonly '/session/:sessionId/appium/device/network_speed': {
1186
- readonly POST: {
1187
- readonly command: "networkSpeed";
1188
- readonly payloadParams: {
1189
- readonly required: readonly ["netspeed"];
1190
- };
1191
- readonly deprecated: true;
1192
- };
1193
- };
1194
- readonly '/session/:sessionId/appium/device/keyevent': {
1195
- readonly POST: {
1196
- readonly command: "keyevent";
1197
- readonly payloadParams: {
1198
- readonly required: readonly ["keycode"];
1199
- readonly optional: readonly ["metastate"];
1200
- };
1201
- readonly deprecated: true;
1202
- };
1203
- };
1204
- readonly '/session/:sessionId/appium/device/current_activity': {
1205
- readonly GET: {
1206
- readonly command: "getCurrentActivity";
1207
- readonly deprecated: true;
1208
- };
1209
- };
1210
- readonly '/session/:sessionId/appium/device/current_package': {
1211
- readonly GET: {
1212
- readonly command: "getCurrentPackage";
1213
- readonly deprecated: true;
1214
- };
1215
- };
1216
- readonly '/session/:sessionId/appium/device/toggle_airplane_mode': {
1217
- readonly POST: {
1218
- readonly command: "toggleFlightMode";
1219
- readonly deprecated: true;
1220
- };
1221
- };
1222
- readonly '/session/:sessionId/appium/device/toggle_data': {
1223
- readonly POST: {
1224
- readonly command: "toggleData";
1225
- readonly deprecated: true;
1226
- };
1227
- };
1228
- readonly '/session/:sessionId/appium/device/toggle_wifi': {
1229
- readonly POST: {
1230
- readonly command: "toggleWiFi";
1231
- readonly deprecated: true;
1232
- };
1233
- };
1234
- readonly '/session/:sessionId/appium/device/toggle_location_services': {
1235
- readonly POST: {
1236
- readonly command: "toggleLocationServices";
1237
- readonly deprecated: true;
1238
- };
1239
- };
1240
- readonly '/session/:sessionId/appium/device/open_notifications': {
1241
- readonly POST: {
1242
- readonly command: "openNotifications";
1243
- readonly deprecated: true;
1244
- };
1245
- };
1246
- readonly '/session/:sessionId/appium/device/start_activity': {
1247
- readonly POST: {
1248
- readonly command: "startActivity";
1249
- readonly payloadParams: {
1250
- readonly required: readonly ["appPackage", "appActivity"];
1251
- readonly optional: readonly ["appWaitPackage", "appWaitActivity", "intentAction", "intentCategory", "intentFlags", "optionalIntentArguments", "dontStopAppOnReset"];
1252
- };
1253
- readonly deprecated: true;
1254
- };
1255
- };
1256
- readonly '/session/:sessionId/appium/device/system_bars': {
1257
- readonly GET: {
1258
- readonly command: "getSystemBars";
1259
- readonly deprecated: true;
1260
- };
1261
- };
1262
- readonly '/session/:sessionId/appium/device/display_density': {
1263
- readonly GET: {
1264
- readonly command: "getDisplayDensity";
1265
- readonly deprecated: true;
1266
- };
1267
- };
1268
- readonly '/session/:sessionId/appium/simulator/touch_id': {
1269
- readonly POST: {
1270
- readonly command: "touchId";
1271
- readonly payloadParams: {
1272
- readonly required: readonly ["match"];
1273
- };
1274
- readonly deprecated: true;
1275
- };
1276
- };
1277
- readonly '/session/:sessionId/appium/simulator/toggle_touch_id_enrollment': {
1278
- readonly POST: {
1279
- readonly command: "toggleEnrollTouchId";
1280
- readonly payloadParams: {
1281
- readonly optional: readonly ["enabled"];
1282
- };
1283
- readonly deprecated: true;
1284
- };
1285
- };
1286
- readonly '/session/:sessionId/appium/app/launch': {
1287
- readonly POST: {
1288
- readonly command: "launchApp";
1289
- readonly deprecated: true;
1290
- };
1291
- };
1292
- readonly '/session/:sessionId/appium/app/close': {
1293
- readonly POST: {
1294
- readonly command: "closeApp";
1295
- readonly deprecated: true;
1296
- };
1297
- };
1298
- readonly '/session/:sessionId/appium/app/reset': {
1299
- readonly POST: {
1300
- readonly command: "reset";
1301
- readonly deprecated: true;
1302
- };
1303
- };
1304
- readonly '/session/:sessionId/appium/app/background': {
1305
- readonly POST: {
1306
- readonly command: "background";
1307
- readonly payloadParams: {
1308
- readonly required: readonly ["seconds"];
1309
- };
1310
- readonly deprecated: true;
1311
- };
1312
- };
1313
- readonly '/session/:sessionId/appium/app/end_test_coverage': {
1314
- readonly POST: {
1315
- readonly command: "endCoverage";
1316
- readonly payloadParams: {
1317
- readonly required: readonly ["intent", "path"];
1318
- };
1319
- readonly deprecated: true;
1320
- };
1321
- };
1322
- readonly '/session/:sessionId/appium/app/strings': {
1323
- readonly POST: {
1324
- readonly command: "getStrings";
1325
- readonly payloadParams: {
1326
- readonly optional: readonly ["language", "stringFile"];
1327
- };
1328
- readonly deprecated: true;
1329
- };
1330
- };
1331
- readonly '/session/:sessionId/appium/element/:elementId/value': {
1332
- readonly POST: {
1333
- readonly command: "setValueImmediate";
1334
- readonly payloadParams: {
1335
- readonly required: readonly ["text"];
1336
- };
1337
- readonly deprecated: true;
1338
- };
1339
- };
1340
- readonly '/session/:sessionId/appium/element/:elementId/replace_value': {
1341
- readonly POST: {
1342
- readonly command: "replaceValue";
1343
- readonly payloadParams: {
1344
- readonly required: readonly ["text"];
1345
- };
1346
- readonly deprecated: true;
1347
- };
1348
- };
1349
- readonly '/session/:sessionId/appium/receive_async_response': {
1350
- readonly POST: {
1351
- readonly command: "receiveAsyncResponse";
1352
- readonly payloadParams: {
1353
- readonly required: readonly ["response"];
1354
- };
1355
- readonly deprecated: true;
1356
- };
1357
- };
1358
- readonly '/session/:sessionId/appium/device/set_clipboard': {
1359
- readonly POST: {
1360
- readonly command: "setClipboard";
1361
- readonly payloadParams: {
1362
- readonly required: readonly ["content"];
1363
- readonly optional: readonly ["contentType", "label"];
1364
- };
1365
- readonly deprecated: true;
1366
- };
1367
- };
1368
- readonly '/session/:sessionId/appium/device/get_clipboard': {
1369
- readonly POST: {
1370
- readonly command: "getClipboard";
1371
- readonly payloadParams: {
1372
- readonly optional: readonly ["contentType"];
1373
- };
1374
- readonly deprecated: true;
1375
- };
1376
- };
1377
- readonly '/session/:sessionId/log': {
1378
- readonly POST: {
1379
- readonly command: "getLog";
1380
- readonly payloadParams: {
1381
- readonly required: readonly ["type"];
1382
- };
1383
- readonly deprecated: true;
1384
- };
1385
- };
1386
- readonly '/session/:sessionId/log/types': {
1387
- readonly GET: {
1388
- readonly command: "getLogTypes";
1389
- readonly deprecated: true;
1390
- };
1391
- };
1392
683
  };
1393
684
  export const ALL_COMMANDS: any[];
1394
685
  export const NO_SESSION_ID_COMMANDS: string[];