appium-espresso-driver 2.25.8 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/build/index.js +7 -16
  3. package/build/lib/commands/execute.d.ts +11 -0
  4. package/build/lib/commands/execute.d.ts.map +1 -0
  5. package/build/lib/commands/execute.js +99 -96
  6. package/build/lib/commands/execute.js.map +1 -1
  7. package/build/lib/commands/general.d.ts +299 -0
  8. package/build/lib/commands/general.d.ts.map +1 -0
  9. package/build/lib/commands/general.js +386 -271
  10. package/build/lib/commands/general.js.map +1 -1
  11. package/build/lib/commands/idling-resources.d.ts +59 -0
  12. package/build/lib/commands/idling-resources.d.ts.map +1 -0
  13. package/build/lib/commands/idling-resources.js +49 -16
  14. package/build/lib/commands/idling-resources.js.map +1 -1
  15. package/build/lib/commands/screenshot.d.ts +46 -0
  16. package/build/lib/commands/screenshot.d.ts.map +1 -0
  17. package/build/lib/commands/screenshot.js +70 -50
  18. package/build/lib/commands/screenshot.js.map +1 -1
  19. package/build/lib/commands/services.d.ts +59 -0
  20. package/build/lib/commands/services.d.ts.map +1 -0
  21. package/build/lib/commands/services.js +41 -14
  22. package/build/lib/commands/services.js.map +1 -1
  23. package/build/lib/desired-caps.d.ts +313 -0
  24. package/build/lib/desired-caps.d.ts.map +1 -0
  25. package/build/lib/desired-caps.js +42 -61
  26. package/build/lib/desired-caps.js.map +1 -1
  27. package/build/lib/driver.d.ts +1060 -0
  28. package/build/lib/driver.d.ts.map +1 -0
  29. package/build/lib/driver.js +682 -433
  30. package/build/lib/driver.js.map +1 -1
  31. package/build/lib/espresso-runner.d.ts +60 -0
  32. package/build/lib/espresso-runner.d.ts.map +1 -0
  33. package/build/lib/espresso-runner.js +305 -269
  34. package/build/lib/espresso-runner.js.map +1 -1
  35. package/build/lib/logger.d.ts +3 -0
  36. package/build/lib/logger.d.ts.map +1 -0
  37. package/build/lib/logger.js +5 -11
  38. package/build/lib/logger.js.map +1 -1
  39. package/build/lib/method-map.d.ts +389 -0
  40. package/build/lib/method-map.d.ts.map +1 -0
  41. package/build/lib/method-map.js +11 -18
  42. package/build/lib/method-map.js.map +1 -1
  43. package/build/lib/server-builder.d.ts +32 -0
  44. package/build/lib/server-builder.d.ts.map +1 -0
  45. package/build/lib/server-builder.js +168 -141
  46. package/build/lib/server-builder.js.map +1 -1
  47. package/build/lib/utils.d.ts +32 -0
  48. package/build/lib/utils.d.ts.map +1 -0
  49. package/build/lib/utils.js +130 -98
  50. package/build/lib/utils.js.map +1 -1
  51. package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
  52. package/espresso-server/app/build.gradle.kts +4 -4
  53. package/lib/commands/execute.js +6 -0
  54. package/lib/commands/general.js +146 -52
  55. package/lib/commands/idling-resources.js +11 -5
  56. package/lib/commands/screenshot.js +4 -2
  57. package/lib/commands/services.js +16 -10
  58. package/lib/desired-caps.js +5 -21
  59. package/lib/driver.js +136 -47
  60. package/lib/espresso-runner.js +25 -0
  61. package/lib/server-builder.js +8 -1
  62. package/lib/utils.js +6 -4
  63. package/npm-shrinkwrap.json +460 -754
  64. package/package.json +35 -21
  65. package/build/lib/commands/index.js +0 -18
  66. package/build/lib/commands/index.js.map +0 -1
  67. package/espresso-server/gradle/wrapper/gradle-wrapper.jar +0 -0
  68. package/espresso-server/gradle/wrapper/gradle-wrapper.properties +0 -5
  69. package/lib/commands/index.js +0 -18
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## [2.26.0](https://github.com/appium/appium-espresso-driver/compare/v2.25.9...v2.26.0) (2023-10-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * Update android driver to v7 ([#920](https://github.com/appium/appium-espresso-driver/issues/920)) ([bcb9b6b](https://github.com/appium/appium-espresso-driver/commit/bcb9b6b917dd713bc255c15c3b6980c2264399b8))
7
+
8
+
9
+ ### Miscellaneous Chores
10
+
11
+ * **deps-dev:** bump semantic-release from 20.1.3 to 22.0.5 ([#916](https://github.com/appium/appium-espresso-driver/issues/916)) ([58be850](https://github.com/appium/appium-espresso-driver/commit/58be850d13c12726230b85c5085b038a1d9afa24))
12
+
13
+ ## [2.25.9](https://github.com/appium/appium-espresso-driver/compare/v2.25.8...v2.25.9) (2023-09-27)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * signingConfigs for test apk ([#918](https://github.com/appium/appium-espresso-driver/issues/918)) ([fcdd29f](https://github.com/appium/appium-espresso-driver/commit/fcdd29f11167a044c4c176f1f2fa709ac80db905))
19
+
1
20
  ## [2.25.8](https://github.com/appium/appium-espresso-driver/compare/v2.25.7...v2.25.8) (2023-09-24)
2
21
 
3
22
 
package/build/index.js CHANGED
@@ -1,17 +1,8 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "EspressoDriver", {
7
- enumerable: true,
8
- get: function () {
9
- return _driver.EspressoDriver;
10
- }
11
- });
12
- exports.default = void 0;
13
- require("source-map-support/register");
14
- var _driver = require("./lib/driver");
15
- var _default = _driver.EspressoDriver;
16
- exports.default = _default;
17
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfZHJpdmVyIiwicmVxdWlyZSIsIl9kZWZhdWx0IiwiRXNwcmVzc29Ecml2ZXIiLCJleHBvcnRzIiwiZGVmYXVsdCJdLCJzb3VyY2VzIjpbIi4uL2luZGV4LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHRyYW5zcGlsZTptYWluXG5pbXBvcnQgeyBFc3ByZXNzb0RyaXZlciB9IGZyb20gJy4vbGliL2RyaXZlcic7XG5cbmV4cG9ydCB7IEVzcHJlc3NvRHJpdmVyIH07XG5leHBvcnQgZGVmYXVsdCBFc3ByZXNzb0RyaXZlcjtcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUNBLElBQUFBLE9BQUEsR0FBQUMsT0FBQTtBQUE4QyxJQUFBQyxRQUFBLEdBRy9CQyxzQkFBYztBQUFBQyxPQUFBLENBQUFDLE9BQUEsR0FBQUgsUUFBQSJ9
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EspressoDriver = void 0;
4
+ // transpile:main
5
+ const driver_1 = require("./lib/driver");
6
+ Object.defineProperty(exports, "EspressoDriver", { enumerable: true, get: function () { return driver_1.EspressoDriver; } });
7
+ exports.default = driver_1.EspressoDriver;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,11 @@
1
+ export default extensions;
2
+ declare namespace extensions {
3
+ /**
4
+ * @this {import('../driver').EspressoDriver}
5
+ * @param {string} mobileCommand
6
+ * @param {Record<string, any>} [opts={}]
7
+ * @returns {Promise<any>}
8
+ */
9
+ function executeMobile(this: import("../driver").EspressoDriver, mobileCommand: string, opts?: Record<string, any> | undefined): Promise<any>;
10
+ }
11
+ //# sourceMappingURL=execute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../lib/commands/execute.js"],"names":[],"mappings":";;IAKA;;;;;OAKG;IACH,8IAsHC"}
@@ -1,100 +1,103 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- require("source-map-support/register");
9
- var _lodash = _interopRequireDefault(require("lodash"));
10
- var _driver = require("appium/driver");
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const lodash_1 = __importDefault(require("lodash"));
7
+ const driver_1 = require("appium/driver");
11
8
  const extensions = {};
9
+ /**
10
+ * @this {import('../driver').EspressoDriver}
11
+ * @param {string} mobileCommand
12
+ * @param {Record<string, any>} [opts={}]
13
+ * @returns {Promise<any>}
14
+ */
12
15
  extensions.executeMobile = async function executeMobile(mobileCommand, opts = {}) {
13
- const mobileCommandsMapping = {
14
- shell: 'mobileShell',
15
- execEmuConsoleCommand: 'mobileExecEmuConsoleCommand',
16
- performEditorAction: 'mobilePerformEditorAction',
17
- changePermissions: 'mobileChangePermissions',
18
- getPermissions: 'mobileGetPermissions',
19
- startScreenStreaming: 'mobileStartScreenStreaming',
20
- stopScreenStreaming: 'mobileStopScreenStreaming',
21
- swipe: 'mobileSwipe',
22
- scrollToPage: 'mobileScrollToPage',
23
- navigateTo: 'mobileNavigateTo',
24
- clickAction: 'mobileClickAction',
25
- deviceInfo: 'mobileGetDeviceInfo',
26
- isToastVisible: 'mobileIsToastVisible',
27
- openDrawer: 'mobileOpenDrawer',
28
- closeDrawer: 'mobileCloseDrawer',
29
- setDate: 'mobileSetDate',
30
- setTime: 'mobileSetTime',
31
- getDeviceTime: 'mobileGetDeviceTime',
32
- backdoor: 'mobileBackdoor',
33
- flashElement: 'mobileFlashElement',
34
- uiautomator: 'mobileUiautomator',
35
- uiautomatorPageSource: 'mobileUiautomatorPageSource',
36
- webAtoms: 'mobileWebAtoms',
37
- getContexts: 'mobileGetContexts',
38
- dismissAutofill: 'mobileDismissAutofill',
39
- getNotifications: 'mobileGetNotifications',
40
- listSms: 'mobileListSms',
41
- pushFile: 'mobilePushFile',
42
- pullFile: 'mobilePullFile',
43
- pullFolder: 'mobilePullFolder',
44
- deleteFile: 'mobileDeleteFile',
45
- isAppInstalled: 'mobileIsAppInstalled',
46
- queryAppState: 'mobileQueryAppState',
47
- activateApp: 'mobileActivateApp',
48
- removeApp: 'mobileRemoveApp',
49
- terminateApp: 'mobileTerminateApp',
50
- installApp: 'mobileInstallApp',
51
- clearApp: 'mobileClearApp',
52
- backgroundApp: 'mobileBackgroundApp',
53
- getCurrentActivity: 'getCurrentActivity',
54
- getCurrentPackage: 'getCurrentPackage',
55
- startActivity: 'mobileStartActivity',
56
- startService: 'mobileStartService',
57
- stopService: 'mobileStopService',
58
- broadcast: 'mobileBroadcast',
59
- registerIdlingResources: 'mobileRegisterIdlingResources',
60
- unregisterIdlingResources: 'mobileUnregisterIdlingResources',
61
- listIdlingResources: 'mobileListIdlingResources',
62
- waitForUIThread: 'mobileWaitForUIThread',
63
- lock: 'mobileLock',
64
- unlock: 'mobileUnlock',
65
- isLocked: 'isLocked',
66
- refreshGpsCache: 'mobileRefreshGpsCache',
67
- startMediaProjectionRecording: 'mobileStartMediaProjectionRecording',
68
- isMediaProjectionRecordingRunning: 'mobileIsMediaProjectionRecordingRunning',
69
- stopMediaProjectionRecording: 'mobileStopMediaProjectionRecording',
70
- getConnectivity: 'mobileGetConnectivity',
71
- setConnectivity: 'mobileSetConnectivity',
72
- toggleGps: 'toggleLocationServices',
73
- isGpsEnables: 'isLocationServicesEnabled',
74
- pressKey: 'mobilePressKey',
75
- hideKeyboard: 'hideKeyboard',
76
- isKeyboardShown: 'isKeyboardShown',
77
- getDisplayDensity: 'getDisplayDensity',
78
- getSystemBars: 'getSystemBars',
79
- fingerprint: 'mobileFingerprint',
80
- sendSms: 'mobileSendSms',
81
- gsmCall: 'mobileGsmCall',
82
- gsmSignal: 'mobileGsmSignal',
83
- gsmVoice: 'mobileGsmVoice',
84
- powerAc: 'mobilePowerAC',
85
- powerCapacity: 'mobilePowerCapacity',
86
- networkSpeed: 'mobileNetworkSpeed',
87
- sensorSet: 'sensorSet',
88
- getPerformanceData: 'mobileGetPerformanceData',
89
- getPerformanceDataTypes: 'getPerformanceDataTypes',
90
- statusBar: 'mobilePerformStatusBarCommand',
91
- screenshots: 'mobileScreenshots'
92
- };
93
- if (!_lodash.default.has(mobileCommandsMapping, mobileCommand)) {
94
- throw new _driver.errors.UnknownCommandError(`Unknown mobile command "${mobileCommand}". ` + `Only ${_lodash.default.keys(mobileCommandsMapping)} commands are supported.`);
95
- }
96
- return await this[mobileCommandsMapping[mobileCommand]](opts);
16
+ const mobileCommandsMapping = {
17
+ shell: 'mobileShell',
18
+ execEmuConsoleCommand: 'mobileExecEmuConsoleCommand',
19
+ performEditorAction: 'mobilePerformEditorAction',
20
+ changePermissions: 'mobileChangePermissions',
21
+ getPermissions: 'mobileGetPermissions',
22
+ startScreenStreaming: 'mobileStartScreenStreaming',
23
+ stopScreenStreaming: 'mobileStopScreenStreaming',
24
+ swipe: 'mobileSwipe',
25
+ scrollToPage: 'mobileScrollToPage',
26
+ navigateTo: 'mobileNavigateTo',
27
+ clickAction: 'mobileClickAction',
28
+ deviceInfo: 'mobileGetDeviceInfo',
29
+ isToastVisible: 'mobileIsToastVisible',
30
+ openDrawer: 'mobileOpenDrawer',
31
+ closeDrawer: 'mobileCloseDrawer',
32
+ setDate: 'mobileSetDate',
33
+ setTime: 'mobileSetTime',
34
+ getDeviceTime: 'mobileGetDeviceTime',
35
+ backdoor: 'mobileBackdoor',
36
+ flashElement: 'mobileFlashElement',
37
+ uiautomator: 'mobileUiautomator',
38
+ uiautomatorPageSource: 'mobileUiautomatorPageSource',
39
+ webAtoms: 'mobileWebAtoms',
40
+ getContexts: 'mobileGetContexts',
41
+ dismissAutofill: 'mobileDismissAutofill',
42
+ getNotifications: 'mobileGetNotifications',
43
+ listSms: 'mobileListSms',
44
+ pushFile: 'mobilePushFile',
45
+ pullFile: 'mobilePullFile',
46
+ pullFolder: 'mobilePullFolder',
47
+ deleteFile: 'mobileDeleteFile',
48
+ isAppInstalled: 'mobileIsAppInstalled',
49
+ queryAppState: 'mobileQueryAppState',
50
+ activateApp: 'mobileActivateApp',
51
+ removeApp: 'mobileRemoveApp',
52
+ terminateApp: 'mobileTerminateApp',
53
+ installApp: 'mobileInstallApp',
54
+ clearApp: 'mobileClearApp',
55
+ backgroundApp: 'mobileBackgroundApp',
56
+ getCurrentActivity: 'getCurrentActivity',
57
+ getCurrentPackage: 'getCurrentPackage',
58
+ startActivity: 'mobileStartActivity',
59
+ startService: 'mobileStartService',
60
+ stopService: 'mobileStopService',
61
+ broadcast: 'mobileBroadcast',
62
+ registerIdlingResources: 'mobileRegisterIdlingResources',
63
+ unregisterIdlingResources: 'mobileUnregisterIdlingResources',
64
+ listIdlingResources: 'mobileListIdlingResources',
65
+ waitForUIThread: 'mobileWaitForUIThread',
66
+ lock: 'mobileLock',
67
+ unlock: 'mobileUnlock',
68
+ isLocked: 'isLocked',
69
+ refreshGpsCache: 'mobileRefreshGpsCache',
70
+ startMediaProjectionRecording: 'mobileStartMediaProjectionRecording',
71
+ isMediaProjectionRecordingRunning: 'mobileIsMediaProjectionRecordingRunning',
72
+ stopMediaProjectionRecording: 'mobileStopMediaProjectionRecording',
73
+ getConnectivity: 'mobileGetConnectivity',
74
+ setConnectivity: 'mobileSetConnectivity',
75
+ toggleGps: 'toggleLocationServices',
76
+ isGpsEnables: 'isLocationServicesEnabled',
77
+ pressKey: 'mobilePressKey',
78
+ hideKeyboard: 'hideKeyboard',
79
+ isKeyboardShown: 'isKeyboardShown',
80
+ getDisplayDensity: 'getDisplayDensity',
81
+ getSystemBars: 'getSystemBars',
82
+ fingerprint: 'mobileFingerprint',
83
+ sendSms: 'mobileSendSms',
84
+ gsmCall: 'mobileGsmCall',
85
+ gsmSignal: 'mobileGsmSignal',
86
+ gsmVoice: 'mobileGsmVoice',
87
+ powerAc: 'mobilePowerAC',
88
+ powerCapacity: 'mobilePowerCapacity',
89
+ networkSpeed: 'mobileNetworkSpeed',
90
+ sensorSet: 'sensorSet',
91
+ getPerformanceData: 'mobileGetPerformanceData',
92
+ getPerformanceDataTypes: 'getPerformanceDataTypes',
93
+ statusBar: 'mobilePerformStatusBarCommand',
94
+ screenshots: 'mobileScreenshots',
95
+ };
96
+ if (!lodash_1.default.has(mobileCommandsMapping, mobileCommand)) {
97
+ throw new driver_1.errors.UnknownCommandError(`Unknown mobile command "${mobileCommand}". ` +
98
+ `Only ${lodash_1.default.keys(mobileCommandsMapping)} commands are supported.`);
99
+ }
100
+ return await this[mobileCommandsMapping[mobileCommand]](opts);
97
101
  };
98
- var _default = extensions;
99
- exports.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ourceMappingURL=execute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"execute.js","names":["_lodash","_interopRequireDefault","require","_driver","extensions","executeMobile","mobileCommand","opts","mobileCommandsMapping","shell","execEmuConsoleCommand","performEditorAction","changePermissions","getPermissions","startScreenStreaming","stopScreenStreaming","swipe","scrollToPage","navigateTo","clickAction","deviceInfo","isToastVisible","openDrawer","closeDrawer","setDate","setTime","getDeviceTime","backdoor","flashElement","uiautomator","uiautomatorPageSource","webAtoms","getContexts","dismissAutofill","getNotifications","listSms","pushFile","pullFile","pullFolder","deleteFile","isAppInstalled","queryAppState","activateApp","removeApp","terminateApp","installApp","clearApp","backgroundApp","getCurrentActivity","getCurrentPackage","startActivity","startService","stopService","broadcast","registerIdlingResources","unregisterIdlingResources","listIdlingResources","waitForUIThread","lock","unlock","isLocked","refreshGpsCache","startMediaProjectionRecording","isMediaProjectionRecordingRunning","stopMediaProjectionRecording","getConnectivity","setConnectivity","toggleGps","isGpsEnables","pressKey","hideKeyboard","isKeyboardShown","getDisplayDensity","getSystemBars","fingerprint","sendSms","gsmCall","gsmSignal","gsmVoice","powerAc","powerCapacity","networkSpeed","sensorSet","getPerformanceData","getPerformanceDataTypes","statusBar","screenshots","_","has","errors","UnknownCommandError","keys","_default","exports","default"],"sources":["../../../lib/commands/execute.js"],"sourcesContent":["import _ from 'lodash';\nimport { errors } from 'appium/driver';\n\nconst extensions = {};\n\nextensions.executeMobile = async function executeMobile (mobileCommand, opts = {}) {\n const mobileCommandsMapping = {\n shell: 'mobileShell',\n\n execEmuConsoleCommand: 'mobileExecEmuConsoleCommand',\n\n performEditorAction: 'mobilePerformEditorAction',\n\n changePermissions: 'mobileChangePermissions',\n getPermissions: 'mobileGetPermissions',\n\n startScreenStreaming: 'mobileStartScreenStreaming',\n stopScreenStreaming: 'mobileStopScreenStreaming',\n\n swipe: 'mobileSwipe',\n scrollToPage: 'mobileScrollToPage',\n navigateTo: 'mobileNavigateTo',\n clickAction: 'mobileClickAction',\n\n deviceInfo: 'mobileGetDeviceInfo',\n\n isToastVisible: 'mobileIsToastVisible',\n\n openDrawer: 'mobileOpenDrawer',\n closeDrawer: 'mobileCloseDrawer',\n\n setDate: 'mobileSetDate',\n setTime: 'mobileSetTime',\n\n getDeviceTime: 'mobileGetDeviceTime',\n\n backdoor: 'mobileBackdoor',\n\n flashElement: 'mobileFlashElement',\n\n uiautomator: 'mobileUiautomator',\n uiautomatorPageSource: 'mobileUiautomatorPageSource',\n\n webAtoms: 'mobileWebAtoms',\n getContexts: 'mobileGetContexts',\n\n dismissAutofill: 'mobileDismissAutofill',\n\n getNotifications: 'mobileGetNotifications',\n\n listSms: 'mobileListSms',\n\n pushFile: 'mobilePushFile',\n pullFile: 'mobilePullFile',\n pullFolder: 'mobilePullFolder',\n deleteFile: 'mobileDeleteFile',\n\n isAppInstalled: 'mobileIsAppInstalled',\n queryAppState: 'mobileQueryAppState',\n activateApp: 'mobileActivateApp',\n removeApp: 'mobileRemoveApp',\n terminateApp: 'mobileTerminateApp',\n installApp: 'mobileInstallApp',\n clearApp: 'mobileClearApp',\n backgroundApp: 'mobileBackgroundApp',\n getCurrentActivity: 'getCurrentActivity',\n getCurrentPackage: 'getCurrentPackage',\n\n startActivity: 'mobileStartActivity',\n startService: 'mobileStartService',\n stopService: 'mobileStopService',\n broadcast: 'mobileBroadcast',\n\n registerIdlingResources: 'mobileRegisterIdlingResources',\n unregisterIdlingResources: 'mobileUnregisterIdlingResources',\n listIdlingResources: 'mobileListIdlingResources',\n waitForUIThread: 'mobileWaitForUIThread',\n\n lock: 'mobileLock',\n unlock: 'mobileUnlock',\n isLocked: 'isLocked',\n\n refreshGpsCache: 'mobileRefreshGpsCache',\n\n startMediaProjectionRecording: 'mobileStartMediaProjectionRecording',\n isMediaProjectionRecordingRunning: 'mobileIsMediaProjectionRecordingRunning',\n stopMediaProjectionRecording: 'mobileStopMediaProjectionRecording',\n\n getConnectivity: 'mobileGetConnectivity',\n setConnectivity: 'mobileSetConnectivity',\n toggleGps: 'toggleLocationServices',\n isGpsEnables: 'isLocationServicesEnabled',\n\n pressKey: 'mobilePressKey',\n hideKeyboard: 'hideKeyboard',\n isKeyboardShown: 'isKeyboardShown',\n\n getDisplayDensity: 'getDisplayDensity',\n getSystemBars: 'getSystemBars',\n fingerprint: 'mobileFingerprint',\n\n sendSms: 'mobileSendSms',\n gsmCall: 'mobileGsmCall',\n gsmSignal: 'mobileGsmSignal',\n gsmVoice: 'mobileGsmVoice',\n powerAc: 'mobilePowerAC',\n powerCapacity: 'mobilePowerCapacity',\n networkSpeed: 'mobileNetworkSpeed',\n sensorSet: 'sensorSet',\n\n getPerformanceData: 'mobileGetPerformanceData',\n getPerformanceDataTypes: 'getPerformanceDataTypes',\n\n statusBar: 'mobilePerformStatusBarCommand',\n\n screenshots: 'mobileScreenshots',\n };\n\n if (!_.has(mobileCommandsMapping, mobileCommand)) {\n throw new errors.UnknownCommandError(`Unknown mobile command \"${mobileCommand}\". ` +\n `Only ${_.keys(mobileCommandsMapping)} commands are supported.`);\n }\n return await this[mobileCommandsMapping[mobileCommand]](opts);\n};\n\nexport default extensions;\n"],"mappings":";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEA,MAAME,UAAU,GAAG,CAAC,CAAC;AAErBA,UAAU,CAACC,aAAa,GAAG,eAAeA,aAAaA,CAAEC,aAAa,EAAEC,IAAI,GAAG,CAAC,CAAC,EAAE;EACjF,MAAMC,qBAAqB,GAAG;IAC5BC,KAAK,EAAE,aAAa;IAEpBC,qBAAqB,EAAE,6BAA6B;IAEpDC,mBAAmB,EAAE,2BAA2B;IAEhDC,iBAAiB,EAAE,yBAAyB;IAC5CC,cAAc,EAAE,sBAAsB;IAEtCC,oBAAoB,EAAE,4BAA4B;IAClDC,mBAAmB,EAAE,2BAA2B;IAEhDC,KAAK,EAAE,aAAa;IACpBC,YAAY,EAAE,oBAAoB;IAClCC,UAAU,EAAE,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C,qBAAqB,CAAC,0BAA0B,CAAC,CAAC;KACpE;IACD,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -0,0 +1,299 @@
1
+ export default commands;
2
+ export type PerformEditorActionOpts = {
3
+ action: string | number;
4
+ };
5
+ export type PressKeyOptions = {
6
+ /**
7
+ * A valid Android key code. See https://developer.android.com/reference/android/view/KeyEvent
8
+ * for the list of available key codes
9
+ */
10
+ keycode?: number | undefined;
11
+ /**
12
+ * An integer in which each bit set to 1 represents a pressed meta key. See
13
+ * https://developer.android.com/reference/android/view/KeyEvent for more details.
14
+ */
15
+ metastate?: number | undefined;
16
+ /**
17
+ * Flags for the particular key event. See
18
+ * https://developer.android.com/reference/android/view/KeyEvent for more details.
19
+ */
20
+ flags?: number | undefined;
21
+ /**
22
+ * [false] Whether to emulate long key press
23
+ */
24
+ isLongPress?: boolean | undefined;
25
+ };
26
+ export type BackgroundAppOptions = {
27
+ /**
28
+ * The amount of seconds to wait between putting the app to background and restoring it.
29
+ * Any negative value means to not restore the app after putting it to the background (the default behavior).
30
+ */
31
+ seconds?: number | undefined;
32
+ };
33
+ export type DeviceInfo = {
34
+ apiVersion: string;
35
+ platformVersion: string;
36
+ manufacturer: string;
37
+ model: string;
38
+ realDisplaySize: string;
39
+ displayDensity: string;
40
+ };
41
+ export type SettingsOptions = {
42
+ /**
43
+ * Settings parameters that is available in
44
+ * https://github.com/appium/appium-espresso-driver#settings-api or enabled plugins.
45
+ */
46
+ Object: string | number | boolean;
47
+ };
48
+ export type StartActivityOptions = {
49
+ appActivity: string;
50
+ locale?: string | undefined;
51
+ optionalIntentArguments?: string | undefined;
52
+ optionalActivityArguments?: string | undefined;
53
+ };
54
+ export namespace commands {
55
+ /**
56
+ * @this {import('../driver').EspressoDriver}
57
+ */
58
+ function launchApp(this: import("../driver").EspressoDriver): Promise<never>;
59
+ /**
60
+ * @this {import('../driver').EspressoDriver}
61
+ */
62
+ function closeApp(this: import("../driver").EspressoDriver): Promise<never>;
63
+ /**
64
+ * @this {import('../driver').EspressoDriver}
65
+ */
66
+ function reset(this: import("../driver").EspressoDriver): Promise<never>;
67
+ /**
68
+ * @this {import('../driver').EspressoDriver}
69
+ */
70
+ function getClipboard(this: import("../driver").EspressoDriver): Promise<unknown>;
71
+ /**
72
+ * @typedef {Object} PerformEditorActionOpts
73
+ * @property {string|number} action
74
+ */
75
+ /**
76
+ * @this {import('../driver').EspressoDriver}
77
+ * @param {PerformEditorActionOpts} opts
78
+ * @returns {Promise<void>}
79
+ */
80
+ function mobilePerformEditorAction(this: import("../driver").EspressoDriver, opts: PerformEditorActionOpts): Promise<void>;
81
+ /**
82
+ * @this {import('../driver').EspressoDriver}
83
+ */
84
+ function mobileSwipe(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
85
+ /**
86
+ * @typedef {Object} PressKeyOptions
87
+ * @property {number} [keycode] A valid Android key code. See https://developer.android.com/reference/android/view/KeyEvent
88
+ * for the list of available key codes
89
+ * @property {number} [metastate] An integer in which each bit set to 1 represents a pressed meta key. See
90
+ * https://developer.android.com/reference/android/view/KeyEvent for more details.
91
+ * @property {number} [flags] Flags for the particular key event. See
92
+ * https://developer.android.com/reference/android/view/KeyEvent for more details.
93
+ * @property {boolean} [isLongPress] [false] Whether to emulate long key press
94
+ */
95
+ /**
96
+ * Emulates key press event.
97
+ *
98
+ * @this {import('../driver').EspressoDriver}
99
+ * @param {PressKeyOptions} [opts={}]
100
+ */
101
+ function mobilePressKey(this: import("../driver").EspressoDriver, opts?: PressKeyOptions | undefined): Promise<void>;
102
+ /**
103
+ * @typedef {Object} BackgroundAppOptions
104
+ * @property {number} [seconds] The amount of seconds to wait between putting the app to background and restoring it.
105
+ * Any negative value means to not restore the app after putting it to the background (the default behavior).
106
+ */
107
+ /**
108
+ * Puts the app under test to the background
109
+ * and then restores it (if needed). The call is blocking is the
110
+ * app needs to be restored afterwards.
111
+ *
112
+ * @this {import('../driver').EspressoDriver}
113
+ * @param {BackgroundAppOptions} [opts={}]
114
+ */
115
+ function mobileBackgroundApp(this: import("../driver").EspressoDriver, opts?: BackgroundAppOptions | undefined): Promise<string | true>;
116
+ /**
117
+ * @typedef {Object} DeviceInfo
118
+ * @property {string} apiVersion
119
+ * @property {string} platformVersion
120
+ * @property {string} manufacturer
121
+ * @property {string} model
122
+ * @property {string} realDisplaySize
123
+ * @property {string} displayDensity
124
+ */
125
+ /**
126
+ * @this {import('../driver').EspressoDriver}
127
+ * @returns {Promise<DeviceInfo>}
128
+ */
129
+ function mobileGetDeviceInfo(this: import("../driver").EspressoDriver): Promise<DeviceInfo>;
130
+ /**
131
+ * @this {import('../driver').EspressoDriver}
132
+ */
133
+ function mobileIsToastVisible(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
134
+ /**
135
+ * @this {import('../driver').EspressoDriver}
136
+ */
137
+ function mobileOpenDrawer(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
138
+ /**
139
+ * @this {import('../driver').EspressoDriver}
140
+ */
141
+ function mobileCloseDrawer(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
142
+ /**
143
+ * @this {import('../driver').EspressoDriver}
144
+ */
145
+ function mobileSetDate(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
146
+ /**
147
+ * @this {import('../driver').EspressoDriver}
148
+ */
149
+ function mobileSetTime(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
150
+ /**
151
+ * @this {import('../driver').EspressoDriver}
152
+ */
153
+ function mobileNavigateTo(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
154
+ /**
155
+ * Runs a chain of Espresso web atoms (see https://developer.android.com/training/testing/espresso/web for reference)
156
+ *
157
+ * Takes JSON of the form
158
+ *
159
+ * {
160
+ * "webviewEl": "<ELEMENT_ID>", // optional webview element to operate on
161
+ * "forceJavascriptEnabled": true|false, // if webview disables javascript, webatoms won't work, this forces it
162
+ * "methodChain": [
163
+ * {"name": "methodName", "atom": {"name": "atomName", "args": ["arg1", "arg2", ...]}},
164
+ * ...
165
+ * ]
166
+ * }
167
+ * @this {import('../driver').EspressoDriver}
168
+ */
169
+ function mobileWebAtoms(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
170
+ /**
171
+ * @this {import('../driver').EspressoDriver}
172
+ * @returns {Promise<number>}
173
+ */
174
+ function getDisplayDensity(this: import("../driver").EspressoDriver): Promise<number>;
175
+ /**
176
+ *
177
+ * @this {import('../driver').EspressoDriver}
178
+ */
179
+ function mobileScrollToPage(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
180
+ /**
181
+ * API to invoke methods defined in Android app.
182
+ *
183
+ * Example data
184
+ * {
185
+ * target: 'activity',
186
+ * methods:
187
+ * [
188
+ * {
189
+ * name: "someMethod",
190
+ * },
191
+ * {
192
+ * name: "anotherMethod",
193
+ * args:
194
+ * [
195
+ * {value: "Lol", type: 'java.lang.CharSequence'},
196
+ * {value: 1, type: 'int'}
197
+ * ]
198
+ * }
199
+ * ]
200
+ * }
201
+ *
202
+ * In above example, method "someMethod" will be invoked on 'activity'. On the result, "anotherMethod" will be invoked
203
+ * "target" can be either 'activity', 'application' or 'element'
204
+ * If target is set to 'application', methods will be invoked on application class
205
+ * If target is set to 'activity', methods will be invoked on current activity
206
+ * If target is set to 'element', 'elementId' must be specified
207
+ *
208
+ * - Only 'Public' methods can be invoked. ('open' modifire is necessary in Kotlin)
209
+ * - following primitive types are supported: "int", "boolean", "byte", "short", "long", "float", "char"
210
+ * - Non-primitive types with fully qualified name "java.lang.*" is also supported:
211
+ * Eg. "java.lang.CharSequence", "java.lang.String", "java.lang.Integer", "java.lang.Float",
212
+ * "java.lang.Double", "java.lang.Boolean", "java.lang.Long", "java.lang.Short",
213
+ * "java.lang.Character" etc...
214
+ *
215
+ *
216
+ * @throws {Error} if target is not 'activity' or 'application'
217
+ * @throws {Error} if a method is not found with given argument types
218
+ * @this {import('../driver').EspressoDriver}
219
+ * @return {Promise<any>} the result of the last method in the invocation chain. If method return type is void, then "<VOID>" will be returned
220
+ *
221
+ */
222
+ function mobileBackdoor(this: import("../driver").EspressoDriver, opts?: {}): Promise<any>;
223
+ /**
224
+ * Execute UiAutomator2 commands to drive out of app areas.
225
+ * strategy can be one of: "clazz", "res", "text", "textContains", "textEndsWith", "textStartsWith",
226
+ * "desc", "descContains", "descEndsWith", "descStartsWith", "pkg"
227
+ *
228
+ * action can be one of: "click", "longClick", "getText", "getContentDescription", "getClassName",
229
+ * "getResourceName", "getVisibleBounds", "getVisibleCenter", "getApplicationPackage",
230
+ * "getChildCount", "clear", "isCheckable", "isChecked", "isClickable", "isEnabled",
231
+ * "isFocusable", "isFocused", "isLongClickable", "isScrollable", "isSelected"
232
+ * @this {import('../driver').EspressoDriver}
233
+ */
234
+ function mobileUiautomator(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
235
+ /**
236
+ * Execute UiAutomator2 command to return the UI dump when AUT is in background.
237
+ * @this {import('../driver').EspressoDriver}
238
+ * @throws {Error} if uiautomator view dump is unsuccessful
239
+ * @returns {Promise<string>} uiautomator DOM xml as string
240
+ */
241
+ function mobileUiautomatorPageSource(this: import("../driver").EspressoDriver): Promise<string>;
242
+ /**
243
+ * Flash the element with given id.
244
+ * durationMillis and repeatCount are optional
245
+ * @this {import('../driver').EspressoDriver}
246
+ */
247
+ function mobileFlashElement(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
248
+ /**
249
+ * Perform a 'GeneralClickAction' (https://developer.android.com/reference/androidx/test/espresso/action/GeneralClickAction)
250
+ * @this {import('../driver').EspressoDriver}
251
+ */
252
+ function mobileClickAction(this: import("../driver").EspressoDriver, opts?: {}): Promise<unknown>;
253
+ /**
254
+ * @typedef {Object} SettingsOptions
255
+ * @property {!string|number|boolean} Object Settings parameters that is available in
256
+ * https://github.com/appium/appium-espresso-driver#settings-api or enabled plugins.
257
+ */
258
+ /**
259
+ * Apply the given settings to the espresso driver and the espresso server.
260
+ * Errors by the espresso server will be printed as log, but it does not return an error message.
261
+ * @param {SettingsOptions} settings
262
+ * @this {import('../driver').EspressoDriver}
263
+ */
264
+ function updateSettings(this: import("../driver").EspressoDriver, settings: SettingsOptions): Promise<void>;
265
+ /**
266
+ * @this {import('../driver').EspressoDriver}
267
+ */
268
+ function getSettings(this: import("../driver").EspressoDriver): Promise<{}>;
269
+ /**
270
+ * @typedef {Object} StartActivityOptions
271
+ * @property {string} appActivity
272
+ * @property {string} [locale]
273
+ * @property {string} [optionalIntentArguments]
274
+ * @property {string} [optionalActivityArguments]
275
+ */
276
+ /**
277
+ * Starts the given activity with intent options, activity options and locale.
278
+ * Activity could only be executed in scope of the current app package.
279
+ *
280
+ * @this {import('../driver').EspressoDriver}
281
+ * @param {StartActivityOptions} opts
282
+ * @returns {Promise<string>}
283
+ */
284
+ function mobileStartActivity(this: import("../driver").EspressoDriver, opts: StartActivityOptions): Promise<string>;
285
+ /**
286
+ *
287
+ * @this {import('../driver').EspressoDriver}
288
+ * @param {string} appPackage
289
+ * @param {string} appActivity
290
+ * @param {string} appWaitPackage
291
+ * @param {string} appWaitActivity
292
+ */
293
+ function startActivity(this: import("../driver").EspressoDriver, appPackage: string, appActivity: string, appWaitPackage: string, appWaitActivity: string): Promise<void>;
294
+ /**
295
+ * @this {import('../driver').EspressoDriver}
296
+ */
297
+ function mobileDismissAutofill(this: import("../driver").EspressoDriver, opts?: {}): Promise<void>;
298
+ }
299
+ //# sourceMappingURL=general.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../lib/commands/general.js"],"names":[],"mappings":";;YA0Dc,MAAM,GAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAoEb,MAAM;qBACN,MAAM;kBACN,MAAM;WACN,MAAM;qBACN,MAAM;oBACN,MAAM;;;;;;;YA4QL,MAAM,GAAC,MAAM,GAAC,OAAO;;;iBAgCtB,MAAM;;;;;;IA1ZpB;;OAEG;IAEH,6EAEC;IAED;;OAEG;IAEH,4EAEC;IAED;;OAEG;IAEH,yEAIC;IAED;;OAEG;IACH,kFAIC;IAED;;;OAGG;IAEH;;;;OAIG;IACH,2HAGC;IAED;;OAEG;IACH,4FAKC;IAED;;;;;;;;;OASG;IAEH;;;;;OAKG;IACH,qHAKC;IAED;;;;OAIG;IAEH;;;;;;;OAOG;IACH,wIAGC;IAED;;;;;;;;OAQG;IAEH;;;OAGG;IACH,4FAEC;IAED;;OAEG;IACH,qGASC;IAED;;OAEG;IACH,iGAMC;IAED;;OAEG;IACH,kGAMC;IAED;;OAEG;IACH,8FAQC;IAED;;OAEG;IACH,8FAOC;IAED;;OAEG;IACH,iGAWC;IAED;;;;;;;;;;;;;;OAcG;IACH,+FAGC;IAED;;;OAGG;IACH,sFAIC;IAED;;;OAGG;IACH,mGAmCC;IAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,2FAQC;IAED;;;;;;;;;;OAUG;IACH,kGAGC;IAED;;;;;OAKG;IACH,gGAIC;IAED;;;;OAIG;IACH,mGAOC;IAED;;;OAGG;IACH,kGAMC;IAED;;;;OAIG;IAEH;;;;;OAKG;IACH,4GAOC;IAED;;OAEG;IACH,4EAMC;IAED;;;;;;OAMG;IAEH;;;;;;;OAOG;IACH,oHAeC;IAED;;;;;;;OAOG;IACH,0KAkBC;IAED;;OAEG;IACH,mGAIC"}