appium-espresso-driver 8.2.2 → 8.3.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 +6 -0
- package/build/lib/commands/misc.d.ts +7 -7
- package/build/lib/commands/misc.d.ts.map +1 -1
- package/build/lib/commands/misc.js.map +1 -1
- package/build/lib/commands/screenshot.d.ts.map +1 -1
- package/build/lib/commands/screenshot.js +1 -2
- package/build/lib/commands/screenshot.js.map +1 -1
- package/build/lib/driver.d.ts +42 -567
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +54 -66
- package/build/lib/driver.js.map +1 -1
- package/build/lib/espresso-runner.d.ts +9 -9
- package/build/lib/espresso-runner.d.ts.map +1 -1
- package/build/lib/espresso-runner.js +15 -16
- package/build/lib/espresso-runner.js.map +1 -1
- package/build/lib/server-builder.d.ts +7 -1
- package/build/lib/server-builder.d.ts.map +1 -1
- package/build/lib/server-builder.js +15 -9
- package/build/lib/server-builder.js.map +1 -1
- package/build/lib/utils.d.ts +8 -0
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +8 -0
- package/build/lib/utils.js.map +1 -1
- package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
- package/espresso-server/buildSrc/.gradle/9.5.0/executionHistory/executionHistory.bin +0 -0
- package/espresso-server/buildSrc/.gradle/9.5.0/executionHistory/executionHistory.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/espresso-server/buildSrc/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/espresso-server/buildSrc/.gradle/file-system.probe +0 -0
- package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
- package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
- package/lib/commands/misc.ts +9 -9
- package/lib/commands/screenshot.ts +1 -2
- package/lib/driver.ts +72 -77
- package/lib/espresso-runner.ts +44 -45
- package/lib/server-builder.ts +16 -10
- package/lib/utils.ts +8 -0
- package/npm-shrinkwrap.json +2 -4
- package/package.json +1 -3
package/build/lib/driver.d.ts
CHANGED
|
@@ -5,17 +5,12 @@ import * as appManagementCmds from './commands/app-management';
|
|
|
5
5
|
import * as contextCmds from './commands/context';
|
|
6
6
|
import * as elementCmds from './commands/element';
|
|
7
7
|
import * as miscCmds from './commands/misc';
|
|
8
|
-
import * as servicesCmds from './commands/services';
|
|
9
8
|
import * as screenshotCmds from './commands/screenshot';
|
|
10
9
|
import * as idlingResourcesCmds from './commands/idling-resources';
|
|
11
|
-
import * as actionsCmds from './commands/actions';
|
|
12
10
|
import * as clipboardCmds from './commands/clipboard';
|
|
13
11
|
import { AndroidDriver } from 'appium-android-driver';
|
|
14
12
|
import type { EspressoDriverCaps, EspressoDriverOpts, W3CEspressoDriverCaps } from './types';
|
|
15
13
|
export declare class EspressoDriver extends AndroidDriver implements ExternalDriver<EspressoConstraints, string, StringRecord> {
|
|
16
|
-
_originalIme: string | null;
|
|
17
|
-
espresso: EspressoRunner;
|
|
18
|
-
wasAnimationEnabled?: boolean;
|
|
19
14
|
static newMethodMap: {
|
|
20
15
|
readonly '/session/:sessionId/appium/device/get_clipboard': {
|
|
21
16
|
readonly POST: {
|
|
@@ -388,534 +383,52 @@ export declare class EspressoDriver extends AndroidDriver implements ExternalDri
|
|
|
388
383
|
};
|
|
389
384
|
};
|
|
390
385
|
};
|
|
391
|
-
static executeMethodMap:
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
readonly required: readonly ["elementId"];
|
|
396
|
-
readonly optional: readonly ["direction", "swiper", "startCoordinates", "endCoordinates", "precisionDescriber"];
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
readonly 'mobile: scrollToPage': {
|
|
400
|
-
readonly command: "mobileScrollToPage";
|
|
401
|
-
readonly params: {
|
|
402
|
-
readonly required: readonly ["elementId"];
|
|
403
|
-
readonly optional: readonly ["scrollTo", "scrollToPage", "smoothScroll"];
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
readonly 'mobile: navigateTo': {
|
|
407
|
-
readonly command: "mobileNavigateTo";
|
|
408
|
-
readonly params: {
|
|
409
|
-
readonly required: readonly ["elementId", "menuItemId"];
|
|
410
|
-
};
|
|
411
|
-
};
|
|
412
|
-
readonly 'mobile: clickAction': {
|
|
413
|
-
readonly command: "mobileClickAction";
|
|
414
|
-
readonly params: {
|
|
415
|
-
readonly required: readonly ["elementId"];
|
|
416
|
-
readonly optional: readonly ["tapper", "coordinatesProvider", "precisionDescriber", "inputDevice", "buttonState"];
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
readonly 'mobile: deviceInfo': {
|
|
420
|
-
readonly command: "mobileGetDeviceInfo";
|
|
421
|
-
};
|
|
422
|
-
readonly 'mobile: isToastVisible': {
|
|
423
|
-
readonly command: "mobileIsToastVisible";
|
|
424
|
-
readonly params: {
|
|
425
|
-
readonly required: readonly ["text"];
|
|
426
|
-
readonly optional: readonly ["isRegexp"];
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
readonly 'mobile: openDrawer': {
|
|
430
|
-
readonly command: "mobileOpenDrawer";
|
|
431
|
-
readonly params: {
|
|
432
|
-
readonly required: readonly ["elementId"];
|
|
433
|
-
readonly optional: readonly ["gravity"];
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
readonly 'mobile: closeDrawer': {
|
|
437
|
-
readonly command: "mobileCloseDrawer";
|
|
438
|
-
readonly params: {
|
|
439
|
-
readonly required: readonly ["elementId"];
|
|
440
|
-
readonly optional: readonly ["gravity"];
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
readonly 'mobile: setDate': {
|
|
444
|
-
readonly command: "mobileSetDate";
|
|
445
|
-
readonly params: {
|
|
446
|
-
readonly required: readonly ["elementId", "year", "monthOfYear", "dayOfMonth"];
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
readonly 'mobile: setTime': {
|
|
450
|
-
readonly command: "mobileSetTime";
|
|
451
|
-
readonly params: {
|
|
452
|
-
readonly required: readonly ["elementId", "hours", "minutes"];
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
readonly 'mobile: backdoor': {
|
|
456
|
-
readonly command: "mobileBackdoor";
|
|
457
|
-
readonly params: {
|
|
458
|
-
readonly required: readonly ["target", "methods"];
|
|
459
|
-
readonly optional: readonly ["elementId"];
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
readonly 'mobile: flashElement': {
|
|
463
|
-
readonly command: "mobileFlashElement";
|
|
464
|
-
readonly params: {
|
|
465
|
-
readonly required: readonly ["elementId"];
|
|
466
|
-
readonly optional: readonly ["durationMillis", "repeatCount"];
|
|
467
|
-
};
|
|
468
|
-
};
|
|
469
|
-
readonly 'mobile: uiautomator': {
|
|
470
|
-
readonly command: "mobileUiautomator";
|
|
471
|
-
readonly params: {
|
|
472
|
-
readonly required: readonly ["strategy", "locator", "action"];
|
|
473
|
-
readonly optional: readonly ["index"];
|
|
474
|
-
};
|
|
475
|
-
};
|
|
476
|
-
readonly 'mobile: uiautomatorPageSource': {
|
|
477
|
-
readonly command: "mobileUiautomatorPageSource";
|
|
478
|
-
};
|
|
479
|
-
readonly 'mobile: webAtoms': {
|
|
480
|
-
readonly command: "mobileWebAtoms";
|
|
481
|
-
readonly params: {
|
|
482
|
-
readonly required: readonly ["webviewEl", "forceJavascriptEnabled", "methodChain"];
|
|
483
|
-
};
|
|
484
|
-
};
|
|
485
|
-
readonly 'mobile: dismissAutofill': {
|
|
486
|
-
readonly command: "mobileDismissAutofill";
|
|
487
|
-
readonly params: {
|
|
488
|
-
readonly required: readonly ["elementId"];
|
|
489
|
-
};
|
|
490
|
-
};
|
|
491
|
-
readonly 'mobile: registerIdlingResources': {
|
|
492
|
-
readonly command: "mobileRegisterIdlingResources";
|
|
493
|
-
readonly params: {
|
|
494
|
-
readonly required: readonly ["classNames"];
|
|
495
|
-
};
|
|
496
|
-
};
|
|
497
|
-
readonly 'mobile: unregisterIdlingResources': {
|
|
498
|
-
readonly command: "mobileUnregisterIdlingResources";
|
|
499
|
-
readonly params: {
|
|
500
|
-
readonly required: readonly ["classNames"];
|
|
501
|
-
};
|
|
502
|
-
};
|
|
503
|
-
readonly 'mobile: listIdlingResources': {
|
|
504
|
-
readonly command: "mobileListIdlingResources";
|
|
505
|
-
};
|
|
506
|
-
readonly 'mobile: waitForUIThread': {
|
|
507
|
-
readonly command: "mobileWaitForUIThread";
|
|
508
|
-
};
|
|
509
|
-
readonly 'mobile: pressKey': {
|
|
510
|
-
readonly command: "mobilePressKey";
|
|
511
|
-
readonly params: {
|
|
512
|
-
readonly required: readonly ["keycode"];
|
|
513
|
-
readonly optional: readonly ["metastate", "flags", "isLongPress"];
|
|
514
|
-
};
|
|
515
|
-
};
|
|
516
|
-
readonly 'mobile: setClipboard': {
|
|
517
|
-
readonly command: "mobileSetClipboard";
|
|
518
|
-
readonly params: {
|
|
519
|
-
readonly required: readonly ["content"];
|
|
520
|
-
readonly optional: readonly ["contentType", "label"];
|
|
521
|
-
};
|
|
522
|
-
};
|
|
523
|
-
readonly 'mobile: getClipboard': {
|
|
524
|
-
readonly command: "mobileGetClipboard";
|
|
525
|
-
};
|
|
526
|
-
readonly 'mobile: startService': {
|
|
527
|
-
readonly command: "mobileStartService";
|
|
528
|
-
readonly params: {
|
|
529
|
-
readonly required: readonly ["intent"];
|
|
530
|
-
readonly optional: readonly ["user", "foreground"];
|
|
531
|
-
};
|
|
532
|
-
};
|
|
533
|
-
readonly 'mobile: stopService': {
|
|
534
|
-
readonly command: "mobileStopService";
|
|
535
|
-
readonly params: {
|
|
536
|
-
readonly required: readonly ["intent"];
|
|
537
|
-
readonly optional: readonly ["user"];
|
|
538
|
-
};
|
|
539
|
-
};
|
|
540
|
-
readonly 'mobile: startActivity': {
|
|
541
|
-
readonly command: "mobileStartActivity";
|
|
542
|
-
readonly params: {
|
|
543
|
-
readonly required: readonly ["appActivity"];
|
|
544
|
-
readonly optional: readonly ["locale", "optionalIntentArguments", "optionalActivityArguments"];
|
|
545
|
-
};
|
|
546
|
-
};
|
|
547
|
-
readonly 'mobile: shell': {
|
|
548
|
-
readonly command: "mobileShell";
|
|
549
|
-
readonly params: {
|
|
550
|
-
readonly required: readonly ["command"];
|
|
551
|
-
readonly optional: readonly ["args", "timeout", "includeStderr"];
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
|
-
readonly 'mobile: execEmuConsoleCommand': {
|
|
555
|
-
readonly command: "mobileExecEmuConsoleCommand";
|
|
556
|
-
readonly params: {
|
|
557
|
-
readonly required: readonly ["command"];
|
|
558
|
-
readonly optional: readonly ["execTimeout", "connTimeout", "initTimeout"];
|
|
559
|
-
};
|
|
560
|
-
};
|
|
561
|
-
readonly 'mobile: startLogsBroadcast': {
|
|
562
|
-
readonly command: "mobileStartLogsBroadcast";
|
|
563
|
-
};
|
|
564
|
-
readonly 'mobile: stopLogsBroadcast': {
|
|
565
|
-
readonly command: "mobileStopLogsBroadcast";
|
|
566
|
-
};
|
|
567
|
-
readonly 'mobile: changePermissions': {
|
|
568
|
-
readonly command: "mobileChangePermissions";
|
|
569
|
-
readonly params: {
|
|
570
|
-
readonly required: readonly ["permissions"];
|
|
571
|
-
readonly optional: readonly ["appPackage", "action", "target"];
|
|
572
|
-
};
|
|
573
|
-
};
|
|
574
|
-
readonly 'mobile: getPermissions': {
|
|
575
|
-
readonly command: "mobileGetPermissions";
|
|
576
|
-
readonly params: {
|
|
577
|
-
readonly optional: readonly ["type", "appPackage"];
|
|
578
|
-
};
|
|
579
|
-
};
|
|
580
|
-
readonly 'mobile: performEditorAction': {
|
|
581
|
-
readonly command: "mobilePerformEditorAction";
|
|
582
|
-
readonly params: {
|
|
583
|
-
readonly required: readonly ["action"];
|
|
584
|
-
};
|
|
585
|
-
};
|
|
586
|
-
readonly 'mobile: getDeviceTime': {
|
|
587
|
-
readonly command: "mobileGetDeviceTime";
|
|
588
|
-
readonly params: {
|
|
589
|
-
readonly optional: readonly ["format"];
|
|
590
|
-
};
|
|
591
|
-
};
|
|
592
|
-
readonly 'mobile: startScreenStreaming': {
|
|
593
|
-
readonly command: "mobileStartScreenStreaming";
|
|
594
|
-
readonly params: {
|
|
595
|
-
readonly optional: readonly ["width", "height", "bitRate", "host", "port", "pathname", "tcpPort", "quality", "considerRotation", "logPipelineDetails"];
|
|
596
|
-
};
|
|
597
|
-
};
|
|
598
|
-
readonly 'mobile: stopScreenStreaming': {
|
|
599
|
-
readonly command: "mobileStopScreenStreaming";
|
|
600
|
-
};
|
|
601
|
-
readonly 'mobile: getNotifications': {
|
|
602
|
-
readonly command: "mobileGetNotifications";
|
|
603
|
-
};
|
|
604
|
-
readonly 'mobile: listSms': {
|
|
605
|
-
readonly command: "mobileListSms";
|
|
606
|
-
};
|
|
607
|
-
readonly 'mobile: pushFile': {
|
|
608
|
-
readonly command: "pushFile";
|
|
609
|
-
readonly params: {
|
|
610
|
-
readonly required: readonly ["remotePath", "payload"];
|
|
611
|
-
};
|
|
612
|
-
};
|
|
613
|
-
readonly 'mobile: pullFolder': {
|
|
614
|
-
readonly command: "pullFolder";
|
|
615
|
-
readonly params: {
|
|
616
|
-
readonly required: readonly ["remotePath"];
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
readonly 'mobile: pullFile': {
|
|
620
|
-
readonly command: "pullFile";
|
|
621
|
-
readonly params: {
|
|
622
|
-
readonly required: readonly ["remotePath"];
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
readonly 'mobile: deleteFile': {
|
|
626
|
-
readonly command: "mobileDeleteFile";
|
|
627
|
-
readonly params: {
|
|
628
|
-
readonly required: readonly ["remotePath"];
|
|
629
|
-
};
|
|
630
|
-
};
|
|
631
|
-
readonly 'mobile: isAppInstalled': {
|
|
632
|
-
readonly command: "mobileIsAppInstalled";
|
|
633
|
-
readonly params: {
|
|
634
|
-
readonly required: readonly ["appId"];
|
|
635
|
-
readonly optional: readonly ["user"];
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
readonly 'mobile: listApps': {
|
|
639
|
-
readonly command: "mobileListApps";
|
|
640
|
-
readonly params: {
|
|
641
|
-
readonly optional: readonly ["user"];
|
|
642
|
-
};
|
|
643
|
-
};
|
|
644
|
-
readonly 'mobile: queryAppState': {
|
|
645
|
-
readonly command: "queryAppState";
|
|
646
|
-
readonly params: {
|
|
647
|
-
readonly required: readonly ["appId"];
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
readonly 'mobile: activateApp': {
|
|
651
|
-
readonly command: "activateApp";
|
|
652
|
-
readonly params: {
|
|
653
|
-
readonly required: readonly ["appId"];
|
|
654
|
-
};
|
|
655
|
-
};
|
|
656
|
-
readonly 'mobile: removeApp': {
|
|
657
|
-
readonly command: "mobileRemoveApp";
|
|
658
|
-
readonly params: {
|
|
659
|
-
readonly required: readonly ["appId"];
|
|
660
|
-
readonly optional: readonly ["timeout", "keepData", "skipInstallCheck"];
|
|
661
|
-
};
|
|
662
|
-
};
|
|
663
|
-
readonly 'mobile: terminateApp': {
|
|
664
|
-
readonly command: "mobileTerminateApp";
|
|
665
|
-
readonly params: {
|
|
666
|
-
readonly required: readonly ["appId"];
|
|
667
|
-
readonly optional: readonly ["timeout"];
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
readonly 'mobile: installApp': {
|
|
671
|
-
readonly command: "mobileInstallApp";
|
|
672
|
-
readonly params: {
|
|
673
|
-
readonly required: readonly ["appPath"];
|
|
674
|
-
readonly optional: readonly ["checkVersion", "timeout", "allowTestPackages", "useSdcard", "grantPermissions", "replace", "noIncremental"];
|
|
675
|
-
};
|
|
676
|
-
};
|
|
677
|
-
readonly 'mobile: clearApp': {
|
|
678
|
-
readonly command: "mobileClearApp";
|
|
679
|
-
readonly params: {
|
|
680
|
-
readonly required: readonly ["appId"];
|
|
681
|
-
};
|
|
682
|
-
};
|
|
683
|
-
readonly 'mobile: backgroundApp': {
|
|
684
|
-
readonly command: "mobileBackgroundApp";
|
|
685
|
-
readonly params: {
|
|
686
|
-
readonly optional: readonly ["seconds"];
|
|
687
|
-
};
|
|
688
|
-
};
|
|
689
|
-
readonly 'mobile: broadcast': {
|
|
690
|
-
readonly command: "mobileBroadcast";
|
|
691
|
-
readonly params: {
|
|
692
|
-
readonly optional: readonly ["receiverPermission", "allowBackgroundActivityStarts", "user", "intent", "action", "package", "uri", "mimeType", "identifier", "component", "categories", "extras", "flags"];
|
|
693
|
-
};
|
|
694
|
-
};
|
|
695
|
-
readonly 'mobile: getContexts': {
|
|
696
|
-
readonly command: "mobileGetContexts";
|
|
697
|
-
readonly params: {
|
|
698
|
-
readonly optional: readonly ["waitForWebviewMs"];
|
|
699
|
-
};
|
|
700
|
-
};
|
|
701
|
-
readonly 'mobile: getChromeCapabilities': {
|
|
702
|
-
readonly command: "mobileGetChromeCapabilities";
|
|
703
|
-
};
|
|
704
|
-
readonly 'mobile: lock': {
|
|
705
|
-
readonly command: "lock";
|
|
706
|
-
readonly params: {
|
|
707
|
-
readonly optional: readonly ["seconds"];
|
|
708
|
-
};
|
|
709
|
-
};
|
|
710
|
-
readonly 'mobile: unlock': {
|
|
711
|
-
readonly command: "mobileUnlock";
|
|
712
|
-
readonly params: {
|
|
713
|
-
readonly optional: readonly ["key", "type", "strategy", "timeoutMs"];
|
|
714
|
-
};
|
|
715
|
-
};
|
|
716
|
-
readonly 'mobile: isLocked': {
|
|
717
|
-
readonly command: "isLocked";
|
|
718
|
-
};
|
|
719
|
-
readonly 'mobile: refreshGpsCache': {
|
|
720
|
-
readonly command: "mobileRefreshGpsCache";
|
|
721
|
-
readonly params: {
|
|
722
|
-
readonly optional: readonly ["timeoutMs"];
|
|
723
|
-
};
|
|
724
|
-
};
|
|
725
|
-
readonly 'mobile: startMediaProjectionRecording': {
|
|
726
|
-
readonly command: "mobileStartMediaProjectionRecording";
|
|
727
|
-
readonly params: {
|
|
728
|
-
readonly optional: readonly ["resolution", "priority", "maxDurationSec", "filename"];
|
|
729
|
-
};
|
|
730
|
-
};
|
|
731
|
-
readonly 'mobile: isMediaProjectionRecordingRunning': {
|
|
732
|
-
readonly command: "mobileIsMediaProjectionRecordingRunning";
|
|
733
|
-
};
|
|
734
|
-
readonly 'mobile: stopMediaProjectionRecording': {
|
|
735
|
-
readonly command: "mobileStopMediaProjectionRecording";
|
|
736
|
-
readonly params: {
|
|
737
|
-
readonly optional: readonly ["remotePath", "user", "pass", "method", "headers", "fileFieldName", "formFields", "uploadTimeout"];
|
|
738
|
-
};
|
|
739
|
-
};
|
|
740
|
-
readonly 'mobile: getConnectivity': {
|
|
741
|
-
readonly command: "mobileGetConnectivity";
|
|
742
|
-
readonly params: {
|
|
743
|
-
readonly optional: readonly ["services"];
|
|
744
|
-
};
|
|
745
|
-
};
|
|
746
|
-
readonly 'mobile: setConnectivity': {
|
|
747
|
-
readonly command: "mobileSetConnectivity";
|
|
748
|
-
readonly params: {
|
|
749
|
-
readonly optional: readonly ["wifi", "data", "airplaneMode"];
|
|
750
|
-
};
|
|
751
|
-
};
|
|
752
|
-
readonly 'mobile: hideKeyboard': {
|
|
753
|
-
readonly command: "hideKeyboard";
|
|
754
|
-
};
|
|
755
|
-
readonly 'mobile: isKeyboardShown': {
|
|
756
|
-
readonly command: "isKeyboardShown";
|
|
757
|
-
};
|
|
758
|
-
readonly 'mobile: deviceidle': {
|
|
759
|
-
readonly command: "mobileDeviceidle";
|
|
760
|
-
readonly params: {
|
|
761
|
-
readonly required: readonly ["action"];
|
|
762
|
-
readonly optional: readonly ["packages"];
|
|
763
|
-
};
|
|
764
|
-
};
|
|
765
|
-
readonly 'mobile: bluetooth': {
|
|
766
|
-
readonly command: "mobileBluetooth";
|
|
767
|
-
readonly params: {
|
|
768
|
-
readonly required: readonly ["action"];
|
|
769
|
-
};
|
|
770
|
-
};
|
|
771
|
-
readonly 'mobile: nfc': {
|
|
772
|
-
readonly command: "mobileNfc";
|
|
773
|
-
readonly params: {
|
|
774
|
-
readonly required: readonly ["action"];
|
|
775
|
-
};
|
|
776
|
-
};
|
|
777
|
-
readonly 'mobile: setUiMode': {
|
|
778
|
-
readonly command: "mobileSetUiMode";
|
|
779
|
-
readonly params: {
|
|
780
|
-
readonly required: readonly ["mode", "value"];
|
|
781
|
-
};
|
|
782
|
-
};
|
|
783
|
-
readonly 'mobile: getUiMode': {
|
|
784
|
-
readonly command: "mobileGetUiMode";
|
|
785
|
-
readonly params: {
|
|
786
|
-
readonly required: readonly ["mode"];
|
|
787
|
-
};
|
|
788
|
-
};
|
|
789
|
-
readonly 'mobile: injectEmulatorCameraImage': {
|
|
790
|
-
readonly command: "mobileInjectEmulatorCameraImage";
|
|
791
|
-
readonly params: {
|
|
792
|
-
readonly required: readonly ["payload"];
|
|
793
|
-
};
|
|
794
|
-
};
|
|
795
|
-
readonly 'mobile: sendTrimMemory': {
|
|
796
|
-
readonly command: "mobileSendTrimMemory";
|
|
797
|
-
readonly params: {
|
|
798
|
-
readonly required: readonly ["pkg", "level"];
|
|
799
|
-
};
|
|
800
|
-
};
|
|
801
|
-
readonly 'mobile: getPerformanceData': {
|
|
802
|
-
readonly command: "mobileGetPerformanceData";
|
|
803
|
-
readonly params: {
|
|
804
|
-
readonly required: readonly ["packageName", "dataType"];
|
|
805
|
-
};
|
|
806
|
-
};
|
|
807
|
-
readonly 'mobile: getPerformanceDataTypes': {
|
|
808
|
-
readonly command: "getPerformanceDataTypes";
|
|
809
|
-
};
|
|
810
|
-
readonly 'mobile: toggleGps': {
|
|
811
|
-
readonly command: "toggleLocationServices";
|
|
812
|
-
};
|
|
813
|
-
readonly 'mobile: isGpsEnabled': {
|
|
814
|
-
readonly command: "isLocationServicesEnabled";
|
|
815
|
-
};
|
|
816
|
-
readonly 'mobile: getDisplayDensity': {
|
|
817
|
-
readonly command: "getDisplayDensity";
|
|
818
|
-
};
|
|
819
|
-
readonly 'mobile: getSystemBars': {
|
|
820
|
-
readonly command: "getSystemBars";
|
|
821
|
-
};
|
|
822
|
-
readonly 'mobile: statusBar': {
|
|
823
|
-
readonly command: "mobilePerformStatusBarCommand";
|
|
824
|
-
readonly params: {
|
|
825
|
-
readonly required: readonly ["command"];
|
|
826
|
-
readonly optional: readonly ["component"];
|
|
827
|
-
};
|
|
828
|
-
};
|
|
829
|
-
readonly 'mobile: fingerprint': {
|
|
830
|
-
readonly command: "mobileFingerprint";
|
|
831
|
-
readonly params: {
|
|
832
|
-
readonly required: readonly ["fingerprintId"];
|
|
833
|
-
};
|
|
834
|
-
};
|
|
835
|
-
readonly 'mobile: sendSms': {
|
|
836
|
-
readonly command: "mobileSendSms";
|
|
837
|
-
readonly params: {
|
|
838
|
-
readonly required: readonly ["phoneNumber", "message"];
|
|
839
|
-
};
|
|
840
|
-
};
|
|
841
|
-
readonly 'mobile: gsmCall': {
|
|
842
|
-
readonly command: "mobileGsmCall";
|
|
843
|
-
readonly params: {
|
|
844
|
-
readonly required: readonly ["phoneNumber", "action"];
|
|
845
|
-
};
|
|
846
|
-
};
|
|
847
|
-
readonly 'mobile: gsmSignal': {
|
|
848
|
-
readonly command: "mobileGsmSignal";
|
|
849
|
-
readonly params: {
|
|
850
|
-
readonly required: readonly ["strength"];
|
|
851
|
-
};
|
|
852
|
-
};
|
|
853
|
-
readonly 'mobile: gsmVoice': {
|
|
854
|
-
readonly command: "mobileGsmVoice";
|
|
855
|
-
readonly params: {
|
|
856
|
-
readonly required: readonly ["state"];
|
|
857
|
-
};
|
|
858
|
-
};
|
|
859
|
-
readonly 'mobile: powerAc': {
|
|
860
|
-
readonly command: "mobilePowerAc";
|
|
861
|
-
readonly params: {
|
|
862
|
-
readonly required: readonly ["state"];
|
|
863
|
-
};
|
|
864
|
-
};
|
|
865
|
-
readonly 'mobile: powerCapacity': {
|
|
866
|
-
readonly command: "mobilePowerCapacity";
|
|
867
|
-
readonly params: {
|
|
868
|
-
readonly required: readonly ["percent"];
|
|
869
|
-
};
|
|
870
|
-
};
|
|
871
|
-
readonly 'mobile: networkSpeed': {
|
|
872
|
-
readonly command: "mobileNetworkSpeed";
|
|
873
|
-
readonly params: {
|
|
874
|
-
readonly required: readonly ["speed"];
|
|
875
|
-
};
|
|
876
|
-
};
|
|
877
|
-
readonly 'mobile: sensorSet': {
|
|
878
|
-
readonly command: "sensorSet";
|
|
879
|
-
readonly params: {
|
|
880
|
-
readonly required: readonly ["sensorType", "value"];
|
|
881
|
-
};
|
|
882
|
-
};
|
|
883
|
-
readonly 'mobile: getCurrentActivity': {
|
|
884
|
-
readonly command: "getCurrentActivity";
|
|
885
|
-
};
|
|
886
|
-
readonly 'mobile: getCurrentPackage': {
|
|
887
|
-
readonly command: "getCurrentPackage";
|
|
888
|
-
};
|
|
889
|
-
readonly 'mobile: setGeolocation': {
|
|
890
|
-
readonly command: "mobileSetGeolocation";
|
|
891
|
-
readonly params: {
|
|
892
|
-
readonly required: readonly ["latitude", "longitude"];
|
|
893
|
-
readonly optional: readonly ["altitude", "satellites", "speed", "bearing", "accuracy"];
|
|
894
|
-
};
|
|
895
|
-
};
|
|
896
|
-
readonly 'mobile: getGeolocation': {
|
|
897
|
-
readonly command: "mobileGetGeolocation";
|
|
898
|
-
};
|
|
899
|
-
readonly 'mobile: resetGeolocation': {
|
|
900
|
-
readonly command: "mobileResetGeolocation";
|
|
901
|
-
};
|
|
902
|
-
readonly 'mobile: setStylusHandwriting': {
|
|
903
|
-
readonly command: "setStylusHandwriting";
|
|
904
|
-
readonly params: {
|
|
905
|
-
readonly required: readonly ["enabled"];
|
|
906
|
-
};
|
|
907
|
-
};
|
|
908
|
-
readonly 'mobile: getAppStrings': {
|
|
909
|
-
readonly command: "getStrings";
|
|
910
|
-
readonly params: {
|
|
911
|
-
readonly optional: readonly ["language"];
|
|
912
|
-
};
|
|
913
|
-
};
|
|
914
|
-
};
|
|
386
|
+
static executeMethodMap: typeof AndroidDriver.executeMethodMap;
|
|
387
|
+
_originalIme: string | null;
|
|
388
|
+
espresso: EspressoRunner;
|
|
389
|
+
wasAnimationEnabled?: boolean;
|
|
915
390
|
caps: EspressoDriverCaps;
|
|
916
391
|
opts: EspressoDriverOpts;
|
|
917
392
|
desiredCapConstraints: EspressoConstraints;
|
|
393
|
+
performActions: AndroidDriver["performActions"];
|
|
394
|
+
startActivity: typeof appManagementCmds.startActivity;
|
|
395
|
+
mobileStartActivity: AndroidDriver["mobileStartActivity"];
|
|
396
|
+
mobileWebAtoms: typeof contextCmds.mobileWebAtoms;
|
|
397
|
+
suspendChromedriverProxy: AndroidDriver["suspendChromedriverProxy"];
|
|
398
|
+
mobilePerformEditorAction: AndroidDriver["mobilePerformEditorAction"];
|
|
399
|
+
mobileSwipe: typeof elementCmds.mobileSwipe;
|
|
400
|
+
mobileOpenDrawer: typeof elementCmds.mobileOpenDrawer;
|
|
401
|
+
mobileCloseDrawer: typeof elementCmds.mobileCloseDrawer;
|
|
402
|
+
mobileSetDate: typeof elementCmds.mobileSetDate;
|
|
403
|
+
mobileSetTime: typeof elementCmds.mobileSetTime;
|
|
404
|
+
mobileNavigateTo: typeof elementCmds.mobileNavigateTo;
|
|
405
|
+
mobileScrollToPage: typeof elementCmds.mobileScrollToPage;
|
|
406
|
+
mobileFlashElement: typeof elementCmds.mobileFlashElement;
|
|
407
|
+
mobileClickAction: typeof elementCmds.mobileClickAction;
|
|
408
|
+
mobileDismissAutofill: typeof elementCmds.mobileDismissAutofill;
|
|
409
|
+
mobilePressKey: typeof miscCmds.mobilePressKey;
|
|
410
|
+
mobileGetDeviceInfo: typeof miscCmds.mobileGetDeviceInfo;
|
|
411
|
+
mobileIsToastVisible: typeof miscCmds.mobileIsToastVisible;
|
|
412
|
+
getDisplayDensity: AndroidDriver["getDisplayDensity"];
|
|
413
|
+
mobileBackdoor: typeof miscCmds.mobileBackdoor;
|
|
414
|
+
mobileUiautomator: typeof miscCmds.mobileUiautomator;
|
|
415
|
+
mobileUiautomatorPageSource: typeof miscCmds.mobileUiautomatorPageSource;
|
|
416
|
+
updateSettings: typeof miscCmds.updateSettings;
|
|
417
|
+
getSettings: typeof miscCmds.getSettings;
|
|
418
|
+
getClipboard: typeof clipboardCmds.getClipboard;
|
|
419
|
+
mobileGetClipboard: typeof clipboardCmds.getClipboard;
|
|
420
|
+
mobileSetClipboard: typeof clipboardCmds.mobileSetClipboard;
|
|
421
|
+
mobileStartService: AndroidDriver["mobileStartService"];
|
|
422
|
+
mobileStopService: AndroidDriver["mobileStopService"];
|
|
423
|
+
getScreenshot: typeof screenshotCmds.getScreenshot;
|
|
424
|
+
mobileScreenshots: typeof screenshotCmds.mobileScreenshots;
|
|
425
|
+
mobileRegisterIdlingResources: typeof idlingResourcesCmds.mobileRegisterIdlingResources;
|
|
426
|
+
mobileUnregisterIdlingResources: typeof idlingResourcesCmds.mobileUnregisterIdlingResources;
|
|
427
|
+
mobileListIdlingResources: typeof idlingResourcesCmds.mobileListIdlingResources;
|
|
428
|
+
mobileWaitForUIThread: typeof idlingResourcesCmds.mobileWaitForUIThread;
|
|
918
429
|
constructor(opts?: InitialOpts, shouldValidateCaps?: boolean);
|
|
430
|
+
get driverData(): {};
|
|
431
|
+
get appOnDevice(): boolean;
|
|
919
432
|
getSession(): Promise<SingularSessionData<EspressoConstraints>>;
|
|
920
433
|
getAppiumSessionCapabilities(): Promise<SessionCapabilities<EspressoConstraints>>;
|
|
921
434
|
createSession(w3cCaps1: W3CEspressoDriverCaps, w3cCaps2?: W3CEspressoDriverCaps, w3cCaps3?: W3CEspressoDriverCaps, driverData?: DriverData[]): Promise<any>;
|
|
@@ -935,7 +448,6 @@ export declare class EspressoDriver extends AndroidDriver implements ExternalDri
|
|
|
935
448
|
}): Promise<false | {
|
|
936
449
|
appPath: null;
|
|
937
450
|
}>;
|
|
938
|
-
get driverData(): {};
|
|
939
451
|
startEspressoSession(): Promise<void>;
|
|
940
452
|
/**
|
|
941
453
|
* Turn on or off animation scale.
|
|
@@ -954,43 +466,6 @@ export declare class EspressoDriver extends AndroidDriver implements ExternalDri
|
|
|
954
466
|
proxyActive(sessionId: any): boolean;
|
|
955
467
|
canProxy(sessionId: any): boolean;
|
|
956
468
|
getProxyAvoidList(sessionId: any): RouteMatcher[];
|
|
957
|
-
get appOnDevice(): boolean;
|
|
958
|
-
performActions: typeof actionsCmds.performActions;
|
|
959
|
-
startActivity: typeof appManagementCmds.startActivity;
|
|
960
|
-
mobileStartActivity: typeof appManagementCmds.mobileStartActivity;
|
|
961
|
-
mobileWebAtoms: typeof contextCmds.mobileWebAtoms;
|
|
962
|
-
suspendChromedriverProxy: typeof contextCmds.suspendChromedriverProxy;
|
|
963
|
-
mobilePerformEditorAction: typeof elementCmds.mobilePerformEditorAction;
|
|
964
|
-
mobileSwipe: typeof elementCmds.mobileSwipe;
|
|
965
|
-
mobileOpenDrawer: typeof elementCmds.mobileOpenDrawer;
|
|
966
|
-
mobileCloseDrawer: typeof elementCmds.mobileCloseDrawer;
|
|
967
|
-
mobileSetDate: typeof elementCmds.mobileSetDate;
|
|
968
|
-
mobileSetTime: typeof elementCmds.mobileSetTime;
|
|
969
|
-
mobileNavigateTo: typeof elementCmds.mobileNavigateTo;
|
|
970
|
-
mobileScrollToPage: typeof elementCmds.mobileScrollToPage;
|
|
971
|
-
mobileFlashElement: typeof elementCmds.mobileFlashElement;
|
|
972
|
-
mobileClickAction: typeof elementCmds.mobileClickAction;
|
|
973
|
-
mobileDismissAutofill: typeof elementCmds.mobileDismissAutofill;
|
|
974
|
-
mobilePressKey: typeof miscCmds.mobilePressKey;
|
|
975
|
-
mobileGetDeviceInfo: typeof miscCmds.mobileGetDeviceInfo;
|
|
976
|
-
mobileIsToastVisible: typeof miscCmds.mobileIsToastVisible;
|
|
977
|
-
getDisplayDensity: typeof miscCmds.getDisplayDensity;
|
|
978
|
-
mobileBackdoor: typeof miscCmds.mobileBackdoor;
|
|
979
|
-
mobileUiautomator: typeof miscCmds.mobileUiautomator;
|
|
980
|
-
mobileUiautomatorPageSource: typeof miscCmds.mobileUiautomatorPageSource;
|
|
981
|
-
updateSettings: typeof miscCmds.updateSettings;
|
|
982
|
-
getSettings: typeof miscCmds.getSettings;
|
|
983
|
-
getClipboard: typeof clipboardCmds.getClipboard;
|
|
984
|
-
mobileGetClipboard: typeof clipboardCmds.getClipboard;
|
|
985
|
-
mobileSetClipboard: typeof clipboardCmds.mobileSetClipboard;
|
|
986
|
-
mobileStartService: typeof servicesCmds.mobileStartService;
|
|
987
|
-
mobileStopService: typeof servicesCmds.mobileStopService;
|
|
988
|
-
getScreenshot: typeof screenshotCmds.getScreenshot;
|
|
989
|
-
mobileScreenshots: typeof screenshotCmds.mobileScreenshots;
|
|
990
|
-
mobileRegisterIdlingResources: typeof idlingResourcesCmds.mobileRegisterIdlingResources;
|
|
991
|
-
mobileUnregisterIdlingResources: typeof idlingResourcesCmds.mobileUnregisterIdlingResources;
|
|
992
|
-
mobileListIdlingResources: typeof idlingResourcesCmds.mobileListIdlingResources;
|
|
993
|
-
mobileWaitForUIThread: typeof idlingResourcesCmds.mobileWaitForUIThread;
|
|
994
469
|
}
|
|
995
470
|
export default EspressoDriver;
|
|
996
471
|
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -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,EACX,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAC,mBAAmB,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,EACX,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAC,mB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