appium-android-driver 9.15.0 → 10.0.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 (135) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/build/lib/commands/app-management.d.ts +39 -26
  3. package/build/lib/commands/app-management.d.ts.map +1 -1
  4. package/build/lib/commands/app-management.js +59 -42
  5. package/build/lib/commands/app-management.js.map +1 -1
  6. package/build/lib/commands/appearance.d.ts +10 -4
  7. package/build/lib/commands/appearance.d.ts.map +1 -1
  8. package/build/lib/commands/appearance.js +10 -7
  9. package/build/lib/commands/appearance.js.map +1 -1
  10. package/build/lib/commands/bluetooth.d.ts +2 -2
  11. package/build/lib/commands/bluetooth.d.ts.map +1 -1
  12. package/build/lib/commands/bluetooth.js +2 -3
  13. package/build/lib/commands/bluetooth.js.map +1 -1
  14. package/build/lib/commands/context/exports.d.ts +2 -2
  15. package/build/lib/commands/context/exports.d.ts.map +1 -1
  16. package/build/lib/commands/context/exports.js +3 -3
  17. package/build/lib/commands/context/exports.js.map +1 -1
  18. package/build/lib/commands/device/emulator-actions.d.ts +25 -18
  19. package/build/lib/commands/device/emulator-actions.d.ts.map +1 -1
  20. package/build/lib/commands/device/emulator-actions.js +38 -40
  21. package/build/lib/commands/device/emulator-actions.js.map +1 -1
  22. package/build/lib/commands/device/emulator-console.d.ts +9 -2
  23. package/build/lib/commands/device/emulator-console.d.ts.map +1 -1
  24. package/build/lib/commands/device/emulator-console.js +9 -3
  25. package/build/lib/commands/device/emulator-console.js.map +1 -1
  26. package/build/lib/commands/deviceidle.d.ts +3 -2
  27. package/build/lib/commands/deviceidle.d.ts.map +1 -1
  28. package/build/lib/commands/deviceidle.js +3 -3
  29. package/build/lib/commands/deviceidle.js.map +1 -1
  30. package/build/lib/commands/execute.d.ts +6 -15
  31. package/build/lib/commands/execute.d.ts.map +1 -1
  32. package/build/lib/commands/execute.js +36 -93
  33. package/build/lib/commands/execute.js.map +1 -1
  34. package/build/lib/commands/file-actions.d.ts +13 -24
  35. package/build/lib/commands/file-actions.d.ts.map +1 -1
  36. package/build/lib/commands/file-actions.js +13 -38
  37. package/build/lib/commands/file-actions.js.map +1 -1
  38. package/build/lib/commands/geolocation.d.ts +9 -4
  39. package/build/lib/commands/geolocation.d.ts.map +1 -1
  40. package/build/lib/commands/geolocation.js +14 -6
  41. package/build/lib/commands/geolocation.js.map +1 -1
  42. package/build/lib/commands/image-injection.d.ts +2 -2
  43. package/build/lib/commands/image-injection.d.ts.map +1 -1
  44. package/build/lib/commands/image-injection.js +2 -3
  45. package/build/lib/commands/image-injection.js.map +1 -1
  46. package/build/lib/commands/intent.d.ts +70 -8
  47. package/build/lib/commands/intent.d.ts.map +1 -1
  48. package/build/lib/commands/intent.js +118 -16
  49. package/build/lib/commands/intent.js.map +1 -1
  50. package/build/lib/commands/keyboard.d.ts +2 -2
  51. package/build/lib/commands/keyboard.d.ts.map +1 -1
  52. package/build/lib/commands/keyboard.js +2 -4
  53. package/build/lib/commands/keyboard.js.map +1 -1
  54. package/build/lib/commands/lock/exports.d.ts +12 -8
  55. package/build/lib/commands/lock/exports.d.ts.map +1 -1
  56. package/build/lib/commands/lock/exports.js +12 -13
  57. package/build/lib/commands/lock/exports.js.map +1 -1
  58. package/build/lib/commands/media-projection.d.ts +41 -4
  59. package/build/lib/commands/media-projection.d.ts.map +1 -1
  60. package/build/lib/commands/media-projection.js +52 -11
  61. package/build/lib/commands/media-projection.js.map +1 -1
  62. package/build/lib/commands/memory.d.ts +4 -2
  63. package/build/lib/commands/memory.d.ts.map +1 -1
  64. package/build/lib/commands/memory.js +4 -3
  65. package/build/lib/commands/memory.js.map +1 -1
  66. package/build/lib/commands/network.d.ts +10 -4
  67. package/build/lib/commands/network.d.ts.map +1 -1
  68. package/build/lib/commands/network.js +17 -14
  69. package/build/lib/commands/network.js.map +1 -1
  70. package/build/lib/commands/nfc.d.ts +2 -2
  71. package/build/lib/commands/nfc.d.ts.map +1 -1
  72. package/build/lib/commands/nfc.js +2 -3
  73. package/build/lib/commands/nfc.js.map +1 -1
  74. package/build/lib/commands/performance.d.ts +3 -2
  75. package/build/lib/commands/performance.d.ts.map +1 -1
  76. package/build/lib/commands/performance.js +3 -4
  77. package/build/lib/commands/performance.js.map +1 -1
  78. package/build/lib/commands/permissions.d.ts +23 -5
  79. package/build/lib/commands/permissions.d.ts.map +1 -1
  80. package/build/lib/commands/permissions.js +27 -8
  81. package/build/lib/commands/permissions.js.map +1 -1
  82. package/build/lib/commands/shell.d.ts +3 -9
  83. package/build/lib/commands/shell.d.ts.map +1 -1
  84. package/build/lib/commands/shell.js +3 -10
  85. package/build/lib/commands/shell.js.map +1 -1
  86. package/build/lib/commands/streamscreen.d.ts +56 -6
  87. package/build/lib/commands/streamscreen.d.ts.map +1 -1
  88. package/build/lib/commands/streamscreen.js +28 -4
  89. package/build/lib/commands/streamscreen.js.map +1 -1
  90. package/build/lib/commands/system-bars.d.ts +6 -2
  91. package/build/lib/commands/system-bars.d.ts.map +1 -1
  92. package/build/lib/commands/system-bars.js +7 -7
  93. package/build/lib/commands/system-bars.js.map +1 -1
  94. package/build/lib/commands/time.d.ts +2 -2
  95. package/build/lib/commands/time.d.ts.map +1 -1
  96. package/build/lib/commands/time.js +3 -3
  97. package/build/lib/commands/time.js.map +1 -1
  98. package/build/lib/commands/types.d.ts +0 -588
  99. package/build/lib/commands/types.d.ts.map +1 -1
  100. package/build/lib/driver.d.ts +364 -12
  101. package/build/lib/driver.d.ts.map +1 -1
  102. package/build/lib/driver.js +2 -8
  103. package/build/lib/driver.js.map +1 -1
  104. package/build/lib/execute-method-map.d.ts +361 -0
  105. package/build/lib/execute-method-map.d.ts.map +1 -0
  106. package/build/lib/execute-method-map.js +437 -0
  107. package/build/lib/execute-method-map.js.map +1 -0
  108. package/lib/commands/app-management.js +68 -42
  109. package/lib/commands/appearance.js +10 -8
  110. package/lib/commands/bluetooth.js +2 -3
  111. package/lib/commands/context/exports.js +3 -3
  112. package/lib/commands/device/emulator-actions.js +28 -30
  113. package/lib/commands/device/emulator-console.js +9 -4
  114. package/lib/commands/deviceidle.js +3 -4
  115. package/lib/commands/execute.js +42 -124
  116. package/lib/commands/file-actions.js +13 -38
  117. package/lib/commands/geolocation.js +14 -6
  118. package/lib/commands/image-injection.js +2 -3
  119. package/lib/commands/intent.js +174 -16
  120. package/lib/commands/keyboard.js +2 -4
  121. package/lib/commands/lock/exports.js +12 -13
  122. package/lib/commands/media-projection.js +62 -11
  123. package/lib/commands/memory.js +4 -4
  124. package/lib/commands/network.js +14 -10
  125. package/lib/commands/nfc.js +2 -3
  126. package/lib/commands/performance.js +3 -4
  127. package/lib/commands/permissions.js +33 -14
  128. package/lib/commands/{shell.js → shell.ts} +8 -11
  129. package/lib/commands/streamscreen.js +39 -15
  130. package/lib/commands/system-bars.js +7 -9
  131. package/lib/commands/time.js +3 -3
  132. package/lib/commands/types.ts +0 -646
  133. package/lib/driver.ts +4 -16
  134. package/lib/execute-method-map.ts +464 -0
  135. package/package.json +2 -2
@@ -0,0 +1,361 @@
1
+ export declare const executeMethodMap: {
2
+ readonly 'mobile: shell': {
3
+ readonly command: "mobileShell";
4
+ readonly params: {
5
+ readonly required: readonly ["command"];
6
+ readonly optional: readonly ["args", "timeout", "includeStderr"];
7
+ };
8
+ };
9
+ readonly 'mobile: execEmuConsoleCommand': {
10
+ readonly command: "mobileExecEmuConsoleCommand";
11
+ readonly params: {
12
+ readonly required: readonly ["command"];
13
+ readonly optional: readonly ["execTimeout", "connTimeout", "initTimeout"];
14
+ };
15
+ };
16
+ readonly 'mobile: startLogsBroadcast': {
17
+ readonly command: "mobileStartLogsBroadcast";
18
+ };
19
+ readonly 'mobile: stopLogsBroadcast': {
20
+ readonly command: "mobileStopLogsBroadcast";
21
+ };
22
+ readonly 'mobile: changePermissions': {
23
+ readonly command: "mobileChangePermissions";
24
+ readonly params: {
25
+ readonly required: readonly ["permissions"];
26
+ readonly optional: readonly ["appPackage", "action", "target"];
27
+ };
28
+ };
29
+ readonly 'mobile: getPermissions': {
30
+ readonly command: "mobileGetPermissions";
31
+ readonly params: {
32
+ readonly optional: readonly ["type", "appPackage"];
33
+ };
34
+ };
35
+ readonly 'mobile: performEditorAction': {
36
+ readonly command: "mobilePerformEditorAction";
37
+ readonly params: {
38
+ readonly required: readonly ["action"];
39
+ };
40
+ };
41
+ readonly 'mobile: getDeviceTime': {
42
+ readonly command: "mobileGetDeviceTime";
43
+ readonly params: {
44
+ readonly optional: readonly ["format"];
45
+ };
46
+ };
47
+ readonly 'mobile: startScreenStreaming': {
48
+ readonly command: "mobileStartScreenStreaming";
49
+ readonly params: {
50
+ readonly optional: readonly ["width", "height", "bitRate", "host", "port", "pathname", "tcpPort", "quality", "considerRotation", "logPipelineDetails"];
51
+ };
52
+ };
53
+ readonly 'mobile: stopScreenStreaming': {
54
+ readonly command: "mobileStopScreenStreaming";
55
+ };
56
+ readonly 'mobile: getNotifications': {
57
+ readonly command: "mobileGetNotifications";
58
+ };
59
+ readonly 'mobile: listSms': {
60
+ readonly command: "mobileListSms";
61
+ };
62
+ readonly 'mobile: pushFile': {
63
+ readonly command: "pushFile";
64
+ readonly params: {
65
+ readonly required: readonly ["remotePath", "payload"];
66
+ };
67
+ };
68
+ readonly 'mobile: pullFolder': {
69
+ readonly command: "pullFolder";
70
+ readonly params: {
71
+ readonly required: readonly ["remotePath"];
72
+ };
73
+ };
74
+ readonly 'mobile: pullFile': {
75
+ readonly command: "pullFile";
76
+ readonly params: {
77
+ readonly required: readonly ["remotePath"];
78
+ };
79
+ };
80
+ readonly 'mobile: deleteFile': {
81
+ readonly command: "mobileDeleteFile";
82
+ readonly params: {
83
+ readonly required: readonly ["remotePath"];
84
+ };
85
+ };
86
+ readonly 'mobile: isAppInstalled': {
87
+ readonly command: "mobileIsAppInstalled";
88
+ readonly params: {
89
+ readonly required: readonly ["appId"];
90
+ readonly optional: readonly ["user"];
91
+ };
92
+ };
93
+ readonly 'mobile: queryAppState': {
94
+ readonly command: "queryAppState";
95
+ readonly params: {
96
+ readonly required: readonly ["appId"];
97
+ };
98
+ };
99
+ readonly 'mobile: activateApp': {
100
+ readonly command: "activateApp";
101
+ readonly params: {
102
+ readonly required: readonly ["appId"];
103
+ };
104
+ };
105
+ readonly 'mobile: removeApp': {
106
+ readonly command: "mobileRemoveApp";
107
+ readonly params: {
108
+ readonly required: readonly ["appId"];
109
+ readonly optional: readonly ["timeout", "keepData", "skipInstallCheck"];
110
+ };
111
+ };
112
+ readonly 'mobile: terminateApp': {
113
+ readonly command: "mobileTerminateApp";
114
+ readonly params: {
115
+ readonly required: readonly ["appId"];
116
+ readonly optional: readonly ["timeout"];
117
+ };
118
+ };
119
+ readonly 'mobile: installApp': {
120
+ readonly command: "mobileInstallApp";
121
+ readonly params: {
122
+ readonly required: readonly ["appPath"];
123
+ readonly optional: readonly ["checkVersion", "timeout", "allowTestPackages", "useSdcard", "grantPermissions", "replace", "noIncremental"];
124
+ };
125
+ };
126
+ readonly 'mobile: clearApp': {
127
+ readonly command: "mobileClearApp";
128
+ readonly params: {
129
+ readonly required: readonly ["appId"];
130
+ };
131
+ };
132
+ readonly 'mobile: startService': {
133
+ readonly command: "mobileStartService";
134
+ readonly params: {
135
+ readonly optional: readonly ["foreground", "user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
136
+ };
137
+ };
138
+ readonly 'mobile: stopService': {
139
+ readonly command: "mobileStopService";
140
+ readonly params: {
141
+ readonly optional: readonly ["user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
142
+ };
143
+ };
144
+ readonly 'mobile: startActivity': {
145
+ readonly command: "mobileStartActivity";
146
+ readonly params: {
147
+ readonly optional: readonly ["wait", "stop", "windowingMode", "activityType", "display", "user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
148
+ };
149
+ };
150
+ readonly 'mobile: broadcast': {
151
+ readonly command: "mobileBroadcast";
152
+ readonly params: {
153
+ readonly optional: readonly ["receiverPermission", "allowBackgroundActivityStarts", "user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
154
+ };
155
+ };
156
+ readonly 'mobile: getContexts': {
157
+ readonly command: "mobileGetContexts";
158
+ readonly params: {
159
+ readonly optional: readonly ["waitForWebviewMs"];
160
+ };
161
+ };
162
+ readonly 'mobile: lock': {
163
+ readonly command: "lock";
164
+ readonly params: {
165
+ readonly optional: readonly ["seconds"];
166
+ };
167
+ };
168
+ readonly 'mobile: unlock': {
169
+ readonly command: "mobileUnlock";
170
+ readonly params: {
171
+ readonly optional: readonly ["key", "type", "strategy", "timeoutMs"];
172
+ };
173
+ };
174
+ readonly 'mobile: isLocked': {
175
+ readonly command: "isLocked";
176
+ };
177
+ readonly 'mobile: refreshGpsCache': {
178
+ readonly command: "mobileRefreshGpsCache";
179
+ readonly params: {
180
+ readonly optional: readonly ["timeoutMs"];
181
+ };
182
+ };
183
+ readonly 'mobile: startMediaProjectionRecording': {
184
+ readonly command: "mobileStartMediaProjectionRecording";
185
+ readonly params: {
186
+ readonly optional: readonly ["resolution", "priority", "maxDurationSec", "filename"];
187
+ };
188
+ };
189
+ readonly 'mobile: isMediaProjectionRecordingRunning': {
190
+ readonly command: "mobileIsMediaProjectionRecordingRunning";
191
+ };
192
+ readonly 'mobile: stopMediaProjectionRecording': {
193
+ readonly command: "mobileStopMediaProjectionRecording";
194
+ readonly params: {
195
+ readonly optional: readonly ["remotePath", "user", "pass", "method", "headers", "fileFieldName", "formFields", "uploadTimeout"];
196
+ };
197
+ };
198
+ readonly 'mobile: getConnectivity': {
199
+ readonly command: "mobileGetConnectivity";
200
+ readonly params: {
201
+ readonly optional: readonly ["services"];
202
+ };
203
+ };
204
+ readonly 'mobile: setConnectivity': {
205
+ readonly command: "mobileSetConnectivity";
206
+ readonly params: {
207
+ readonly optional: readonly ["wifi", "data", "airplaneMode"];
208
+ };
209
+ };
210
+ readonly 'mobile: hideKeyboard': {
211
+ readonly command: "hideKeyboard";
212
+ };
213
+ readonly 'mobile: isKeyboardShown': {
214
+ readonly command: "isKeyboardShown";
215
+ };
216
+ readonly 'mobile: deviceidle': {
217
+ readonly command: "mobileDeviceidle";
218
+ readonly params: {
219
+ readonly required: readonly ["action"];
220
+ readonly optional: readonly ["packages"];
221
+ };
222
+ };
223
+ readonly 'mobile: bluetooth': {
224
+ readonly command: "mobileBluetooth";
225
+ readonly params: {
226
+ readonly required: readonly ["action"];
227
+ };
228
+ };
229
+ readonly 'mobile: nfc': {
230
+ readonly command: "mobileNfc";
231
+ readonly params: {
232
+ readonly required: readonly ["action"];
233
+ };
234
+ };
235
+ readonly 'mobile: setUiMode': {
236
+ readonly command: "mobileSetUiMode";
237
+ readonly params: {
238
+ readonly required: readonly ["mode", "value"];
239
+ };
240
+ };
241
+ readonly 'mobile: getUiMode': {
242
+ readonly command: "mobileGetUiMode";
243
+ readonly params: {
244
+ readonly required: readonly ["mode"];
245
+ };
246
+ };
247
+ readonly 'mobile: injectEmulatorCameraImage': {
248
+ readonly command: "mobileInjectEmulatorCameraImage";
249
+ readonly params: {
250
+ readonly required: readonly ["payload"];
251
+ };
252
+ };
253
+ readonly 'mobile: sendTrimMemory': {
254
+ readonly command: "mobileSendTrimMemory";
255
+ readonly params: {
256
+ readonly required: readonly ["pkg", "level"];
257
+ };
258
+ };
259
+ readonly 'mobile: getPerformanceData': {
260
+ readonly command: "mobileGetPerformanceData";
261
+ readonly params: {
262
+ readonly required: readonly ["packageName", "dataType"];
263
+ };
264
+ };
265
+ readonly 'mobile: getPerformanceDataTypes': {
266
+ readonly command: "getPerformanceDataTypes";
267
+ };
268
+ readonly 'mobile: toggleGps': {
269
+ readonly command: "toggleLocationServices";
270
+ };
271
+ readonly 'mobile: isGpsEnabled': {
272
+ readonly command: "isLocationServicesEnabled";
273
+ };
274
+ readonly 'mobile: getDisplayDensity': {
275
+ readonly command: "getDisplayDensity";
276
+ };
277
+ readonly 'mobile: getSystemBars': {
278
+ readonly command: "getSystemBars";
279
+ };
280
+ readonly 'mobile: statusBar': {
281
+ readonly command: "mobilePerformStatusBarCommand";
282
+ readonly params: {
283
+ readonly required: readonly ["command"];
284
+ readonly optional: readonly ["component"];
285
+ };
286
+ };
287
+ readonly 'mobile: fingerprint': {
288
+ readonly command: "mobileFingerprint";
289
+ readonly params: {
290
+ readonly required: readonly ["fingerprintId"];
291
+ };
292
+ };
293
+ readonly 'mobile: sendSms': {
294
+ readonly command: "mobileSendSms";
295
+ readonly params: {
296
+ readonly required: readonly ["phoneNumber", "message"];
297
+ };
298
+ };
299
+ readonly 'mobile: gsmCall': {
300
+ readonly command: "mobileGsmCall";
301
+ readonly params: {
302
+ readonly required: readonly ["phoneNumber", "action"];
303
+ };
304
+ };
305
+ readonly 'mobile: gsmSignal': {
306
+ readonly command: "mobileGsmSignal";
307
+ readonly params: {
308
+ readonly required: readonly ["strength"];
309
+ };
310
+ };
311
+ readonly 'mobile: gsmVoice': {
312
+ readonly command: "mobileGsmVoice";
313
+ readonly params: {
314
+ readonly required: readonly ["state"];
315
+ };
316
+ };
317
+ readonly 'mobile: powerAc': {
318
+ readonly command: "mobilePowerAc";
319
+ readonly params: {
320
+ readonly required: readonly ["state"];
321
+ };
322
+ };
323
+ readonly 'mobile: powerCapacity': {
324
+ readonly command: "mobilePowerCapacity";
325
+ readonly params: {
326
+ readonly required: readonly ["percent"];
327
+ };
328
+ };
329
+ readonly 'mobile: networkSpeed': {
330
+ readonly command: "mobileNetworkSpeed";
331
+ readonly params: {
332
+ readonly required: readonly ["speed"];
333
+ };
334
+ };
335
+ readonly 'mobile: sensorSet': {
336
+ readonly command: "sensorSet";
337
+ readonly params: {
338
+ readonly required: readonly ["sensorType", "value"];
339
+ };
340
+ };
341
+ readonly 'mobile: getCurrentActivity': {
342
+ readonly command: "getCurrentActivity";
343
+ };
344
+ readonly 'mobile: getCurrentPackage': {
345
+ readonly command: "getCurrentPackage";
346
+ };
347
+ readonly 'mobile: setGeolocation': {
348
+ readonly command: "mobileSetGeolocation";
349
+ readonly params: {
350
+ readonly required: readonly ["latitude", "longitude"];
351
+ readonly optional: readonly ["altitude"];
352
+ };
353
+ };
354
+ readonly 'mobile: getGeolocation': {
355
+ readonly command: "mobileGetGeolocation";
356
+ };
357
+ readonly 'mobile: resetGeolocation': {
358
+ readonly command: "mobileResetGeolocation";
359
+ };
360
+ };
361
+ //# sourceMappingURL=execute-method-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute-method-map.d.ts","sourceRoot":"","sources":["../../lib/execute-method-map.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ba,CAAC"}