appium-uiautomator2-driver 3.4.0 → 3.5.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.
@@ -1,624 +0,0 @@
1
- /**
2
- * @privateRemarks This was created by hand from the type definitions in `lib/commands` here and in `appium-android-driver`.
3
- * @module
4
- */
5
-
6
- export const executeMethodMap = {
7
- 'mobile: shell': {
8
- command: 'mobileShell',
9
- params: {
10
- required: ['command'],
11
- optional: ['args', 'timeout', 'includeStderr'],
12
- },
13
- },
14
- 'mobile: execEmuConsoleCommand': {
15
- command: 'mobileExecEmuConsoleCommand',
16
- params: {
17
- required: ['command'],
18
- optional: ['execTimeout', 'connTimeout', 'initTimeout'],
19
- },
20
- },
21
- 'mobile: dragGesture': {
22
- command: 'mobileDragGesture',
23
- params: {
24
- optional: ['elementId', 'startX', 'startY', 'endX', 'endY', 'speed'],
25
- },
26
- },
27
- 'mobile: flingGesture': {
28
- command: 'mobileFlingGesture',
29
- params: {
30
- required: ['direction'],
31
- optional: ['elementId', 'left', 'top', 'width', 'height', 'speed'],
32
- },
33
- },
34
- 'mobile: doubleClickGesture': {
35
- command: 'mobileDoubleClickGesture',
36
- params: {
37
- optional: ['elementId', 'x', 'y'],
38
- },
39
- },
40
- 'mobile: clickGesture': {
41
- command: 'mobileClickGesture',
42
- params: {
43
- optional: ['elementId', 'x', 'y'],
44
- },
45
- },
46
- 'mobile: longClickGesture': {
47
- command: 'mobileLongClickGesture',
48
- params: {
49
- optional: ['elementId', 'x', 'y', 'duration'],
50
- },
51
- },
52
- 'mobile: pinchCloseGesture': {
53
- command: 'mobilePinchCloseGesture',
54
- params: {
55
- required: ['percent'],
56
- optional: ['elementId', 'left', 'top', 'width', 'height', 'speed'],
57
- },
58
- },
59
- 'mobile: pinchOpenGesture': {
60
- command: 'mobilePinchOpenGesture',
61
- params: {
62
- required: ['percent'],
63
- optional: ['elementId', 'left', 'top', 'width', 'height', 'speed'],
64
- },
65
- },
66
- 'mobile: swipeGesture': {
67
- command: 'mobileSwipeGesture',
68
- params: {
69
- required: ['direction', 'percent'],
70
- optional: ['elementId', 'left', 'top', 'width', 'height', 'speed'],
71
- },
72
- },
73
- 'mobile: scrollGesture': {
74
- command: 'mobileScrollGesture',
75
- params: {
76
- required: ['direction', 'percent'],
77
- optional: ['elementId', 'left', 'top', 'width', 'height', 'speed'],
78
- },
79
- },
80
- 'mobile: scrollBackTo': {
81
- command: 'mobileScrollBackTo',
82
- params: {
83
- required: ['elementId', 'elementToId'],
84
- },
85
- },
86
- 'mobile: scroll': {
87
- command: 'mobileScroll',
88
- params: {
89
- required: ['strategy', 'selector'],
90
- optional: ['elementId', 'maxSwipes', 'element'],
91
- },
92
- },
93
- 'mobile: viewportScreenshot': {
94
- command: 'mobileViewportScreenshot',
95
- },
96
- 'mobile: viewportRect': {
97
- command: 'mobileViewPortRect',
98
- },
99
-
100
- 'mobile: deepLink': {
101
- command: 'mobileDeepLink',
102
- params: {
103
- required: ['url', 'package'],
104
- optional: ['waitForLaunch'],
105
- },
106
- },
107
-
108
- 'mobile: startLogsBroadcast': {
109
- command: 'mobileStartLogsBroadcast',
110
- },
111
- 'mobile: stopLogsBroadcast': {
112
- command: 'mobileStopLogsBroadcast',
113
- },
114
-
115
- 'mobile: deviceidle': {
116
- command: 'mobileDeviceidle',
117
- params: {
118
- required: ['action'],
119
- optional: ['packages'],
120
- },
121
- },
122
-
123
- 'mobile: acceptAlert': {
124
- command: 'mobileAcceptAlert',
125
- params: {
126
- optional: ['buttonLabel'],
127
- },
128
- },
129
- 'mobile: dismissAlert': {
130
- command: 'mobileDismissAlert',
131
- params: {
132
- optional: ['buttonLabel'],
133
- },
134
- },
135
-
136
- 'mobile: batteryInfo': {
137
- command: 'mobileGetBatteryInfo',
138
- },
139
-
140
- 'mobile: deviceInfo': {
141
- command: 'mobileGetDeviceInfo',
142
- },
143
-
144
- 'mobile: getDeviceTime': {
145
- command: 'mobileGetDeviceTime',
146
- params: {
147
- optional: ['format'],
148
- },
149
- },
150
-
151
- 'mobile: changePermissions': {
152
- command: 'mobileChangePermissions',
153
- params: {
154
- required: ['permissions'],
155
- optional: ['appPackage', 'action', 'target'],
156
- },
157
- },
158
- 'mobile: getPermissions': {
159
- command: 'mobileGetPermissions',
160
- params: {
161
- optional: ['type', 'appPackage'],
162
- },
163
- },
164
-
165
- 'mobile: performEditorAction': {
166
- command: 'mobilePerformEditorAction',
167
- params: {
168
- required: ['action'],
169
- },
170
- },
171
-
172
- 'mobile: startScreenStreaming': {
173
- command: 'mobileStartScreenStreaming',
174
- params: {
175
- optional: [
176
- 'width',
177
- 'height',
178
- 'bitrate',
179
- 'host',
180
- 'pathname',
181
- 'tcpPort',
182
- 'port',
183
- 'quality',
184
- 'considerRotation',
185
- 'logPipelineDetails',
186
- ],
187
- },
188
- },
189
- 'mobile: stopScreenStreaming': {
190
- command: 'mobileStopScreenStreaming',
191
- },
192
-
193
- 'mobile: getNotifications': {
194
- command: 'mobileGetNotifications',
195
- },
196
- 'mobile: openNotifications': {
197
- command: 'openNotifications',
198
- },
199
-
200
- 'mobile: listSms': {
201
- command: 'mobileListSms',
202
- params: {
203
- optional: ['max'],
204
- },
205
- },
206
-
207
- 'mobile: type': {
208
- command: 'mobileType',
209
- params: {
210
- required: ['text'],
211
- },
212
- },
213
- 'mobile: replaceElementValue': {
214
- command: 'mobileReplaceElementValue',
215
- params: {
216
- required: ['elementId', 'text'],
217
- },
218
- },
219
-
220
- 'mobile: pushFile': {
221
- command: 'mobilePushFile',
222
- params: {
223
- required: ['payload', 'remotePath'],
224
- },
225
- },
226
- 'mobile: pullFile': {
227
- command: 'mobilePullFile',
228
- params: {
229
- required: ['remotePath'],
230
- },
231
- },
232
- 'mobile: pullFolder': {
233
- command: 'mobilePullFolder',
234
- params: {
235
- required: ['remotePath'],
236
- },
237
- },
238
- 'mobile: deleteFile': {
239
- command: 'mobileDeleteFile',
240
- params: {
241
- required: ['remotePath'],
242
- },
243
- },
244
-
245
- 'mobile: isAppInstalled': {
246
- command: 'mobileIsAppInstalled',
247
- params: {
248
- required: ['appId'],
249
- optional: ['user'],
250
- },
251
- },
252
- 'mobile: queryAppState': {
253
- command: 'mobileQueryAppState',
254
- params: {
255
- required: ['appId'],
256
- },
257
- },
258
- 'mobile: activateApp': {
259
- command: 'mobileActivateApp',
260
- params: {
261
- required: ['appId'],
262
- },
263
- },
264
- 'mobile: removeApp': {
265
- command: 'mobileRemoveApp',
266
- params: {
267
- required: ['appId'],
268
- optional: ['timeout', 'keepData'],
269
- },
270
- },
271
- 'mobile: terminateApp': {
272
- command: 'mobileTerminateApp',
273
- params: {
274
- required: ['appId'],
275
- optional: ['timeout'],
276
- },
277
- },
278
- 'mobile: installApp': {
279
- command: 'mobileInstallApp',
280
- params: {
281
- required: ['appPath'],
282
- optional: ['timeout', 'allowTestPackages', 'useSdcard', 'grantPermissions', 'replace', 'checkVersion'],
283
- },
284
- },
285
- 'mobile: clearApp': {
286
- command: 'mobileClearApp',
287
- params: {
288
- required: ['appId'],
289
- },
290
- },
291
- 'mobile: backgroundApp': {
292
- command: 'mobileBackgroundApp',
293
- params: {
294
- optional: ['seconds'],
295
- },
296
- },
297
- 'mobile: getCurrentActivity': {
298
- command: 'getCurrentActivity',
299
- },
300
- 'mobile: getCurrentPackage': {
301
- command: 'getCurrentPackage',
302
- },
303
-
304
- 'mobile: startActivity': {
305
- command: 'mobileStartActivity',
306
- params: {
307
- optional: ['wait', 'stop', 'windowingMode', 'activityType', 'display'],
308
- },
309
- },
310
- 'mobile: startService': {
311
- command: 'mobileStartService',
312
- params: {
313
- optional: [
314
- 'user',
315
- 'intent',
316
- 'action',
317
- 'package',
318
- 'uri',
319
- 'mimeType',
320
- 'identifier',
321
- 'component',
322
- 'categories',
323
- 'extras',
324
- 'flags',
325
- 'wait',
326
- 'stop',
327
- 'windowingMode',
328
- 'activityType',
329
- 'display',
330
- ],
331
- },
332
- },
333
- 'mobile: stopService': {
334
- command: 'mobileStopService',
335
- params: {
336
- optional: [
337
- 'user',
338
- 'intent',
339
- 'action',
340
- 'package',
341
- 'uri',
342
- 'mimeType',
343
- 'identifier',
344
- 'component',
345
- 'categories',
346
- 'extras',
347
- 'flags',
348
- ],
349
- },
350
- },
351
- 'mobile: broadcast': {
352
- command: 'mobileBroadcast',
353
- params: {
354
- optional: [
355
- 'user',
356
- 'intent',
357
- 'action',
358
- 'package',
359
- 'uri',
360
- 'mimeType',
361
- 'identifier',
362
- 'component',
363
- 'categories',
364
- 'extras',
365
- 'flags',
366
- 'receiverPermission',
367
- 'allowBackgroundActivityStarts',
368
- ],
369
- },
370
- },
371
-
372
- 'mobile: getContexts': {
373
- command: 'mobileGetContexts',
374
- params: {
375
- optional: ['waitForWebviewMs'],
376
- },
377
- },
378
-
379
- 'mobile: getAppStrings': {
380
- command: 'mobileGetAppStrings',
381
- params: {
382
- optional: ['language'],
383
- },
384
- },
385
-
386
- 'mobile: installMultipleApks': {
387
- command: 'mobileInstallMultipleApks',
388
- params: {
389
- required: ['apks'],
390
- optional: ['options'],
391
- },
392
- },
393
-
394
- 'mobile: lock': {
395
- command: 'mobileLock',
396
- params: {
397
- optional: ['seconds'],
398
- },
399
- },
400
- 'mobile: unlock': {
401
- command: 'mobileUnlock',
402
- params: {
403
- optional: ['key', 'type', 'strategy', 'timeoutMs'],
404
- },
405
- },
406
- 'mobile: isLocked': {
407
- command: 'isLocked',
408
- },
409
-
410
- 'mobile: refreshGpsCache': {
411
- command: 'mobileRefreshGpsCache',
412
- params: {
413
- optional: ['timeoutMs'],
414
- },
415
- },
416
-
417
- 'mobile: startMediaProjectionRecording': {
418
- command: 'mobileStartMediaProjectionRecording',
419
- params: {
420
- optional: ['resolution', 'maxDurationSec', 'priority', 'filename'],
421
- },
422
- },
423
- 'mobile: isMediaProjectionRecordingRunning': {
424
- command: 'mobileIsMediaProjectionRecordingRunning',
425
- },
426
- 'mobile: stopMediaProjectionRecording': {
427
- command: 'mobileStopMediaProjectionRecording',
428
- params: {
429
- optional: [
430
- 'remotePath',
431
- 'user',
432
- 'pass',
433
- 'method',
434
- 'headers',
435
- 'fileFieldName',
436
- 'formFields',
437
- 'uploadTimeout',
438
- ],
439
- },
440
- },
441
-
442
- 'mobile: getConnectivity': {
443
- command: 'mobileGetConnectivity',
444
- params: {
445
- optional: ['services'],
446
- },
447
- },
448
- 'mobile: setConnectivity': {
449
- command: 'mobileSetConnectivity',
450
- params: {
451
- optional: ['wifi', 'data', 'airplaneMode'],
452
- },
453
- },
454
- 'mobile: toggleGps': {
455
- command: 'toggleLocationServices',
456
- },
457
- 'mobile: isGpsEnabled': {
458
- command: 'isLocationServicesEnabled',
459
- },
460
-
461
- 'mobile: hideKeyboard': {
462
- command: 'hideKeyboard',
463
- },
464
- 'mobile: isKeyboardShown': {
465
- command: 'isKeyboardShown',
466
- },
467
-
468
- 'mobile: pressKey': {
469
- command: 'mobilePressKey',
470
- params: {
471
- required: ['keycode'],
472
- optional: ['metastate', 'flags', 'isLongPress'],
473
- },
474
- },
475
-
476
- 'mobile: getDisplayDensity': {
477
- command: 'getDisplayDensity',
478
- },
479
- 'mobile: getSystemBars': {
480
- command: 'getSystemBars',
481
- },
482
-
483
- 'mobile: fingerprint': {
484
- command: 'mobileFingerprint',
485
- params: {
486
- required: ['fingerprintId'],
487
- },
488
- },
489
- 'mobile: sendSms': {
490
- command: 'mobileSendSms',
491
- params: {
492
- required: ['phoneNumber', 'message'],
493
- },
494
- },
495
- 'mobile: gsmCall': {
496
- command: 'mobileGsmCall',
497
- params: {
498
- required: ['phoneNumber', 'action'],
499
- },
500
- },
501
- 'mobile: gsmSignal': {
502
- command: 'mobileGsmSignal',
503
- params: {
504
- required: ['strength'],
505
- },
506
- },
507
- 'mobile: gsmVoice': {
508
- command: 'mobileGsmVoice',
509
- params: {
510
- required: ['state'],
511
- },
512
- },
513
- 'mobile: powerAc': {
514
- command: 'mobilePowerAc',
515
- params: {
516
- required: ['state'],
517
- },
518
- },
519
- 'mobile: powerCapacity': {
520
- command: 'mobilePowerCapacity',
521
- params: {
522
- required: ['percent'],
523
- },
524
- },
525
- 'mobile: networkSpeed': {
526
- command: 'mobileNetworkSpeed',
527
- params: {
528
- required: ['speed'],
529
- },
530
- },
531
- 'mobile: sensorSet': {
532
- command: 'sensorSet',
533
- params: {
534
- required: ['sensorType', 'value'],
535
- },
536
- },
537
-
538
- 'mobile: getPerformanceData': {
539
- command: 'mobileGetPerformanceData',
540
- params: {
541
- required: ['packageName', 'dataType'],
542
- },
543
- },
544
- 'mobile: getPerformanceDataTypes': {
545
- command: 'getPerformanceDataTypes',
546
- },
547
-
548
- 'mobile: statusBar': {
549
- command: 'mobilePerformStatusBarCommand',
550
- params: {
551
- required: ['command'],
552
- optional: ['component'],
553
- },
554
- },
555
-
556
- 'mobile: screenshots': {
557
- command: 'mobileScreenshots',
558
- params: {
559
- optional: ['displayId'],
560
- },
561
- },
562
-
563
- 'mobile: scheduleAction': {
564
- command: 'mobileScheduleAction',
565
- params: {
566
- optional: ['opts'],
567
- },
568
- },
569
- 'mobile: getActionHistory': {
570
- command: 'mobileGetActionHistory',
571
- params: {
572
- optional: ['opts'],
573
- },
574
- },
575
- 'mobile: unscheduleAction': {
576
- command: 'mobileUnscheduleAction',
577
- params: {
578
- optional: ['opts'],
579
- },
580
- },
581
-
582
- 'mobile: getUiMode': {
583
- command: 'mobileGetUiMode',
584
- params: {
585
- optional: ['opts'],
586
- },
587
- },
588
- 'mobile: setUiMode': {
589
- command: 'mobileSetUiMode',
590
- params: {
591
- optional: ['opts'],
592
- },
593
- },
594
-
595
- 'mobile: sendTrimMemory': {
596
- command: 'mobileSendTrimMemory',
597
- params: {
598
- optional: ['opts'],
599
- }
600
- },
601
-
602
- 'mobile: injectEmulatorCameraImage': {
603
- command: 'mobileInjectEmulatorCameraImage',
604
- params: {
605
- optional: ['opts'],
606
- }
607
- },
608
-
609
- 'mobile: bluetooth': {
610
- command: 'mobileBluetooth',
611
- params: {
612
- optional: ['opts'],
613
- }
614
- },
615
-
616
- 'mobile: nfc': {
617
- command: 'mobileNfc',
618
- params: {
619
- optional: ['opts'],
620
- }
621
- },
622
- } as const;
623
-
624
- export type Uiautomator2ExecuteMethodMap = typeof executeMethodMap;