appium-uiautomator2-driver 3.3.0 → 3.5.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 +14 -0
- package/README.md +24 -0
- package/build/lib/commands/execute.d.ts +5 -15
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +53 -81
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/gestures.d.ts.map +1 -1
- package/build/lib/commands/gestures.js +2 -3
- package/build/lib/commands/gestures.js.map +1 -1
- package/build/lib/driver.d.ts +2 -508
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +1 -3
- package/build/lib/driver.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/commands/execute.js +62 -93
- package/lib/commands/gestures.js +2 -3
- package/lib/driver.ts +2 -5
- package/npm-shrinkwrap.json +15 -15
- package/package.json +2 -2
- package/build/lib/execute-method-map.d.ts +0 -512
- package/build/lib/execute-method-map.d.ts.map +0 -1
- package/build/lib/execute-method-map.js +0 -577
- package/build/lib/execute-method-map.js.map +0 -1
- package/lib/execute-method-map.ts +0 -610
package/build/lib/driver.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { mobileInstallMultipleApks, mobileBackgroundApp } from './commands/app-m
|
|
|
10
10
|
import { mobileGetAppStrings } from './commands/app-strings';
|
|
11
11
|
import { mobileGetBatteryInfo } from './commands/battery';
|
|
12
12
|
import { active, getAttribute, elementEnabled, elementDisplayed, elementSelected, getName, getLocation, getSize, getElementRect, getElementScreenshot, getText, setValueImmediate, doSetElementValue, click, clear, mobileReplaceElementValue } from './commands/element';
|
|
13
|
-
import {
|
|
13
|
+
import { executeMobile, mobileCommandsMapping } from './commands/execute';
|
|
14
14
|
import { doFindElementOrEls } from './commands/find';
|
|
15
15
|
import { mobileClickGesture, mobileDoubleClickGesture, mobileDragGesture, mobileFlingGesture, mobileLongClickGesture, mobilePinchCloseGesture, mobilePinchOpenGesture, mobileScroll, mobileScrollBackTo, mobileScrollGesture, mobileSwipeGesture } from './commands/gestures';
|
|
16
16
|
import { pressKeyCode, longPressKeyCode, mobilePressKey, mobileType, doSendKeys, keyevent } from './commands/keyboard';
|
|
@@ -326,512 +326,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver implements Externa
|
|
|
326
326
|
};
|
|
327
327
|
};
|
|
328
328
|
};
|
|
329
|
-
static executeMethodMap: {
|
|
330
|
-
readonly 'mobile: shell': {
|
|
331
|
-
readonly command: "mobileShell";
|
|
332
|
-
readonly params: {
|
|
333
|
-
readonly required: readonly ["command"];
|
|
334
|
-
readonly optional: readonly ["args", "timeout", "includeStderr"];
|
|
335
|
-
};
|
|
336
|
-
};
|
|
337
|
-
readonly 'mobile: execEmuConsoleCommand': {
|
|
338
|
-
readonly command: "mobileExecEmuConsoleCommand";
|
|
339
|
-
readonly params: {
|
|
340
|
-
readonly required: readonly ["command"];
|
|
341
|
-
readonly optional: readonly ["execTimeout", "connTimeout", "initTimeout"];
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
readonly 'mobile: dragGesture': {
|
|
345
|
-
readonly command: "mobileDragGesture";
|
|
346
|
-
readonly params: {
|
|
347
|
-
readonly optional: readonly ["elementId", "startX", "startY", "endX", "endY", "speed"];
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
readonly 'mobile: flingGesture': {
|
|
351
|
-
readonly command: "mobileFlingGesture";
|
|
352
|
-
readonly params: {
|
|
353
|
-
readonly required: readonly ["direction"];
|
|
354
|
-
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
readonly 'mobile: doubleClickGesture': {
|
|
358
|
-
readonly command: "mobileDoubleClickGesture";
|
|
359
|
-
readonly params: {
|
|
360
|
-
readonly optional: readonly ["elementId", "x", "y"];
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
readonly 'mobile: clickGesture': {
|
|
364
|
-
readonly command: "mobileClickGesture";
|
|
365
|
-
readonly params: {
|
|
366
|
-
readonly optional: readonly ["elementId", "x", "y"];
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
readonly 'mobile: longClickGesture': {
|
|
370
|
-
readonly command: "mobileLongClickGesture";
|
|
371
|
-
readonly params: {
|
|
372
|
-
readonly optional: readonly ["elementId", "x", "y", "duration"];
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
readonly 'mobile: pinchCloseGesture': {
|
|
376
|
-
readonly command: "mobilePinchCloseGesture";
|
|
377
|
-
readonly params: {
|
|
378
|
-
readonly required: readonly ["percent"];
|
|
379
|
-
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
readonly 'mobile: pinchOpenGesture': {
|
|
383
|
-
readonly command: "mobilePinchOpenGesture";
|
|
384
|
-
readonly params: {
|
|
385
|
-
readonly required: readonly ["percent"];
|
|
386
|
-
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
readonly 'mobile: swipeGesture': {
|
|
390
|
-
readonly command: "mobileSwipeGesture";
|
|
391
|
-
readonly params: {
|
|
392
|
-
readonly required: readonly ["direction", "percent"];
|
|
393
|
-
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
readonly 'mobile: scrollGesture': {
|
|
397
|
-
readonly command: "mobileScrollGesture";
|
|
398
|
-
readonly params: {
|
|
399
|
-
readonly required: readonly ["direction", "percent"];
|
|
400
|
-
readonly optional: readonly ["elementId", "left", "top", "width", "height", "speed"];
|
|
401
|
-
};
|
|
402
|
-
};
|
|
403
|
-
readonly 'mobile: scrollBackTo': {
|
|
404
|
-
readonly command: "mobileScrollBackTo";
|
|
405
|
-
readonly params: {
|
|
406
|
-
readonly required: readonly ["elementId", "elementToId"];
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
readonly 'mobile: scroll': {
|
|
410
|
-
readonly command: "mobileScroll";
|
|
411
|
-
readonly params: {
|
|
412
|
-
readonly required: readonly ["strategy", "selector"];
|
|
413
|
-
readonly optional: readonly ["elementId", "maxSwipes", "element"];
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
readonly 'mobile: viewportScreenshot': {
|
|
417
|
-
readonly command: "mobileViewportScreenshot";
|
|
418
|
-
};
|
|
419
|
-
readonly 'mobile: viewportRect': {
|
|
420
|
-
readonly command: "mobileViewPortRect";
|
|
421
|
-
};
|
|
422
|
-
readonly 'mobile: deepLink': {
|
|
423
|
-
readonly command: "mobileDeepLink";
|
|
424
|
-
readonly params: {
|
|
425
|
-
readonly required: readonly ["url", "package"];
|
|
426
|
-
readonly optional: readonly ["waitForLaunch"];
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
readonly 'mobile: startLogsBroadcast': {
|
|
430
|
-
readonly command: "mobileStartLogsBroadcast";
|
|
431
|
-
};
|
|
432
|
-
readonly 'mobile: stopLogsBroadcast': {
|
|
433
|
-
readonly command: "mobileStopLogsBroadcast";
|
|
434
|
-
};
|
|
435
|
-
readonly 'mobile: deviceidle': {
|
|
436
|
-
readonly command: "mobileDeviceidle";
|
|
437
|
-
readonly params: {
|
|
438
|
-
readonly required: readonly ["action"];
|
|
439
|
-
readonly optional: readonly ["packages"];
|
|
440
|
-
};
|
|
441
|
-
};
|
|
442
|
-
readonly 'mobile: acceptAlert': {
|
|
443
|
-
readonly command: "mobileAcceptAlert";
|
|
444
|
-
readonly params: {
|
|
445
|
-
readonly optional: readonly ["buttonLabel"];
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
readonly 'mobile: dismissAlert': {
|
|
449
|
-
readonly command: "mobileDismissAlert";
|
|
450
|
-
readonly params: {
|
|
451
|
-
readonly optional: readonly ["buttonLabel"];
|
|
452
|
-
};
|
|
453
|
-
};
|
|
454
|
-
readonly 'mobile: batteryInfo': {
|
|
455
|
-
readonly command: "mobileGetBatteryInfo";
|
|
456
|
-
};
|
|
457
|
-
readonly 'mobile: deviceInfo': {
|
|
458
|
-
readonly command: "mobileGetDeviceInfo";
|
|
459
|
-
};
|
|
460
|
-
readonly 'mobile: getDeviceTime': {
|
|
461
|
-
readonly command: "mobileGetDeviceTime";
|
|
462
|
-
readonly params: {
|
|
463
|
-
readonly optional: readonly ["format"];
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
readonly 'mobile: changePermissions': {
|
|
467
|
-
readonly command: "mobileChangePermissions";
|
|
468
|
-
readonly params: {
|
|
469
|
-
readonly required: readonly ["permissions"];
|
|
470
|
-
readonly optional: readonly ["appPackage", "action", "target"];
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
readonly 'mobile: getPermissions': {
|
|
474
|
-
readonly command: "mobileGetPermissions";
|
|
475
|
-
readonly params: {
|
|
476
|
-
readonly optional: readonly ["type", "appPackage"];
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
readonly 'mobile: performEditorAction': {
|
|
480
|
-
readonly command: "mobilePerformEditorAction";
|
|
481
|
-
readonly params: {
|
|
482
|
-
readonly required: readonly ["action"];
|
|
483
|
-
};
|
|
484
|
-
};
|
|
485
|
-
readonly 'mobile: startScreenStreaming': {
|
|
486
|
-
readonly command: "mobileStartScreenStreaming";
|
|
487
|
-
readonly params: {
|
|
488
|
-
readonly optional: readonly ["width", "height", "bitrate", "host", "pathname", "tcpPort", "port", "quality", "considerRotation", "logPipelineDetails"];
|
|
489
|
-
};
|
|
490
|
-
};
|
|
491
|
-
readonly 'mobile: stopScreenStreaming': {
|
|
492
|
-
readonly command: "mobileStopScreenStreaming";
|
|
493
|
-
};
|
|
494
|
-
readonly 'mobile: getNotifications': {
|
|
495
|
-
readonly command: "mobileGetNotifications";
|
|
496
|
-
};
|
|
497
|
-
readonly 'mobile: openNotifications': {
|
|
498
|
-
readonly command: "openNotifications";
|
|
499
|
-
};
|
|
500
|
-
readonly 'mobile: listSms': {
|
|
501
|
-
readonly command: "mobileListSms";
|
|
502
|
-
readonly params: {
|
|
503
|
-
readonly optional: readonly ["max"];
|
|
504
|
-
};
|
|
505
|
-
};
|
|
506
|
-
readonly 'mobile: type': {
|
|
507
|
-
readonly command: "mobileType";
|
|
508
|
-
readonly params: {
|
|
509
|
-
readonly required: readonly ["text"];
|
|
510
|
-
};
|
|
511
|
-
};
|
|
512
|
-
readonly 'mobile: replaceElementValue': {
|
|
513
|
-
readonly command: "mobileReplaceElementValue";
|
|
514
|
-
readonly params: {
|
|
515
|
-
readonly required: readonly ["elementId", "text"];
|
|
516
|
-
};
|
|
517
|
-
};
|
|
518
|
-
readonly 'mobile: pushFile': {
|
|
519
|
-
readonly command: "mobilePushFile";
|
|
520
|
-
readonly params: {
|
|
521
|
-
readonly required: readonly ["payload", "remotePath"];
|
|
522
|
-
};
|
|
523
|
-
};
|
|
524
|
-
readonly 'mobile: pullFile': {
|
|
525
|
-
readonly command: "mobilePullFile";
|
|
526
|
-
readonly params: {
|
|
527
|
-
readonly required: readonly ["remotePath"];
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
readonly 'mobile: pullFolder': {
|
|
531
|
-
readonly command: "mobilePullFolder";
|
|
532
|
-
readonly params: {
|
|
533
|
-
readonly required: readonly ["remotePath"];
|
|
534
|
-
};
|
|
535
|
-
};
|
|
536
|
-
readonly 'mobile: deleteFile': {
|
|
537
|
-
readonly command: "mobileDeleteFile";
|
|
538
|
-
readonly params: {
|
|
539
|
-
readonly required: readonly ["remotePath"];
|
|
540
|
-
};
|
|
541
|
-
};
|
|
542
|
-
readonly 'mobile: isAppInstalled': {
|
|
543
|
-
readonly command: "mobileIsAppInstalled";
|
|
544
|
-
readonly params: {
|
|
545
|
-
readonly required: readonly ["appId"];
|
|
546
|
-
readonly optional: readonly ["user"];
|
|
547
|
-
};
|
|
548
|
-
};
|
|
549
|
-
readonly 'mobile: queryAppState': {
|
|
550
|
-
readonly command: "mobileQueryAppState";
|
|
551
|
-
readonly params: {
|
|
552
|
-
readonly required: readonly ["appId"];
|
|
553
|
-
};
|
|
554
|
-
};
|
|
555
|
-
readonly 'mobile: activateApp': {
|
|
556
|
-
readonly command: "mobileActivateApp";
|
|
557
|
-
readonly params: {
|
|
558
|
-
readonly required: readonly ["appId"];
|
|
559
|
-
};
|
|
560
|
-
};
|
|
561
|
-
readonly 'mobile: removeApp': {
|
|
562
|
-
readonly command: "mobileRemoveApp";
|
|
563
|
-
readonly params: {
|
|
564
|
-
readonly required: readonly ["appId"];
|
|
565
|
-
readonly optional: readonly ["timeout", "keepData"];
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
readonly 'mobile: terminateApp': {
|
|
569
|
-
readonly command: "mobileTerminateApp";
|
|
570
|
-
readonly params: {
|
|
571
|
-
readonly required: readonly ["appId"];
|
|
572
|
-
readonly optional: readonly ["timeout"];
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
readonly 'mobile: installApp': {
|
|
576
|
-
readonly command: "mobileInstallApp";
|
|
577
|
-
readonly params: {
|
|
578
|
-
readonly required: readonly ["appPath"];
|
|
579
|
-
readonly optional: readonly ["timeout", "allowTestPackages", "useSdcard", "grantPermissions", "replace", "checkVersion"];
|
|
580
|
-
};
|
|
581
|
-
};
|
|
582
|
-
readonly 'mobile: clearApp': {
|
|
583
|
-
readonly command: "mobileClearApp";
|
|
584
|
-
readonly params: {
|
|
585
|
-
readonly required: readonly ["appId"];
|
|
586
|
-
};
|
|
587
|
-
};
|
|
588
|
-
readonly 'mobile: backgroundApp': {
|
|
589
|
-
readonly command: "mobileBackgroundApp";
|
|
590
|
-
readonly params: {
|
|
591
|
-
readonly optional: readonly ["seconds"];
|
|
592
|
-
};
|
|
593
|
-
};
|
|
594
|
-
readonly 'mobile: getCurrentActivity': {
|
|
595
|
-
readonly command: "getCurrentActivity";
|
|
596
|
-
};
|
|
597
|
-
readonly 'mobile: getCurrentPackage': {
|
|
598
|
-
readonly command: "getCurrentPackage";
|
|
599
|
-
};
|
|
600
|
-
readonly 'mobile: startActivity': {
|
|
601
|
-
readonly command: "mobileStartActivity";
|
|
602
|
-
readonly params: {
|
|
603
|
-
readonly optional: readonly ["wait", "stop", "windowingMode", "activityType", "display"];
|
|
604
|
-
};
|
|
605
|
-
};
|
|
606
|
-
readonly 'mobile: startService': {
|
|
607
|
-
readonly command: "mobileStartService";
|
|
608
|
-
readonly params: {
|
|
609
|
-
readonly optional: readonly ["user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags", "wait", "stop", "windowingMode", "activityType", "display"];
|
|
610
|
-
};
|
|
611
|
-
};
|
|
612
|
-
readonly 'mobile: stopService': {
|
|
613
|
-
readonly command: "mobileStopService";
|
|
614
|
-
readonly params: {
|
|
615
|
-
readonly optional: readonly ["user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
|
|
616
|
-
};
|
|
617
|
-
};
|
|
618
|
-
readonly 'mobile: broadcast': {
|
|
619
|
-
readonly command: "mobileBroadcast";
|
|
620
|
-
readonly params: {
|
|
621
|
-
readonly optional: readonly ["user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags", "receiverPermission", "allowBackgroundActivityStarts"];
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
readonly 'mobile: getContexts': {
|
|
625
|
-
readonly command: "mobileGetContexts";
|
|
626
|
-
readonly params: {
|
|
627
|
-
readonly optional: readonly ["waitForWebviewMs"];
|
|
628
|
-
};
|
|
629
|
-
};
|
|
630
|
-
readonly 'mobile: getAppStrings': {
|
|
631
|
-
readonly command: "mobileGetAppStrings";
|
|
632
|
-
readonly params: {
|
|
633
|
-
readonly optional: readonly ["language"];
|
|
634
|
-
};
|
|
635
|
-
};
|
|
636
|
-
readonly 'mobile: installMultipleApks': {
|
|
637
|
-
readonly command: "mobileInstallMultipleApks";
|
|
638
|
-
readonly params: {
|
|
639
|
-
readonly required: readonly ["apks"];
|
|
640
|
-
readonly optional: readonly ["options"];
|
|
641
|
-
};
|
|
642
|
-
};
|
|
643
|
-
readonly 'mobile: lock': {
|
|
644
|
-
readonly command: "mobileLock";
|
|
645
|
-
readonly params: {
|
|
646
|
-
readonly optional: readonly ["seconds"];
|
|
647
|
-
};
|
|
648
|
-
};
|
|
649
|
-
readonly 'mobile: unlock': {
|
|
650
|
-
readonly command: "mobileUnlock";
|
|
651
|
-
readonly params: {
|
|
652
|
-
readonly optional: readonly ["key", "type", "strategy", "timeoutMs"];
|
|
653
|
-
};
|
|
654
|
-
};
|
|
655
|
-
readonly 'mobile: isLocked': {
|
|
656
|
-
readonly command: "isLocked";
|
|
657
|
-
};
|
|
658
|
-
readonly 'mobile: refreshGpsCache': {
|
|
659
|
-
readonly command: "mobileRefreshGpsCache";
|
|
660
|
-
readonly params: {
|
|
661
|
-
readonly optional: readonly ["timeoutMs"];
|
|
662
|
-
};
|
|
663
|
-
};
|
|
664
|
-
readonly 'mobile: startMediaProjectionRecording': {
|
|
665
|
-
readonly command: "mobileStartMediaProjectionRecording";
|
|
666
|
-
readonly params: {
|
|
667
|
-
readonly optional: readonly ["resolution", "maxDurationSec", "priority", "filename"];
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
readonly 'mobile: isMediaProjectionRecordingRunning': {
|
|
671
|
-
readonly command: "mobileIsMediaProjectionRecordingRunning";
|
|
672
|
-
};
|
|
673
|
-
readonly 'mobile: stopMediaProjectionRecording': {
|
|
674
|
-
readonly command: "mobileStopMediaProjectionRecording";
|
|
675
|
-
readonly params: {
|
|
676
|
-
readonly optional: readonly ["remotePath", "user", "pass", "method", "headers", "fileFieldName", "formFields", "uploadTimeout"];
|
|
677
|
-
};
|
|
678
|
-
};
|
|
679
|
-
readonly 'mobile: getConnectivity': {
|
|
680
|
-
readonly command: "mobileGetConnectivity";
|
|
681
|
-
readonly params: {
|
|
682
|
-
readonly optional: readonly ["services"];
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
readonly 'mobile: setConnectivity': {
|
|
686
|
-
readonly command: "mobileSetConnectivity";
|
|
687
|
-
readonly params: {
|
|
688
|
-
readonly optional: readonly ["wifi", "data", "airplaneMode"];
|
|
689
|
-
};
|
|
690
|
-
};
|
|
691
|
-
readonly 'mobile: toggleGps': {
|
|
692
|
-
readonly command: "toggleLocationServices";
|
|
693
|
-
};
|
|
694
|
-
readonly 'mobile: isGpsEnabled': {
|
|
695
|
-
readonly command: "isLocationServicesEnabled";
|
|
696
|
-
};
|
|
697
|
-
readonly 'mobile: hideKeyboard': {
|
|
698
|
-
readonly command: "hideKeyboard";
|
|
699
|
-
};
|
|
700
|
-
readonly 'mobile: isKeyboardShown': {
|
|
701
|
-
readonly command: "isKeyboardShown";
|
|
702
|
-
};
|
|
703
|
-
readonly 'mobile: pressKey': {
|
|
704
|
-
readonly command: "mobilePressKey";
|
|
705
|
-
readonly params: {
|
|
706
|
-
readonly required: readonly ["keycode"];
|
|
707
|
-
readonly optional: readonly ["metastate", "flags", "isLongPress"];
|
|
708
|
-
};
|
|
709
|
-
};
|
|
710
|
-
readonly 'mobile: getDisplayDensity': {
|
|
711
|
-
readonly command: "getDisplayDensity";
|
|
712
|
-
};
|
|
713
|
-
readonly 'mobile: getSystemBars': {
|
|
714
|
-
readonly command: "getSystemBars";
|
|
715
|
-
};
|
|
716
|
-
readonly 'mobile: fingerprint': {
|
|
717
|
-
readonly command: "mobileFingerprint";
|
|
718
|
-
readonly params: {
|
|
719
|
-
readonly required: readonly ["fingerprintId"];
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
readonly 'mobile: sendSms': {
|
|
723
|
-
readonly command: "mobileSendSms";
|
|
724
|
-
readonly params: {
|
|
725
|
-
readonly required: readonly ["phoneNumber", "message"];
|
|
726
|
-
};
|
|
727
|
-
};
|
|
728
|
-
readonly 'mobile: gsmCall': {
|
|
729
|
-
readonly command: "mobileGsmCall";
|
|
730
|
-
readonly params: {
|
|
731
|
-
readonly required: readonly ["phoneNumber", "action"];
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
readonly 'mobile: gsmSignal': {
|
|
735
|
-
readonly command: "mobileGsmSignal";
|
|
736
|
-
readonly params: {
|
|
737
|
-
readonly required: readonly ["strength"];
|
|
738
|
-
};
|
|
739
|
-
};
|
|
740
|
-
readonly 'mobile: gsmVoice': {
|
|
741
|
-
readonly command: "mobileGsmVoice";
|
|
742
|
-
readonly params: {
|
|
743
|
-
readonly required: readonly ["state"];
|
|
744
|
-
};
|
|
745
|
-
};
|
|
746
|
-
readonly 'mobile: powerAc': {
|
|
747
|
-
readonly command: "mobilePowerAc";
|
|
748
|
-
readonly params: {
|
|
749
|
-
readonly required: readonly ["state"];
|
|
750
|
-
};
|
|
751
|
-
};
|
|
752
|
-
readonly 'mobile: powerCapacity': {
|
|
753
|
-
readonly command: "mobilePowerCapacity";
|
|
754
|
-
readonly params: {
|
|
755
|
-
readonly required: readonly ["percent"];
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
readonly 'mobile: networkSpeed': {
|
|
759
|
-
readonly command: "mobileNetworkSpeed";
|
|
760
|
-
readonly params: {
|
|
761
|
-
readonly required: readonly ["speed"];
|
|
762
|
-
};
|
|
763
|
-
};
|
|
764
|
-
readonly 'mobile: sensorSet': {
|
|
765
|
-
readonly command: "sensorSet";
|
|
766
|
-
readonly params: {
|
|
767
|
-
readonly required: readonly ["sensorType", "value"];
|
|
768
|
-
};
|
|
769
|
-
};
|
|
770
|
-
readonly 'mobile: getPerformanceData': {
|
|
771
|
-
readonly command: "mobileGetPerformanceData";
|
|
772
|
-
readonly params: {
|
|
773
|
-
readonly required: readonly ["packageName", "dataType"];
|
|
774
|
-
};
|
|
775
|
-
};
|
|
776
|
-
readonly 'mobile: getPerformanceDataTypes': {
|
|
777
|
-
readonly command: "getPerformanceDataTypes";
|
|
778
|
-
};
|
|
779
|
-
readonly 'mobile: statusBar': {
|
|
780
|
-
readonly command: "mobilePerformStatusBarCommand";
|
|
781
|
-
readonly params: {
|
|
782
|
-
readonly required: readonly ["command"];
|
|
783
|
-
readonly optional: readonly ["component"];
|
|
784
|
-
};
|
|
785
|
-
};
|
|
786
|
-
readonly 'mobile: screenshots': {
|
|
787
|
-
readonly command: "mobileScreenshots";
|
|
788
|
-
readonly params: {
|
|
789
|
-
readonly optional: readonly ["displayId"];
|
|
790
|
-
};
|
|
791
|
-
};
|
|
792
|
-
readonly 'mobile: scheduleAction': {
|
|
793
|
-
readonly command: "mobileScheduleAction";
|
|
794
|
-
readonly params: {
|
|
795
|
-
readonly optional: readonly ["opts"];
|
|
796
|
-
};
|
|
797
|
-
};
|
|
798
|
-
readonly 'mobile: getActionHistory': {
|
|
799
|
-
readonly command: "mobileGetActionHistory";
|
|
800
|
-
readonly params: {
|
|
801
|
-
readonly optional: readonly ["opts"];
|
|
802
|
-
};
|
|
803
|
-
};
|
|
804
|
-
readonly 'mobile: unscheduleAction': {
|
|
805
|
-
readonly command: "mobileUnscheduleAction";
|
|
806
|
-
readonly params: {
|
|
807
|
-
readonly optional: readonly ["opts"];
|
|
808
|
-
};
|
|
809
|
-
};
|
|
810
|
-
readonly 'mobile: getUiMode': {
|
|
811
|
-
readonly command: "mobileGetUiMode";
|
|
812
|
-
readonly params: {
|
|
813
|
-
readonly optional: readonly ["opts"];
|
|
814
|
-
};
|
|
815
|
-
};
|
|
816
|
-
readonly 'mobile: setUiMode': {
|
|
817
|
-
readonly command: "mobileSetUiMode";
|
|
818
|
-
readonly params: {
|
|
819
|
-
readonly optional: readonly ["opts"];
|
|
820
|
-
};
|
|
821
|
-
};
|
|
822
|
-
readonly 'mobile: sendTrimMemory': {
|
|
823
|
-
readonly command: "mobileSendTrimMemory";
|
|
824
|
-
readonly params: {
|
|
825
|
-
readonly optional: readonly ["opts"];
|
|
826
|
-
};
|
|
827
|
-
};
|
|
828
|
-
readonly 'mobile: injectEmulatorCameraImage': {
|
|
829
|
-
readonly command: "mobileInjectEmulatorCameraImage";
|
|
830
|
-
readonly params: {
|
|
831
|
-
readonly optional: readonly ["opts"];
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
};
|
|
835
329
|
uiautomator2: UiAutomator2Server;
|
|
836
330
|
systemPort: number | undefined;
|
|
837
331
|
_originalIme: string | null;
|
|
@@ -894,8 +388,8 @@ declare class AndroidUiautomator2Driver extends AndroidDriver implements Externa
|
|
|
894
388
|
click: typeof click;
|
|
895
389
|
clear: typeof clear;
|
|
896
390
|
mobileReplaceElementValue: typeof mobileReplaceElementValue;
|
|
897
|
-
execute: typeof execute;
|
|
898
391
|
executeMobile: typeof executeMobile;
|
|
392
|
+
mobileCommandsMapping: typeof mobileCommandsMapping;
|
|
899
393
|
doFindElementOrEls: typeof doFindElementOrEls;
|
|
900
394
|
mobileClickGesture: typeof mobileClickGesture;
|
|
901
395
|
mobileDoubleClickGesture: typeof mobileDoubleClickGesture;
|
|
@@ -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,aAAsB,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAK,KAAK,EAAO,MAAM,gBAAgB,CAAC;AAQ/C,OAAiC,EAAC,KAAK,uBAAuB,EAAC,MAAM,eAAe,CAAC;
|
|
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,aAAsB,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAK,KAAK,EAAO,MAAM,gBAAgB,CAAC;AAQ/C,OAAiC,EAAC,K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9B,aAAa,uBAAiB;IAC9B,kBAAkB,4BAAsB;CACzC;AAED,OAAO,EAAC,yBAAyB,EAAC,CAAC"}
|
package/build/lib/driver.js
CHANGED
|
@@ -39,7 +39,6 @@ const node_os_1 = __importDefault(require("node:os"));
|
|
|
39
39
|
const node_path_1 = __importDefault(require("node:path"));
|
|
40
40
|
const portscanner_1 = require("portscanner");
|
|
41
41
|
const constraints_1 = __importDefault(require("./constraints"));
|
|
42
|
-
const execute_method_map_1 = require("./execute-method-map");
|
|
43
42
|
const extensions_1 = require("./extensions");
|
|
44
43
|
const method_map_1 = require("./method-map");
|
|
45
44
|
const helpers_1 = require("./helpers");
|
|
@@ -198,8 +197,8 @@ class AndroidUiautomator2Driver extends appium_android_driver_1.default {
|
|
|
198
197
|
this.click = element_1.click;
|
|
199
198
|
this.clear = element_1.clear;
|
|
200
199
|
this.mobileReplaceElementValue = element_1.mobileReplaceElementValue;
|
|
201
|
-
this.execute = execute_1.execute;
|
|
202
200
|
this.executeMobile = execute_1.executeMobile;
|
|
201
|
+
this.mobileCommandsMapping = execute_1.mobileCommandsMapping;
|
|
203
202
|
this.doFindElementOrEls = find_1.doFindElementOrEls;
|
|
204
203
|
this.mobileClickGesture = gestures_1.mobileClickGesture;
|
|
205
204
|
this.mobileDoubleClickGesture = gestures_1.mobileDoubleClickGesture;
|
|
@@ -835,5 +834,4 @@ class AndroidUiautomator2Driver extends appium_android_driver_1.default {
|
|
|
835
834
|
}
|
|
836
835
|
exports.AndroidUiautomator2Driver = AndroidUiautomator2Driver;
|
|
837
836
|
AndroidUiautomator2Driver.newMethodMap = method_map_1.newMethodMap;
|
|
838
|
-
AndroidUiautomator2Driver.executeMethodMap = execute_method_map_1.executeMethodMap;
|
|
839
837
|
//# sourceMappingURL=driver.js.map
|