appium-uiautomator2-driver 3.9.9 → 4.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.
- package/CHANGELOG.md +69 -0
- package/README.md +1 -1
- package/build/lib/commands/actions.d.ts +13 -7
- package/build/lib/commands/actions.d.ts.map +1 -1
- package/build/lib/commands/actions.js +24 -10
- package/build/lib/commands/actions.js.map +1 -1
- package/build/lib/commands/alert.d.ts +8 -4
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js +10 -6
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +10 -6
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +13 -10
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/clipboard.d.ts +0 -12
- package/build/lib/commands/clipboard.d.ts.map +1 -1
- package/build/lib/commands/clipboard.js +0 -18
- package/build/lib/commands/clipboard.js.map +1 -1
- package/build/lib/commands/element.d.ts +3 -2
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +3 -4
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/gestures.d.ts +130 -22
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js +130 -33
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +11 -4
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +13 -7
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/navigation.d.ts +5 -2
- package/build/lib/commands/navigation.d.ts.map +1 -1
- package/build/lib/commands/navigation.js +5 -3
- package/build/lib/commands/navigation.js.map +1 -1
- package/build/lib/commands/screenshot.d.ts +4 -2
- package/build/lib/commands/screenshot.d.ts.map +1 -1
- package/build/lib/commands/screenshot.js +4 -3
- package/build/lib/commands/screenshot.js.map +1 -1
- package/build/lib/commands/types.d.ts +0 -387
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/driver.d.ts +540 -8
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +2 -7
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +540 -0
- package/build/lib/execute-method-map.d.ts.map +1 -0
- package/build/lib/execute-method-map.js +257 -0
- package/build/lib/execute-method-map.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/commands/actions.js +32 -10
- package/lib/commands/alert.js +10 -6
- package/lib/commands/app-management.js +14 -11
- package/lib/commands/clipboard.js +0 -18
- package/lib/commands/element.js +3 -4
- package/lib/commands/gestures.js +184 -38
- package/lib/commands/keyboard.js +13 -8
- package/lib/commands/navigation.js +5 -3
- package/lib/commands/screenshot.js +4 -3
- package/lib/commands/types.ts +0 -406
- package/lib/driver.ts +2 -16
- package/lib/execute-method-map.ts +269 -0
- package/npm-shrinkwrap.json +55 -61
- package/package.json +3 -3
- package/build/lib/commands/app-strings.d.ts +0 -12
- package/build/lib/commands/app-strings.d.ts.map +0 -1
- package/build/lib/commands/app-strings.js +0 -19
- package/build/lib/commands/app-strings.js.map +0 -1
- package/build/lib/commands/execute.d.ts +0 -15
- package/build/lib/commands/execute.d.ts.map +0 -1
- package/build/lib/commands/execute.js +0 -83
- package/build/lib/commands/execute.js.map +0 -1
- package/lib/commands/app-strings.js +0 -16
- package/lib/commands/execute.js +0 -93
package/build/lib/driver.d.ts
CHANGED
|
@@ -7,11 +7,9 @@ import { UiAutomator2Server } from './uiautomator2';
|
|
|
7
7
|
import { mobileGetActionHistory, mobileScheduleAction, mobileUnscheduleAction, performActions, releaseActions } from './commands/actions';
|
|
8
8
|
import { getAlertText, mobileAcceptAlert, mobileDismissAlert, postAcceptAlert, postDismissAlert } from './commands/alert';
|
|
9
9
|
import { mobileInstallMultipleApks, mobileBackgroundApp } from './commands/app-management';
|
|
10
|
-
import { mobileGetAppStrings } from './commands/app-strings';
|
|
11
10
|
import { mobileGetBatteryInfo } from './commands/battery';
|
|
12
|
-
import { getClipboard,
|
|
11
|
+
import { getClipboard, setClipboard } from './commands/clipboard';
|
|
13
12
|
import { active, getAttribute, elementEnabled, elementDisplayed, elementSelected, getName, getLocation, getSize, getElementRect, getElementScreenshot, getText, setValueImmediate, doSetElementValue, click, clear, mobileReplaceElementValue } from './commands/element';
|
|
14
|
-
import { executeMobile, mobileCommandsMapping } from './commands/execute';
|
|
15
13
|
import { doFindElementOrEls } from './commands/find';
|
|
16
14
|
import { mobileClickGesture, mobileDoubleClickGesture, mobileDragGesture, mobileFlingGesture, mobileLongClickGesture, mobilePinchCloseGesture, mobilePinchOpenGesture, mobileScroll, mobileScrollBackTo, mobileScrollGesture, mobileSwipeGesture } from './commands/gestures';
|
|
17
15
|
import { pressKeyCode, longPressKeyCode, mobilePressKey, mobileType, doSendKeys, keyevent } from './commands/keyboard';
|
|
@@ -327,6 +325,545 @@ declare class AndroidUiautomator2Driver extends AndroidDriver implements Externa
|
|
|
327
325
|
};
|
|
328
326
|
};
|
|
329
327
|
};
|
|
328
|
+
static executeMethodMap: {
|
|
329
|
+
readonly 'mobile: dragGesture': {
|
|
330
|
+
readonly command: "mobileDragGesture";
|
|
331
|
+
readonly params: {
|
|
332
|
+
readonly optional: readonly ["elementId", "startX", "startY", "endX", "endY", "speed"];
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
readonly 'mobile: flingGesture': {
|
|
336
|
+
readonly command: "mobileFlingGesture";
|
|
337
|
+
readonly params: {
|
|
338
|
+
readonly required: readonly ["direction"];
|
|
339
|
+
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
readonly 'mobile: doubleClickGesture': {
|
|
343
|
+
readonly command: "mobileDoubleClickGesture";
|
|
344
|
+
readonly params: {
|
|
345
|
+
readonly optional: readonly ["elementId", "x", "y"];
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
readonly 'mobile: clickGesture': {
|
|
349
|
+
readonly command: "mobileClickGesture";
|
|
350
|
+
readonly params: {
|
|
351
|
+
readonly optional: readonly ["elementId", "x", "y"];
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
readonly 'mobile: longClickGesture': {
|
|
355
|
+
readonly command: "mobileLongClickGesture";
|
|
356
|
+
readonly params: {
|
|
357
|
+
readonly optional: readonly ["elementId", "x", "y", "duration"];
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
readonly 'mobile: pinchCloseGesture': {
|
|
361
|
+
readonly command: "mobilePinchCloseGesture";
|
|
362
|
+
readonly params: {
|
|
363
|
+
readonly required: readonly ["percent"];
|
|
364
|
+
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
readonly 'mobile: pinchOpenGesture': {
|
|
368
|
+
readonly command: "mobilePinchOpenGesture";
|
|
369
|
+
readonly params: {
|
|
370
|
+
readonly required: readonly ["percent"];
|
|
371
|
+
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
readonly 'mobile: swipeGesture': {
|
|
375
|
+
readonly command: "mobileSwipeGesture";
|
|
376
|
+
readonly params: {
|
|
377
|
+
readonly required: readonly ["direction", "percent"];
|
|
378
|
+
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
readonly 'mobile: scrollGesture': {
|
|
382
|
+
readonly command: "mobileScrollGesture";
|
|
383
|
+
readonly params: {
|
|
384
|
+
readonly required: readonly ["direction", "percent"];
|
|
385
|
+
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
readonly 'mobile: scrollBackTo': {
|
|
389
|
+
readonly command: "mobileScrollBackTo";
|
|
390
|
+
readonly params: {
|
|
391
|
+
readonly required: readonly ["elementId", "elementToId"];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
readonly 'mobile: scroll': {
|
|
395
|
+
readonly command: "mobileScroll";
|
|
396
|
+
readonly params: {
|
|
397
|
+
readonly required: readonly ["strategy", "selector"];
|
|
398
|
+
readonly optional: readonly ["elementId", "maxSwipes"];
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
readonly 'mobile: viewportScreenshot': {
|
|
402
|
+
readonly command: "mobileViewportScreenshot";
|
|
403
|
+
};
|
|
404
|
+
readonly 'mobile: viewportRect': {
|
|
405
|
+
readonly command: "mobileViewPortRect";
|
|
406
|
+
};
|
|
407
|
+
readonly 'mobile: deepLink': {
|
|
408
|
+
readonly command: "mobileDeepLink";
|
|
409
|
+
readonly params: {
|
|
410
|
+
readonly required: readonly ["url"];
|
|
411
|
+
readonly optional: readonly ["package", "waitForLaunch"];
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly 'mobile: acceptAlert': {
|
|
415
|
+
readonly command: "mobileAcceptAlert";
|
|
416
|
+
readonly params: {
|
|
417
|
+
readonly optional: readonly ["buttonLabel"];
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
readonly 'mobile: dismissAlert': {
|
|
421
|
+
readonly command: "mobileDismissAlert";
|
|
422
|
+
readonly params: {
|
|
423
|
+
readonly optional: readonly ["buttonLabel"];
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
readonly 'mobile: batteryInfo': {
|
|
427
|
+
readonly command: "mobileGetBatteryInfo";
|
|
428
|
+
};
|
|
429
|
+
readonly 'mobile: deviceInfo': {
|
|
430
|
+
readonly command: "mobileGetDeviceInfo";
|
|
431
|
+
};
|
|
432
|
+
readonly 'mobile: openNotifications': {
|
|
433
|
+
readonly command: "openNotifications";
|
|
434
|
+
};
|
|
435
|
+
readonly 'mobile: type': {
|
|
436
|
+
readonly command: "mobileType";
|
|
437
|
+
readonly params: {
|
|
438
|
+
readonly required: readonly ["text"];
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
readonly 'mobile: replaceElementValue': {
|
|
442
|
+
readonly command: "mobileReplaceElementValue";
|
|
443
|
+
readonly params: {
|
|
444
|
+
readonly required: readonly ["elementId", "text"];
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
readonly 'mobile: installMultipleApks': {
|
|
448
|
+
readonly command: "mobileInstallMultipleApks";
|
|
449
|
+
readonly params: {
|
|
450
|
+
readonly required: readonly ["apks"];
|
|
451
|
+
readonly optional: readonly ["options"];
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
readonly 'mobile: backgroundApp': {
|
|
455
|
+
readonly command: "mobileBackgroundApp";
|
|
456
|
+
readonly params: {
|
|
457
|
+
readonly optional: readonly ["seconds"];
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
readonly 'mobile: pressKey': {
|
|
461
|
+
readonly command: "mobilePressKey";
|
|
462
|
+
readonly params: {
|
|
463
|
+
readonly required: readonly ["keycode"];
|
|
464
|
+
readonly optional: readonly ["metastate", "flags", "isLongPress"];
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
readonly 'mobile: screenshots': {
|
|
468
|
+
readonly command: "mobileScreenshots";
|
|
469
|
+
readonly params: {
|
|
470
|
+
readonly optional: readonly ["displayId"];
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
readonly 'mobile: scheduleAction': {
|
|
474
|
+
readonly command: "mobileScheduleAction";
|
|
475
|
+
readonly params: {
|
|
476
|
+
readonly required: readonly ["name", "steps"];
|
|
477
|
+
readonly optional: readonly ["maxPass", "maxFail", "times", "intervalMs", "maxHistoryItems"];
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
readonly 'mobile: getActionHistory': {
|
|
481
|
+
readonly command: "mobileGetActionHistory";
|
|
482
|
+
readonly params: {
|
|
483
|
+
readonly required: readonly ["name"];
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
readonly 'mobile: unscheduleAction': {
|
|
487
|
+
readonly command: "mobileUnscheduleAction";
|
|
488
|
+
readonly params: {
|
|
489
|
+
readonly required: readonly ["name"];
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
readonly 'mobile: setClipboard': {
|
|
493
|
+
readonly command: "setClipboard";
|
|
494
|
+
readonly params: {
|
|
495
|
+
readonly required: readonly ["content"];
|
|
496
|
+
readonly optional: readonly ["contentType", "label"];
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
readonly 'mobile: getClipboard': {
|
|
500
|
+
readonly command: "getClipboard";
|
|
501
|
+
};
|
|
502
|
+
readonly 'mobile: shell': {
|
|
503
|
+
readonly command: "mobileShell";
|
|
504
|
+
readonly params: {
|
|
505
|
+
readonly required: readonly ["command"];
|
|
506
|
+
readonly optional: readonly ["args", "timeout", "includeStderr"];
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
readonly 'mobile: execEmuConsoleCommand': {
|
|
510
|
+
readonly command: "mobileExecEmuConsoleCommand";
|
|
511
|
+
readonly params: {
|
|
512
|
+
readonly required: readonly ["command"];
|
|
513
|
+
readonly optional: readonly ["execTimeout", "connTimeout", "initTimeout"];
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
readonly 'mobile: startLogsBroadcast': {
|
|
517
|
+
readonly command: "mobileStartLogsBroadcast";
|
|
518
|
+
};
|
|
519
|
+
readonly 'mobile: stopLogsBroadcast': {
|
|
520
|
+
readonly command: "mobileStopLogsBroadcast";
|
|
521
|
+
};
|
|
522
|
+
readonly 'mobile: changePermissions': {
|
|
523
|
+
readonly command: "mobileChangePermissions";
|
|
524
|
+
readonly params: {
|
|
525
|
+
readonly required: readonly ["permissions"];
|
|
526
|
+
readonly optional: readonly ["appPackage", "action", "target"];
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
readonly 'mobile: getPermissions': {
|
|
530
|
+
readonly command: "mobileGetPermissions";
|
|
531
|
+
readonly params: {
|
|
532
|
+
readonly optional: readonly ["type", "appPackage"];
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
readonly 'mobile: performEditorAction': {
|
|
536
|
+
readonly command: "mobilePerformEditorAction";
|
|
537
|
+
readonly params: {
|
|
538
|
+
readonly required: readonly ["action"];
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
readonly 'mobile: getDeviceTime': {
|
|
542
|
+
readonly command: "mobileGetDeviceTime";
|
|
543
|
+
readonly params: {
|
|
544
|
+
readonly optional: readonly ["format"];
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
readonly 'mobile: startScreenStreaming': {
|
|
548
|
+
readonly command: "mobileStartScreenStreaming";
|
|
549
|
+
readonly params: {
|
|
550
|
+
readonly optional: readonly ["width", "height", "bitRate", "host", "port", "pathname", "tcpPort", "quality", "considerRotation", "logPipelineDetails"];
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
readonly 'mobile: stopScreenStreaming': {
|
|
554
|
+
readonly command: "mobileStopScreenStreaming";
|
|
555
|
+
};
|
|
556
|
+
readonly 'mobile: getNotifications': {
|
|
557
|
+
readonly command: "mobileGetNotifications";
|
|
558
|
+
};
|
|
559
|
+
readonly 'mobile: listSms': {
|
|
560
|
+
readonly command: "mobileListSms";
|
|
561
|
+
};
|
|
562
|
+
readonly 'mobile: pushFile': {
|
|
563
|
+
readonly command: "pushFile";
|
|
564
|
+
readonly params: {
|
|
565
|
+
readonly required: readonly ["remotePath", "payload"];
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
readonly 'mobile: pullFolder': {
|
|
569
|
+
readonly command: "pullFolder";
|
|
570
|
+
readonly params: {
|
|
571
|
+
readonly required: readonly ["remotePath"];
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
readonly 'mobile: pullFile': {
|
|
575
|
+
readonly command: "pullFile";
|
|
576
|
+
readonly params: {
|
|
577
|
+
readonly required: readonly ["remotePath"];
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
readonly 'mobile: deleteFile': {
|
|
581
|
+
readonly command: "mobileDeleteFile";
|
|
582
|
+
readonly params: {
|
|
583
|
+
readonly required: readonly ["remotePath"];
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
readonly 'mobile: isAppInstalled': {
|
|
587
|
+
readonly command: "mobileIsAppInstalled";
|
|
588
|
+
readonly params: {
|
|
589
|
+
readonly required: readonly ["appId"];
|
|
590
|
+
readonly optional: readonly ["user"];
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
readonly 'mobile: queryAppState': {
|
|
594
|
+
readonly command: "queryAppState";
|
|
595
|
+
readonly params: {
|
|
596
|
+
readonly required: readonly ["appId"];
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
readonly 'mobile: activateApp': {
|
|
600
|
+
readonly command: "activateApp";
|
|
601
|
+
readonly params: {
|
|
602
|
+
readonly required: readonly ["appId"];
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
readonly 'mobile: removeApp': {
|
|
606
|
+
readonly command: "mobileRemoveApp";
|
|
607
|
+
readonly params: {
|
|
608
|
+
readonly required: readonly ["appId"];
|
|
609
|
+
readonly optional: readonly ["timeout", "keepData", "skipInstallCheck"];
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
readonly 'mobile: terminateApp': {
|
|
613
|
+
readonly command: "mobileTerminateApp";
|
|
614
|
+
readonly params: {
|
|
615
|
+
readonly required: readonly ["appId"];
|
|
616
|
+
readonly optional: readonly ["timeout"];
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
readonly 'mobile: installApp': {
|
|
620
|
+
readonly command: "mobileInstallApp";
|
|
621
|
+
readonly params: {
|
|
622
|
+
readonly required: readonly ["appPath"];
|
|
623
|
+
readonly optional: readonly ["checkVersion", "timeout", "allowTestPackages", "useSdcard", "grantPermissions", "replace", "noIncremental"];
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
readonly 'mobile: clearApp': {
|
|
627
|
+
readonly command: "mobileClearApp";
|
|
628
|
+
readonly params: {
|
|
629
|
+
readonly required: readonly ["appId"];
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
readonly 'mobile: startService': {
|
|
633
|
+
readonly command: "mobileStartService";
|
|
634
|
+
readonly params: {
|
|
635
|
+
readonly optional: readonly ["foreground", "user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
readonly 'mobile: stopService': {
|
|
639
|
+
readonly command: "mobileStopService";
|
|
640
|
+
readonly params: {
|
|
641
|
+
readonly optional: readonly ["user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
readonly 'mobile: startActivity': {
|
|
645
|
+
readonly command: "mobileStartActivity";
|
|
646
|
+
readonly params: {
|
|
647
|
+
readonly optional: readonly ["wait", "stop", "windowingMode", "activityType", "display", "user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
readonly 'mobile: broadcast': {
|
|
651
|
+
readonly command: "mobileBroadcast";
|
|
652
|
+
readonly params: {
|
|
653
|
+
readonly optional: readonly ["receiverPermission", "allowBackgroundActivityStarts", "user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
readonly 'mobile: getContexts': {
|
|
657
|
+
readonly command: "mobileGetContexts";
|
|
658
|
+
readonly params: {
|
|
659
|
+
readonly optional: readonly ["waitForWebviewMs"];
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
readonly 'mobile: lock': {
|
|
663
|
+
readonly command: "lock";
|
|
664
|
+
readonly params: {
|
|
665
|
+
readonly optional: readonly ["seconds"];
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
readonly 'mobile: unlock': {
|
|
669
|
+
readonly command: "mobileUnlock";
|
|
670
|
+
readonly params: {
|
|
671
|
+
readonly optional: readonly ["key", "type", "strategy", "timeoutMs"];
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
readonly 'mobile: isLocked': {
|
|
675
|
+
readonly command: "isLocked";
|
|
676
|
+
};
|
|
677
|
+
readonly 'mobile: refreshGpsCache': {
|
|
678
|
+
readonly command: "mobileRefreshGpsCache";
|
|
679
|
+
readonly params: {
|
|
680
|
+
readonly optional: readonly ["timeoutMs"];
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
readonly 'mobile: startMediaProjectionRecording': {
|
|
684
|
+
readonly command: "mobileStartMediaProjectionRecording";
|
|
685
|
+
readonly params: {
|
|
686
|
+
readonly optional: readonly ["resolution", "priority", "maxDurationSec", "filename"];
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
readonly 'mobile: isMediaProjectionRecordingRunning': {
|
|
690
|
+
readonly command: "mobileIsMediaProjectionRecordingRunning";
|
|
691
|
+
};
|
|
692
|
+
readonly 'mobile: stopMediaProjectionRecording': {
|
|
693
|
+
readonly command: "mobileStopMediaProjectionRecording";
|
|
694
|
+
readonly params: {
|
|
695
|
+
readonly optional: readonly ["remotePath", "user", "pass", "method", "headers", "fileFieldName", "formFields", "uploadTimeout"];
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
readonly 'mobile: getConnectivity': {
|
|
699
|
+
readonly command: "mobileGetConnectivity";
|
|
700
|
+
readonly params: {
|
|
701
|
+
readonly optional: readonly ["services"];
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
readonly 'mobile: setConnectivity': {
|
|
705
|
+
readonly command: "mobileSetConnectivity";
|
|
706
|
+
readonly params: {
|
|
707
|
+
readonly optional: readonly ["wifi", "data", "airplaneMode"];
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
readonly 'mobile: hideKeyboard': {
|
|
711
|
+
readonly command: "hideKeyboard";
|
|
712
|
+
};
|
|
713
|
+
readonly 'mobile: isKeyboardShown': {
|
|
714
|
+
readonly command: "isKeyboardShown";
|
|
715
|
+
};
|
|
716
|
+
readonly 'mobile: deviceidle': {
|
|
717
|
+
readonly command: "mobileDeviceidle";
|
|
718
|
+
readonly params: {
|
|
719
|
+
readonly required: readonly ["action"];
|
|
720
|
+
readonly optional: readonly ["packages"];
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
readonly 'mobile: bluetooth': {
|
|
724
|
+
readonly command: "mobileBluetooth";
|
|
725
|
+
readonly params: {
|
|
726
|
+
readonly required: readonly ["action"];
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
readonly 'mobile: nfc': {
|
|
730
|
+
readonly command: "mobileNfc";
|
|
731
|
+
readonly params: {
|
|
732
|
+
readonly required: readonly ["action"];
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
readonly 'mobile: setUiMode': {
|
|
736
|
+
readonly command: "mobileSetUiMode";
|
|
737
|
+
readonly params: {
|
|
738
|
+
readonly required: readonly ["mode", "value"];
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
readonly 'mobile: getUiMode': {
|
|
742
|
+
readonly command: "mobileGetUiMode";
|
|
743
|
+
readonly params: {
|
|
744
|
+
readonly required: readonly ["mode"];
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
readonly 'mobile: injectEmulatorCameraImage': {
|
|
748
|
+
readonly command: "mobileInjectEmulatorCameraImage";
|
|
749
|
+
readonly params: {
|
|
750
|
+
readonly required: readonly ["payload"];
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
readonly 'mobile: sendTrimMemory': {
|
|
754
|
+
readonly command: "mobileSendTrimMemory";
|
|
755
|
+
readonly params: {
|
|
756
|
+
readonly required: readonly ["pkg", "level"];
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
readonly 'mobile: getPerformanceData': {
|
|
760
|
+
readonly command: "mobileGetPerformanceData";
|
|
761
|
+
readonly params: {
|
|
762
|
+
readonly required: readonly ["packageName", "dataType"];
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
readonly 'mobile: getPerformanceDataTypes': {
|
|
766
|
+
readonly command: "getPerformanceDataTypes";
|
|
767
|
+
};
|
|
768
|
+
readonly 'mobile: toggleGps': {
|
|
769
|
+
readonly command: "toggleLocationServices";
|
|
770
|
+
};
|
|
771
|
+
readonly 'mobile: isGpsEnabled': {
|
|
772
|
+
readonly command: "isLocationServicesEnabled";
|
|
773
|
+
};
|
|
774
|
+
readonly 'mobile: getDisplayDensity': {
|
|
775
|
+
readonly command: "getDisplayDensity";
|
|
776
|
+
};
|
|
777
|
+
readonly 'mobile: getSystemBars': {
|
|
778
|
+
readonly command: "getSystemBars";
|
|
779
|
+
};
|
|
780
|
+
readonly 'mobile: statusBar': {
|
|
781
|
+
readonly command: "mobilePerformStatusBarCommand";
|
|
782
|
+
readonly params: {
|
|
783
|
+
readonly required: readonly ["command"];
|
|
784
|
+
readonly optional: readonly ["component"];
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
readonly 'mobile: fingerprint': {
|
|
788
|
+
readonly command: "mobileFingerprint";
|
|
789
|
+
readonly params: {
|
|
790
|
+
readonly required: readonly ["fingerprintId"];
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
readonly 'mobile: sendSms': {
|
|
794
|
+
readonly command: "mobileSendSms";
|
|
795
|
+
readonly params: {
|
|
796
|
+
readonly required: readonly ["phoneNumber", "message"];
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
readonly 'mobile: gsmCall': {
|
|
800
|
+
readonly command: "mobileGsmCall";
|
|
801
|
+
readonly params: {
|
|
802
|
+
readonly required: readonly ["phoneNumber", "action"];
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
readonly 'mobile: gsmSignal': {
|
|
806
|
+
readonly command: "mobileGsmSignal";
|
|
807
|
+
readonly params: {
|
|
808
|
+
readonly required: readonly ["strength"];
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
readonly 'mobile: gsmVoice': {
|
|
812
|
+
readonly command: "mobileGsmVoice";
|
|
813
|
+
readonly params: {
|
|
814
|
+
readonly required: readonly ["state"];
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
readonly 'mobile: powerAc': {
|
|
818
|
+
readonly command: "mobilePowerAc";
|
|
819
|
+
readonly params: {
|
|
820
|
+
readonly required: readonly ["state"];
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
readonly 'mobile: powerCapacity': {
|
|
824
|
+
readonly command: "mobilePowerCapacity";
|
|
825
|
+
readonly params: {
|
|
826
|
+
readonly required: readonly ["percent"];
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
readonly 'mobile: networkSpeed': {
|
|
830
|
+
readonly command: "mobileNetworkSpeed";
|
|
831
|
+
readonly params: {
|
|
832
|
+
readonly required: readonly ["speed"];
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
readonly 'mobile: sensorSet': {
|
|
836
|
+
readonly command: "sensorSet";
|
|
837
|
+
readonly params: {
|
|
838
|
+
readonly required: readonly ["sensorType", "value"];
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
readonly 'mobile: getCurrentActivity': {
|
|
842
|
+
readonly command: "getCurrentActivity";
|
|
843
|
+
};
|
|
844
|
+
readonly 'mobile: getCurrentPackage': {
|
|
845
|
+
readonly command: "getCurrentPackage";
|
|
846
|
+
};
|
|
847
|
+
readonly 'mobile: setGeolocation': {
|
|
848
|
+
readonly command: "mobileSetGeolocation";
|
|
849
|
+
readonly params: {
|
|
850
|
+
readonly required: readonly ["latitude", "longitude"];
|
|
851
|
+
readonly optional: readonly ["altitude"];
|
|
852
|
+
};
|
|
853
|
+
};
|
|
854
|
+
readonly 'mobile: getGeolocation': {
|
|
855
|
+
readonly command: "mobileGetGeolocation";
|
|
856
|
+
};
|
|
857
|
+
readonly 'mobile: resetGeolocation': {
|
|
858
|
+
readonly command: "mobileResetGeolocation";
|
|
859
|
+
};
|
|
860
|
+
readonly 'mobile: getAppStrings': {
|
|
861
|
+
readonly command: "getStrings";
|
|
862
|
+
readonly params: {
|
|
863
|
+
readonly optional: readonly ["language"];
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
};
|
|
330
867
|
uiautomator2: UiAutomator2Server;
|
|
331
868
|
systemPort: number | undefined;
|
|
332
869
|
_originalIme: string | null;
|
|
@@ -371,7 +908,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver implements Externa
|
|
|
371
908
|
postDismissAlert: typeof postDismissAlert;
|
|
372
909
|
mobileInstallMultipleApks: typeof mobileInstallMultipleApks;
|
|
373
910
|
mobileBackgroundApp: typeof mobileBackgroundApp;
|
|
374
|
-
mobileGetAppStrings: typeof mobileGetAppStrings;
|
|
375
911
|
mobileGetBatteryInfo: typeof mobileGetBatteryInfo;
|
|
376
912
|
active: typeof active;
|
|
377
913
|
getAttribute: typeof getAttribute;
|
|
@@ -389,8 +925,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver implements Externa
|
|
|
389
925
|
click: typeof click;
|
|
390
926
|
clear: typeof clear;
|
|
391
927
|
mobileReplaceElementValue: typeof mobileReplaceElementValue;
|
|
392
|
-
executeMobile: typeof executeMobile;
|
|
393
|
-
mobileCommandsMapping: typeof mobileCommandsMapping;
|
|
394
928
|
doFindElementOrEls: typeof doFindElementOrEls;
|
|
395
929
|
mobileClickGesture: typeof mobileClickGesture;
|
|
396
930
|
mobileDoubleClickGesture: typeof mobileDoubleClickGesture;
|
|
@@ -416,9 +950,7 @@ declare class AndroidUiautomator2Driver extends AndroidDriver implements Externa
|
|
|
416
950
|
suspendChromedriverProxy: any;
|
|
417
951
|
mobileGetDeviceInfo: typeof mobileGetDeviceInfo;
|
|
418
952
|
getClipboard: typeof getClipboard;
|
|
419
|
-
mobileGetClipboard: typeof mobileGetClipboard;
|
|
420
953
|
setClipboard: typeof setClipboard;
|
|
421
|
-
mobileSetClipboard: typeof mobileSetClipboard;
|
|
422
954
|
setUrl: typeof setUrl;
|
|
423
955
|
mobileDeepLink: typeof mobileDeepLink;
|
|
424
956
|
back: typeof back;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,UAAU,EACV,cAAc,EACd,WAAW,EAEX,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,aAAa,EAAQ,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAK,KAAK,EAAO,MAAM,gBAAgB,CAAC;AAQ/C,OAAiC,EAAC,KAAK,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAKrF,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EAEvB,4BAA4B,EAC5B,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EAA4C,kBAAkB,EAAC,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,cAAc,EACd,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,UAAU,EACV,cAAc,EACd,WAAW,EAEX,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,aAAa,EAAQ,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAK,KAAK,EAAO,MAAM,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sBAAgB;IAC5B,kBAAkB,4BAAsB;IACxC,mBAAmB,6BAAuB;IAC1C,kBAAkB,4BAAsB;IAExC,YAAY,sBAAgB;IAC5B,gBAAgB,0BAAoB;IACpC,cAAc,wBAAkB;IAChC,UAAU,oBAAc;IACxB,UAAU,oBAAc;IACxB,QAAQ,kBAAY;IAEpB,aAAa,uBAAiB;IAC9B,cAAc,wBAAkB;IAChC,cAAc,wBAAkB;IAChC,iBAAiB,2BAAqB;IACtC,wBAAwB,EAA+B,GAAG,CAAC;IAC3D,mBAAmB,6BAAuB;IAE1C,YAAY,sBAAgB;IAC5B,YAAY,sBAAgB;IAE5B,MAAM,gBAAU;IAChB,cAAc,wBAAkB;IAChC,IAAI,cAAQ;IAEZ,iBAAiB,2BAAqB;IACtC,wBAAwB,kCAA4B;IACpD,aAAa,uBAAiB;IAC9B,qBAAqB,+BAAyB;IAE9C,kBAAkB,4BAAsB;IACxC,mBAAmB,6BAAuB;IAC1C,iBAAiB,2BAAqB;IACtC,eAAe,yBAAmB;IAClC,aAAa,uBAAiB;IAC9B,aAAa,uBAAiB;IAC9B,kBAAkB,4BAAsB;CACzC;AAED,OAAO,EAAC,yBAAyB,EAAC,CAAC"}
|
package/build/lib/driver.js
CHANGED
|
@@ -23,11 +23,9 @@ const uiautomator2_1 = require("./uiautomator2");
|
|
|
23
23
|
const actions_1 = require("./commands/actions");
|
|
24
24
|
const alert_1 = require("./commands/alert");
|
|
25
25
|
const app_management_1 = require("./commands/app-management");
|
|
26
|
-
const app_strings_1 = require("./commands/app-strings");
|
|
27
26
|
const battery_1 = require("./commands/battery");
|
|
28
27
|
const clipboard_1 = require("./commands/clipboard");
|
|
29
28
|
const element_1 = require("./commands/element");
|
|
30
|
-
const execute_1 = require("./commands/execute");
|
|
31
29
|
const find_1 = require("./commands/find");
|
|
32
30
|
const gestures_1 = require("./commands/gestures");
|
|
33
31
|
const keyboard_1 = require("./commands/keyboard");
|
|
@@ -35,6 +33,7 @@ const misc_1 = require("./commands/misc");
|
|
|
35
33
|
const navigation_1 = require("./commands/navigation");
|
|
36
34
|
const screenshot_1 = require("./commands/screenshot");
|
|
37
35
|
const viewport_1 = require("./commands/viewport");
|
|
36
|
+
const execute_method_map_1 = require("./execute-method-map");
|
|
38
37
|
// The range of ports we can use on the system for communicating to the
|
|
39
38
|
// UiAutomator2 HTTP server on the device
|
|
40
39
|
const DEVICE_PORT_RANGE = [8200, 8299];
|
|
@@ -157,7 +156,6 @@ class AndroidUiautomator2Driver extends appium_android_driver_1.AndroidDriver {
|
|
|
157
156
|
this.postDismissAlert = alert_1.postDismissAlert;
|
|
158
157
|
this.mobileInstallMultipleApks = app_management_1.mobileInstallMultipleApks;
|
|
159
158
|
this.mobileBackgroundApp = app_management_1.mobileBackgroundApp;
|
|
160
|
-
this.mobileGetAppStrings = app_strings_1.mobileGetAppStrings;
|
|
161
159
|
this.mobileGetBatteryInfo = battery_1.mobileGetBatteryInfo;
|
|
162
160
|
this.active = element_1.active;
|
|
163
161
|
this.getAttribute = element_1.getAttribute;
|
|
@@ -175,8 +173,6 @@ class AndroidUiautomator2Driver extends appium_android_driver_1.AndroidDriver {
|
|
|
175
173
|
this.click = element_1.click;
|
|
176
174
|
this.clear = element_1.clear;
|
|
177
175
|
this.mobileReplaceElementValue = element_1.mobileReplaceElementValue;
|
|
178
|
-
this.executeMobile = execute_1.executeMobile;
|
|
179
|
-
this.mobileCommandsMapping = execute_1.mobileCommandsMapping;
|
|
180
176
|
this.doFindElementOrEls = find_1.doFindElementOrEls;
|
|
181
177
|
this.mobileClickGesture = gestures_1.mobileClickGesture;
|
|
182
178
|
this.mobileDoubleClickGesture = gestures_1.mobileDoubleClickGesture;
|
|
@@ -202,9 +198,7 @@ class AndroidUiautomator2Driver extends appium_android_driver_1.AndroidDriver {
|
|
|
202
198
|
this.suspendChromedriverProxy = misc_1.suspendChromedriverProxy;
|
|
203
199
|
this.mobileGetDeviceInfo = misc_1.mobileGetDeviceInfo;
|
|
204
200
|
this.getClipboard = clipboard_1.getClipboard;
|
|
205
|
-
this.mobileGetClipboard = clipboard_1.mobileGetClipboard;
|
|
206
201
|
this.setClipboard = clipboard_1.setClipboard;
|
|
207
|
-
this.mobileSetClipboard = clipboard_1.mobileSetClipboard;
|
|
208
202
|
this.setUrl = navigation_1.setUrl;
|
|
209
203
|
this.mobileDeepLink = navigation_1.mobileDeepLink;
|
|
210
204
|
this.back = navigation_1.back;
|
|
@@ -819,4 +813,5 @@ class AndroidUiautomator2Driver extends appium_android_driver_1.AndroidDriver {
|
|
|
819
813
|
}
|
|
820
814
|
exports.AndroidUiautomator2Driver = AndroidUiautomator2Driver;
|
|
821
815
|
AndroidUiautomator2Driver.newMethodMap = method_map_1.newMethodMap;
|
|
816
|
+
AndroidUiautomator2Driver.executeMethodMap = execute_method_map_1.executeMethodMap;
|
|
822
817
|
//# sourceMappingURL=driver.js.map
|