appium-uiautomator2-driver 2.29.11 → 2.30.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 (135) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/index.d.ts +4 -0
  3. package/build/index.d.ts.map +1 -0
  4. package/build/index.js +8 -15
  5. package/build/index.js.map +1 -0
  6. package/build/lib/commands/actions.d.ts +2 -0
  7. package/build/lib/commands/actions.d.ts.map +1 -0
  8. package/build/lib/commands/actions.js +67 -62
  9. package/build/lib/commands/actions.js.map +1 -1
  10. package/build/lib/commands/alert.d.ts +2 -0
  11. package/build/lib/commands/alert.d.ts.map +1 -0
  12. package/build/lib/commands/alert.js +28 -26
  13. package/build/lib/commands/alert.js.map +1 -1
  14. package/build/lib/commands/app-strings.d.ts +3 -0
  15. package/build/lib/commands/app-strings.d.ts.map +1 -0
  16. package/build/lib/commands/app-strings.js +86 -57
  17. package/build/lib/commands/app-strings.js.map +1 -1
  18. package/build/lib/commands/battery.d.ts +2 -0
  19. package/build/lib/commands/battery.d.ts.map +1 -0
  20. package/build/lib/commands/battery.js +26 -16
  21. package/build/lib/commands/battery.js.map +1 -1
  22. package/build/lib/commands/element.d.ts +2 -0
  23. package/build/lib/commands/element.d.ts.map +1 -0
  24. package/build/lib/commands/element.js +140 -159
  25. package/build/lib/commands/element.js.map +1 -1
  26. package/build/lib/commands/find.d.ts +2 -0
  27. package/build/lib/commands/find.d.ts.map +1 -0
  28. package/build/lib/commands/find.js +39 -25
  29. package/build/lib/commands/find.js.map +1 -1
  30. package/build/lib/commands/general.d.ts +4 -0
  31. package/build/lib/commands/general.d.ts.map +1 -0
  32. package/build/lib/commands/general.js +217 -215
  33. package/build/lib/commands/general.js.map +1 -1
  34. package/build/lib/commands/gestures.d.ts +2 -0
  35. package/build/lib/commands/gestures.d.ts.map +1 -0
  36. package/build/lib/commands/gestures.js +206 -193
  37. package/build/lib/commands/gestures.js.map +1 -1
  38. package/build/lib/commands/index.d.ts +2 -0
  39. package/build/lib/commands/index.d.ts.map +1 -0
  40. package/build/lib/commands/index.js +13 -22
  41. package/build/lib/commands/index.js.map +1 -1
  42. package/build/lib/commands/mixins.d.ts +84 -0
  43. package/build/lib/commands/mixins.d.ts.map +1 -0
  44. package/build/lib/commands/mixins.js +23 -0
  45. package/build/lib/commands/mixins.js.map +1 -0
  46. package/build/lib/commands/screenshot.d.ts +2 -0
  47. package/build/lib/commands/screenshot.d.ts.map +1 -0
  48. package/build/lib/commands/screenshot.js +77 -62
  49. package/build/lib/commands/screenshot.js.map +1 -1
  50. package/build/lib/commands/touch.d.ts +2 -0
  51. package/build/lib/commands/touch.d.ts.map +1 -0
  52. package/build/lib/commands/touch.js +48 -38
  53. package/build/lib/commands/touch.js.map +1 -1
  54. package/build/lib/commands/types.d.ts +452 -0
  55. package/build/lib/commands/types.d.ts.map +1 -0
  56. package/build/lib/commands/types.js +3 -0
  57. package/build/lib/commands/types.js.map +1 -0
  58. package/build/lib/commands/viewport.d.ts +2 -0
  59. package/build/lib/commands/viewport.d.ts.map +1 -0
  60. package/build/lib/commands/viewport.js +37 -35
  61. package/build/lib/commands/viewport.js.map +1 -1
  62. package/build/lib/constraints.d.ts +334 -0
  63. package/build/lib/constraints.d.ts.map +1 -0
  64. package/build/lib/constraints.js +51 -0
  65. package/build/lib/constraints.js.map +1 -0
  66. package/build/lib/css-converter.d.ts +45 -0
  67. package/build/lib/css-converter.d.ts.map +1 -0
  68. package/build/lib/css-converter.js +272 -175
  69. package/build/lib/css-converter.js.map +1 -1
  70. package/build/lib/driver.d.ts +912 -0
  71. package/build/lib/driver.d.ts.map +1 -0
  72. package/build/lib/driver.js +738 -482
  73. package/build/lib/driver.js.map +1 -1
  74. package/build/lib/execute-method-map.d.ts +477 -0
  75. package/build/lib/execute-method-map.d.ts.map +1 -0
  76. package/build/lib/execute-method-map.js +542 -0
  77. package/build/lib/execute-method-map.js.map +1 -0
  78. package/build/lib/extensions.d.ts +3 -0
  79. package/build/lib/extensions.d.ts.map +1 -0
  80. package/build/lib/extensions.js +7 -9
  81. package/build/lib/extensions.js.map +1 -1
  82. package/build/lib/helpers.d.ts +7 -0
  83. package/build/lib/helpers.d.ts.map +1 -0
  84. package/build/lib/helpers.js +36 -29
  85. package/build/lib/helpers.js.map +1 -1
  86. package/build/lib/logger.d.ts +3 -0
  87. package/build/lib/logger.d.ts.map +1 -0
  88. package/build/lib/logger.js +5 -10
  89. package/build/lib/logger.js.map +1 -1
  90. package/build/lib/method-map.d.ts +389 -0
  91. package/build/lib/method-map.d.ts.map +1 -0
  92. package/build/lib/method-map.js +11 -17
  93. package/build/lib/method-map.js.map +1 -1
  94. package/build/lib/types.d.ts +45 -0
  95. package/build/lib/types.d.ts.map +1 -0
  96. package/build/lib/types.js +3 -0
  97. package/build/lib/types.js.map +1 -0
  98. package/build/lib/uiautomator2.d.ts +45 -0
  99. package/build/lib/uiautomator2.d.ts.map +1 -0
  100. package/build/lib/uiautomator2.js +340 -299
  101. package/build/lib/uiautomator2.js.map +1 -1
  102. package/build/lib/utils.d.ts +10 -0
  103. package/build/lib/utils.d.ts.map +1 -0
  104. package/build/lib/utils.js +23 -16
  105. package/build/lib/utils.js.map +1 -1
  106. package/build/tsconfig.tsbuildinfo +1 -0
  107. package/index.js +5 -3
  108. package/lib/commands/actions.js +115 -101
  109. package/lib/commands/alert.js +36 -44
  110. package/lib/commands/app-strings.js +79 -58
  111. package/lib/commands/battery.js +27 -28
  112. package/lib/commands/element.js +231 -134
  113. package/lib/commands/find.js +40 -21
  114. package/lib/commands/general.js +271 -336
  115. package/lib/commands/gestures.js +252 -366
  116. package/lib/commands/index.js +11 -31
  117. package/lib/commands/mixins.ts +167 -0
  118. package/lib/commands/screenshot.js +80 -76
  119. package/lib/commands/touch.js +64 -31
  120. package/lib/commands/types.ts +473 -0
  121. package/lib/commands/viewport.js +43 -31
  122. package/lib/constraints.ts +53 -0
  123. package/lib/css-converter.js +9 -1
  124. package/lib/{driver.js → driver.ts} +383 -225
  125. package/lib/execute-method-map.ts +573 -0
  126. package/lib/method-map.ts +11 -0
  127. package/lib/types.ts +59 -0
  128. package/lib/uiautomator2.js +21 -2
  129. package/lib/utils.js +2 -2
  130. package/npm-shrinkwrap.json +363 -492
  131. package/package.json +95 -69
  132. package/build/lib/desired-caps.js +0 -71
  133. package/build/lib/desired-caps.js.map +0 -1
  134. package/lib/desired-caps.js +0 -70
  135. package/lib/method-map.js +0 -11
@@ -1,38 +1,45 @@
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 _path = _interopRequireDefault(require("path"));
10
- var _support = require("appium/support");
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 path_1 = __importDefault(require("path"));
7
+ const support_1 = require("appium/support");
11
8
  let helpers = {};
12
9
  helpers.ensureInternetPermissionForApp = async function (adb, app) {
13
- let has = await adb.hasInternetPermissionFromManifest(app);
14
- if (has) {
15
- return;
16
- }
17
- let msg = 'Your apk does not have INTERNET permissions. Uiautomator2 needs ' + 'the internet permission to proceed. Please check if you have ' + '<uses-permission android:name="android.**permission.INTERNET"/>' + 'in your AndroidManifest.xml';
18
- throw new Error(msg);
10
+ let has = await adb.hasInternetPermissionFromManifest(app);
11
+ if (has) {
12
+ return;
13
+ }
14
+ let msg = 'Your apk does not have INTERNET permissions. Uiautomator2 needs ' +
15
+ 'the internet permission to proceed. Please check if you have ' +
16
+ '<uses-permission android:name="android.**permission.INTERNET"/>' +
17
+ 'in your AndroidManifest.xml';
18
+ throw new Error(msg);
19
19
  };
20
20
  helpers.isWriteable = async function isWriteable(filePath) {
21
- try {
22
- await _support.fs.access(filePath, _support.fs.W_OK);
23
- if (_support.system.isWindows()) {
24
- await _support.fs.close(await _support.fs.open(filePath, 'r+'));
21
+ try {
22
+ await support_1.fs.access(filePath, support_1.fs.W_OK);
23
+ if (support_1.system.isWindows()) {
24
+ // On operating systems, where access-control policies may
25
+ // limit access to the file system, `fs.access` does not work
26
+ // as expected. See https://groups.google.com/forum/#!topic/nodejs/qmZtIwDRSYo
27
+ // for more details
28
+ await support_1.fs.close(await support_1.fs.open(filePath, 'r+'));
29
+ }
30
+ return true;
31
+ }
32
+ catch (ign) {
33
+ return false;
25
34
  }
26
- return true;
27
- } catch (ign) {
28
- return false;
29
- }
30
35
  };
31
36
  helpers.signApp = async function (adb, appPath) {
32
- if (!(await this.isWriteable(appPath))) {
33
- throw new Error(`The application at '${appPath}' is not writeable. ` + `Please grant write permissions to this file or to its parent folder '${_path.default.dirname(appPath)}' ` + `for the Appium process, so it could sign the application`);
34
- }
35
- await adb.sign(appPath);
37
+ if (!await this.isWriteable(appPath)) {
38
+ throw new Error(`The application at '${appPath}' is not writeable. ` +
39
+ `Please grant write permissions to this file or to its parent folder '${path_1.default.dirname(appPath)}' ` +
40
+ `for the Appium process, so it could sign the application`);
41
+ }
42
+ await adb.sign(appPath);
36
43
  };
37
- var _default = exports.default = helpers;
38
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcGF0aCIsIl9pbnRlcm9wUmVxdWlyZURlZmF1bHQiLCJyZXF1aXJlIiwiX3N1cHBvcnQiLCJoZWxwZXJzIiwiZW5zdXJlSW50ZXJuZXRQZXJtaXNzaW9uRm9yQXBwIiwiYWRiIiwiYXBwIiwiaGFzIiwiaGFzSW50ZXJuZXRQZXJtaXNzaW9uRnJvbU1hbmlmZXN0IiwibXNnIiwiRXJyb3IiLCJpc1dyaXRlYWJsZSIsImZpbGVQYXRoIiwiZnMiLCJhY2Nlc3MiLCJXX09LIiwic3lzdGVtIiwiaXNXaW5kb3dzIiwiY2xvc2UiLCJvcGVuIiwiaWduIiwic2lnbk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oQixHQUFHLEVBQUVpQixPQUFPLEVBQUU7RUFDOUMsSUFBSSxFQUFDLE1BQU0sSUFBSSxDQUFDWCxXQUFXLENBQUNXLE9BQU8sQ0FBQyxHQUFFO0lBQ3BDLE1BQU0sSUFBSVosS0FBSyxDQUFFLHVCQUFzQlksT0FBUSxzQkFBcUIsR0FDakUsd0VBQXVFQyxhQUFJLENBQUNDLE9BQU8sQ0FBQ0YsT0FBTyxDQUFFLElBQUcsR0FDaEcsMERBQXlELENBQUM7RUFDL0Q7RUFDQSxNQUFNakIsR0FBRyxDQUFDb0IsSUFBSSxDQUFDSCxPQUFPLENBQUM7QUFDekIsQ0FBQztBQUFDLElBQUFJLFFBQUEsR0FBQUMsT0FBQSxDQUFBQyxPQUFBLEdBRWF6QixPQUFPIn0=
44
+ exports.default = helpers;
45
+ //# sourceMappingURL=helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.js","names":["_path","_interopRequireDefault","require","_support","helpers","ensureInternetPermissionForApp","adb","app","has","hasInternetPermissionFromManifest","msg","Error","isWriteable","filePath","fs","access","W_OK","system","isWindows","close","open","ign","signApp","appPath","path","dirname","sign","_default","exports","default"],"sources":["../../lib/helpers.js"],"sourcesContent":["import path from 'path';\nimport { fs, system } from 'appium/support';\n\n\nlet helpers = {};\n\nhelpers.ensureInternetPermissionForApp = async function (adb, app) {\n let has = await adb.hasInternetPermissionFromManifest(app);\n if (has) {\n return;\n }\n let msg = 'Your apk does not have INTERNET permissions. Uiautomator2 needs ' +\n 'the internet permission to proceed. Please check if you have ' +\n '<uses-permission android:name=\"android.**permission.INTERNET\"/>' +\n 'in your AndroidManifest.xml';\n throw new Error(msg);\n};\n\nhelpers.isWriteable = async function isWriteable (filePath) {\n try {\n await fs.access(filePath, fs.W_OK);\n if (system.isWindows()) {\n // On operating systems, where access-control policies may\n // limit access to the file system, `fs.access` does not work\n // as expected. See https://groups.google.com/forum/#!topic/nodejs/qmZtIwDRSYo\n // for more details\n await fs.close(await fs.open(filePath, 'r+'));\n }\n return true;\n } catch (ign) {\n return false;\n }\n};\n\nhelpers.signApp = async function (adb, appPath) {\n if (!await this.isWriteable(appPath)) {\n throw new Error(`The application at '${appPath}' is not writeable. ` +\n `Please grant write permissions to this file or to its parent folder '${path.dirname(appPath)}' ` +\n `for the Appium process, so it could sign the application`);\n }\n await adb.sign(appPath);\n};\n\nexport default helpers;\n"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAGA,IAAIE,OAAO,GAAG,CAAC,CAAC;AAEhBA,OAAO,CAACC,8BAA8B,GAAG,gBAAgBC,GAAG,EAAEC,GAAG,EAAE;EACjE,IAAIC,GAAG,GAAG,MAAMF,GAAG,CAACG,iCAAiC,CAACF,GAAG,CAAC;EAC1D,IAAIC,GAAG,EAAE;IACP;EACF;EACA,IAAIE,GAAG,GAAG,kEAAkE,GAClE,+DAA+D,GAC/D,iEAAiE,GACjE,6BAA6B;EACvC,MAAM,IAAIC,KAAK,CAACD,GAAG,CAAC;AACtB,CAAC;AAEDN,OAAO,CAACQ,WAAW,GAAG,eAAeA,WAAWA,CAAEC,QAAQ,EAAE;EAC1D,IAAI;IACF,MAAMC,WAAE,CAACC,MAAM,CAACF,QAAQ,EAAEC,WAAE,CAACE,IAAI,CAAC;IAClC,IAAIC,eAAM,CAACC,SAAS,CAAC,CAAC,EAAE;MAKtB,MAAMJ,WAAE,CAACK,KAAK,CAAC,MAAML,WAAE,CAACM,IAAI,CAACP,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC/C;IACA,OAAO,IAAI;EACb,CAAC,CAAC,OAAOQ,GAAG,EAAE;IACZ,OAAO,KAAK;EACd;AACF,CAAC;AAEDjB,OAAO,CAACkB,OAAO,GAAG,gBAAgBhB,GAAG,EAAEiB,OAAO,EAAE;EAC9C,IAAI,EAAC,MAAM,IAAI,CAACX,WAAW,CAACW,OAAO,CAAC,GAAE;IACpC,MAA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AAG,EAAE,OAAO;IAC5C,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE;QACpC,MAAM,IAAI,KAAK,CAAC,uBAAuB,OAAO,sBAAsB;YAClE,wEAAwE,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;YACjG,0DAA0D,CAAC,CAAC;KAC/D;IACD,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC1B,CAAC,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export default log;
2
+ declare const log: import("@appium/types").AppiumLogger;
3
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../lib/logger.js"],"names":[],"mappings":";AAGA,wDAA6C"}
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- require("source-map-support/register");
8
- var _support = require("appium/support");
9
- const log = _support.logger.getLogger('UiAutomator2');
10
- var _default = exports.default = log;
11
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfc3VwcG9ydCIsInJlcXVpcmUiLCJsb2ciLCJsb2dnZXIiLCJnZXRMb2dnZXIiLCJfZGVmYXVsdCIsImV4cG9ydHMiLCJkZWZhdWx0Il0sInNvdXJjZXMiOlsiLi4vLi4vbGliL2xvZ2dlci5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBsb2dnZXIgfSBmcm9tICdhcHBpdW0vc3VwcG9ydCc7XG5cblxuY29uc3QgbG9nID0gbG9nZ2VyLmdldExvZ2dlcignVWlBdXRvbWF0b3IyJyk7XG5cbmV4cG9ydCBkZWZhdWx0IGxvZztcbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLElBQUFBLFFBQUEsR0FBQUMsT0FBQTtBQUdBLE1BQU1DLEdBQUcsR0FBR0MsZUFBTSxDQUFDQyxTQUFTLENBQUMsY0FBYyxDQUFDO0FBQUMsSUFBQUMsUUFBQSxHQUFBQyxPQUFBLENBQUFDLE9BQUEsR0FFOUJMLEdBQUcifQ==
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const support_1 = require("appium/support");
4
+ const log = support_1.logger.getLogger('UiAutomator2');
5
+ exports.default = log;
6
+ //# sourceMappingURL=logger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","names":["_support","require","log","logger","getLogger","_default","exports","default"],"sources":["../../lib/logger.js"],"sourcesContent":["import { logger } from 'appium/support';\n\n\nconst log = logger.getLogger('UiAutomator2');\n\nexport default log;\n"],"mappings":";;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAGA,MAAMC,GAAG,GAAGC,eAAM,CAACC,SAAS,CAAC,cAAc,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE9BL,GAAG"}
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../lib/logger.js"],"names":[],"mappings":";;AAAA,4CAAwC;AAGxC,MAAM,GAAG,GAAG,gBAAM,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;AAE7C,kBAAe,GAAG,CAAC"}
@@ -0,0 +1,389 @@
1
+ export declare const newMethodMap: {
2
+ readonly '/session/:sessionId/appium/device/get_clipboard': {
3
+ readonly POST: {
4
+ readonly command: "getClipboard";
5
+ readonly payloadParams: {
6
+ readonly optional: readonly ["contentType"];
7
+ };
8
+ };
9
+ };
10
+ readonly '/session/:sessionId/timeouts/implicit_wait': {
11
+ readonly POST: {
12
+ readonly command: "implicitWait";
13
+ readonly payloadParams: {
14
+ readonly required: readonly ["ms"];
15
+ };
16
+ };
17
+ };
18
+ readonly '/session/:sessionId/ime/available_engines': {
19
+ readonly GET: {
20
+ readonly command: "availableIMEEngines";
21
+ };
22
+ };
23
+ readonly '/session/:sessionId/ime/active_engine': {
24
+ readonly GET: {
25
+ readonly command: "getActiveIMEEngine";
26
+ };
27
+ };
28
+ readonly '/session/:sessionId/ime/activated': {
29
+ readonly GET: {
30
+ readonly command: "isIMEActivated";
31
+ };
32
+ };
33
+ readonly '/session/:sessionId/ime/deactivate': {
34
+ readonly POST: {
35
+ readonly command: "deactivateIMEEngine";
36
+ };
37
+ };
38
+ readonly '/session/:sessionId/ime/activate': {
39
+ readonly POST: {
40
+ readonly command: "activateIMEEngine";
41
+ readonly payloadParams: {
42
+ readonly required: readonly ["engine"];
43
+ };
44
+ };
45
+ };
46
+ readonly '/session/:sessionId/window/:windowhandle/size': {
47
+ readonly GET: {
48
+ readonly command: "getWindowSize";
49
+ };
50
+ };
51
+ readonly '/session/:sessionId/keys': {
52
+ readonly POST: {
53
+ readonly command: "keys";
54
+ readonly payloadParams: {
55
+ readonly required: readonly ["value"];
56
+ };
57
+ };
58
+ };
59
+ readonly '/session/:sessionId/element/:elementId/location': {
60
+ readonly GET: {
61
+ readonly command: "getLocation";
62
+ };
63
+ };
64
+ readonly '/session/:sessionId/element/:elementId/location_in_view': {
65
+ readonly GET: {
66
+ readonly command: "getLocationInView";
67
+ };
68
+ };
69
+ readonly '/session/:sessionId/element/:elementId/size': {
70
+ readonly GET: {
71
+ readonly command: "getSize";
72
+ };
73
+ };
74
+ readonly '/session/:sessionId/touch/click': {
75
+ readonly POST: {
76
+ readonly command: "click";
77
+ readonly payloadParams: {
78
+ readonly required: readonly ["element"];
79
+ };
80
+ };
81
+ };
82
+ readonly '/session/:sessionId/touch/down': {
83
+ readonly POST: {
84
+ readonly command: "touchDown";
85
+ readonly payloadParams: {
86
+ readonly required: readonly ["x", "y"];
87
+ };
88
+ };
89
+ };
90
+ readonly '/session/:sessionId/touch/up': {
91
+ readonly POST: {
92
+ readonly command: "touchUp";
93
+ readonly payloadParams: {
94
+ readonly required: readonly ["x", "y"];
95
+ };
96
+ };
97
+ };
98
+ readonly '/session/:sessionId/touch/move': {
99
+ readonly POST: {
100
+ readonly command: "touchMove";
101
+ readonly payloadParams: {
102
+ readonly required: readonly ["x", "y"];
103
+ };
104
+ };
105
+ };
106
+ readonly '/session/:sessionId/touch/longclick': {
107
+ readonly POST: {
108
+ readonly command: "touchLongClick";
109
+ readonly payloadParams: {
110
+ readonly required: readonly ["elements"];
111
+ };
112
+ };
113
+ };
114
+ readonly '/session/:sessionId/touch/flick': {
115
+ readonly POST: {
116
+ readonly command: "flick";
117
+ readonly payloadParams: {
118
+ readonly optional: readonly ["element", "xspeed", "yspeed", "xoffset", "yoffset", "speed"];
119
+ };
120
+ };
121
+ };
122
+ readonly '/session/:sessionId/touch/perform': {
123
+ readonly POST: {
124
+ readonly command: "performTouch";
125
+ readonly payloadParams: {
126
+ readonly wrap: "actions";
127
+ readonly required: readonly ["actions"];
128
+ };
129
+ };
130
+ };
131
+ readonly '/session/:sessionId/touch/multi/perform': {
132
+ readonly POST: {
133
+ readonly command: "performMultiAction";
134
+ readonly payloadParams: {
135
+ readonly required: readonly ["actions"];
136
+ readonly optional: readonly ["elementId"];
137
+ };
138
+ };
139
+ };
140
+ readonly '/session/:sessionId/appium/device/lock': {
141
+ readonly POST: {
142
+ readonly command: "lock";
143
+ readonly payloadParams: {
144
+ readonly optional: readonly ["seconds"];
145
+ };
146
+ };
147
+ };
148
+ readonly '/session/:sessionId/appium/device/unlock': {
149
+ readonly POST: {
150
+ readonly command: "unlock";
151
+ };
152
+ };
153
+ readonly '/session/:sessionId/appium/device/is_locked': {
154
+ readonly POST: {
155
+ readonly command: "isLocked";
156
+ };
157
+ };
158
+ readonly '/session/:sessionId/appium/start_recording_screen': {
159
+ readonly POST: {
160
+ readonly command: "startRecordingScreen";
161
+ readonly payloadParams: {
162
+ readonly optional: readonly ["options"];
163
+ };
164
+ };
165
+ };
166
+ readonly '/session/:sessionId/appium/stop_recording_screen': {
167
+ readonly POST: {
168
+ readonly command: "stopRecordingScreen";
169
+ readonly payloadParams: {
170
+ readonly optional: readonly ["options"];
171
+ };
172
+ };
173
+ };
174
+ readonly '/session/:sessionId/appium/performanceData/types': {
175
+ readonly POST: {
176
+ readonly command: "getPerformanceDataTypes";
177
+ };
178
+ };
179
+ readonly '/session/:sessionId/appium/getPerformanceData': {
180
+ readonly POST: {
181
+ readonly command: "getPerformanceData";
182
+ readonly payloadParams: {
183
+ readonly required: readonly ["packageName", "dataType"];
184
+ readonly optional: readonly ["dataReadTimeout"];
185
+ };
186
+ };
187
+ };
188
+ readonly '/session/:sessionId/appium/device/press_keycode': {
189
+ readonly POST: {
190
+ readonly command: "pressKeyCode";
191
+ readonly payloadParams: {
192
+ readonly required: readonly ["keycode"];
193
+ readonly optional: readonly ["metastate", "flags"];
194
+ };
195
+ };
196
+ };
197
+ readonly '/session/:sessionId/appium/device/long_press_keycode': {
198
+ readonly POST: {
199
+ readonly command: "longPressKeyCode";
200
+ readonly payloadParams: {
201
+ readonly required: readonly ["keycode"];
202
+ readonly optional: readonly ["metastate", "flags"];
203
+ };
204
+ };
205
+ };
206
+ readonly '/session/:sessionId/appium/device/finger_print': {
207
+ readonly POST: {
208
+ readonly command: "fingerprint";
209
+ readonly payloadParams: {
210
+ readonly required: readonly ["fingerprintId"];
211
+ };
212
+ };
213
+ };
214
+ readonly '/session/:sessionId/appium/device/send_sms': {
215
+ readonly POST: {
216
+ readonly command: "sendSMS";
217
+ readonly payloadParams: {
218
+ readonly required: readonly ["phoneNumber", "message"];
219
+ };
220
+ };
221
+ };
222
+ readonly '/session/:sessionId/appium/device/gsm_call': {
223
+ readonly POST: {
224
+ readonly command: "gsmCall";
225
+ readonly payloadParams: {
226
+ readonly required: readonly ["phoneNumber", "action"];
227
+ };
228
+ };
229
+ };
230
+ readonly '/session/:sessionId/appium/device/gsm_signal': {
231
+ readonly POST: {
232
+ readonly command: "gsmSignal";
233
+ readonly payloadParams: {
234
+ readonly required: readonly ["signalStrength"];
235
+ };
236
+ };
237
+ };
238
+ readonly '/session/:sessionId/appium/device/gsm_voice': {
239
+ readonly POST: {
240
+ readonly command: "gsmVoice";
241
+ readonly payloadParams: {
242
+ readonly required: readonly ["state"];
243
+ };
244
+ };
245
+ };
246
+ readonly '/session/:sessionId/appium/device/power_capacity': {
247
+ readonly POST: {
248
+ readonly command: "powerCapacity";
249
+ readonly payloadParams: {
250
+ readonly required: readonly ["percent"];
251
+ };
252
+ };
253
+ };
254
+ readonly '/session/:sessionId/appium/device/power_ac': {
255
+ readonly POST: {
256
+ readonly command: "powerAC";
257
+ readonly payloadParams: {
258
+ readonly required: readonly ["state"];
259
+ };
260
+ };
261
+ };
262
+ readonly '/session/:sessionId/appium/device/network_speed': {
263
+ readonly POST: {
264
+ readonly command: "networkSpeed";
265
+ readonly payloadParams: {
266
+ readonly required: readonly ["netspeed"];
267
+ };
268
+ };
269
+ };
270
+ readonly '/session/:sessionId/appium/device/keyevent': {
271
+ readonly POST: {
272
+ readonly command: "keyevent";
273
+ readonly payloadParams: {
274
+ readonly required: readonly ["keycode"];
275
+ readonly optional: readonly ["metastate"];
276
+ };
277
+ };
278
+ };
279
+ readonly '/session/:sessionId/appium/device/current_activity': {
280
+ readonly GET: {
281
+ readonly command: "getCurrentActivity";
282
+ };
283
+ };
284
+ readonly '/session/:sessionId/appium/device/current_package': {
285
+ readonly GET: {
286
+ readonly command: "getCurrentPackage";
287
+ };
288
+ };
289
+ readonly '/session/:sessionId/appium/device/app_state': {
290
+ readonly POST: {
291
+ readonly command: "queryAppState";
292
+ readonly payloadParams: {
293
+ readonly required: readonly [readonly ["appId"], readonly ["bundleId"]];
294
+ };
295
+ };
296
+ };
297
+ readonly '/session/:sessionId/appium/device/toggle_airplane_mode': {
298
+ readonly POST: {
299
+ readonly command: "toggleFlightMode";
300
+ };
301
+ };
302
+ readonly '/session/:sessionId/appium/device/toggle_data': {
303
+ readonly POST: {
304
+ readonly command: "toggleData";
305
+ };
306
+ };
307
+ readonly '/session/:sessionId/appium/device/toggle_wifi': {
308
+ readonly POST: {
309
+ readonly command: "toggleWiFi";
310
+ };
311
+ };
312
+ readonly '/session/:sessionId/appium/device/toggle_location_services': {
313
+ readonly POST: {
314
+ readonly command: "toggleLocationServices";
315
+ };
316
+ };
317
+ readonly '/session/:sessionId/appium/device/open_notifications': {
318
+ readonly POST: {
319
+ readonly command: "openNotifications";
320
+ };
321
+ };
322
+ readonly '/session/:sessionId/appium/device/start_activity': {
323
+ readonly POST: {
324
+ readonly command: "startActivity";
325
+ readonly payloadParams: {
326
+ readonly required: readonly ["appPackage", "appActivity"];
327
+ readonly optional: readonly ["appWaitPackage", "appWaitActivity", "intentAction", "intentCategory", "intentFlags", "optionalIntentArguments", "dontStopAppOnReset"];
328
+ };
329
+ };
330
+ };
331
+ readonly '/session/:sessionId/appium/device/system_bars': {
332
+ readonly GET: {
333
+ readonly command: "getSystemBars";
334
+ };
335
+ };
336
+ readonly '/session/:sessionId/appium/device/display_density': {
337
+ readonly GET: {
338
+ readonly command: "getDisplayDensity";
339
+ };
340
+ };
341
+ readonly '/session/:sessionId/appium/app/launch': {
342
+ readonly POST: {
343
+ readonly command: "launchApp";
344
+ };
345
+ };
346
+ readonly '/session/:sessionId/appium/app/close': {
347
+ readonly POST: {
348
+ readonly command: "closeApp";
349
+ };
350
+ };
351
+ readonly '/session/:sessionId/appium/app/reset': {
352
+ readonly POST: {
353
+ readonly command: "reset";
354
+ };
355
+ };
356
+ readonly '/session/:sessionId/appium/app/background': {
357
+ readonly POST: {
358
+ readonly command: "background";
359
+ readonly payloadParams: {
360
+ readonly required: readonly ["seconds"];
361
+ };
362
+ };
363
+ };
364
+ readonly '/session/:sessionId/appium/app/strings': {
365
+ readonly POST: {
366
+ readonly command: "getStrings";
367
+ readonly payloadParams: {
368
+ readonly optional: readonly ["language", "stringFile"];
369
+ };
370
+ };
371
+ };
372
+ readonly '/session/:sessionId/appium/element/:elementId/value': {
373
+ readonly POST: {
374
+ readonly command: "setValueImmediate";
375
+ readonly payloadParams: {
376
+ readonly required: readonly ["text"];
377
+ };
378
+ };
379
+ };
380
+ readonly '/session/:sessionId/appium/element/:elementId/replace_value': {
381
+ readonly POST: {
382
+ readonly command: "replaceValue";
383
+ readonly payloadParams: {
384
+ readonly required: readonly ["text"];
385
+ };
386
+ };
387
+ };
388
+ };
389
+ //# sourceMappingURL=method-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method-map.d.ts","sourceRoot":"","sources":["../../lib/method-map.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQf,CAAC"}
@@ -1,20 +1,14 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.newMethodMap = void 0;
7
- require("source-map-support/register");
8
- var _appiumAndroidDriver = require("appium-android-driver");
9
- const newMethodMap = exports.newMethodMap = {
10
- ..._appiumAndroidDriver.AndroidDriver.newMethodMap,
11
- '/session/:sessionId/appium/device/get_clipboard': {
12
- POST: {
13
- command: 'getClipboard',
14
- payloadParams: {
15
- optional: ['contentType']
16
- }
17
- }
18
- }
4
+ const appium_android_driver_1 = require("appium-android-driver");
5
+ exports.newMethodMap = {
6
+ ...appium_android_driver_1.AndroidDriver.newMethodMap,
7
+ '/session/:sessionId/appium/device/get_clipboard': {
8
+ POST: {
9
+ command: 'getClipboard',
10
+ payloadParams: { optional: ['contentType'] },
11
+ },
12
+ },
19
13
  };
20
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfYXBwaXVtQW5kcm9pZERyaXZlciIsInJlcXVpcmUiLCJuZXdNZXRob2RNYXAiLCJleHBvcnRzIiwiQW5kcm9pZERyaXZlciIsIlBPU1QiLCJjb21tYW5kIiwicGF5bG9hZFBhcmFtcyIsIm9wdGlvbmFsIl0sInNvdXJjZXMiOlsiLi4vLi4vbGliL21ldGhvZC1tYXAuanMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQW5kcm9pZERyaXZlciB9IGZyb20gJ2FwcGl1bS1hbmRyb2lkLWRyaXZlcic7XG5cbmV4cG9ydCBjb25zdCBuZXdNZXRob2RNYXAgPSAvKiogQHR5cGUge2NvbnN0fSAqLyAoe1xuICAuLi5BbmRyb2lkRHJpdmVyLm5ld01ldGhvZE1hcCxcbiAgJy9zZXNzaW9uLzpzZXNzaW9uSWQvYXBwaXVtL2RldmljZS9nZXRfY2xpcGJvYXJkJzoge1xuICAgIFBPU1Q6IHtcbiAgICAgIGNvbW1hbmQ6ICdnZXRDbGlwYm9hcmQnLFxuICAgICAgcGF5bG9hZFBhcmFtczogeyBvcHRpb25hbDogWydjb250ZW50VHlwZSddIH1cbiAgICB9XG4gIH1cbn0pO1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsSUFBQUEsb0JBQUEsR0FBQUMsT0FBQTtBQUVPLE1BQU1DLFlBQVksR0FBQUMsT0FBQSxDQUFBRCxZQUFBLEdBQXlCO0VBQ2hELEdBQUdFLGtDQUFhLENBQUNGLFlBQVk7RUFDN0IsaURBQWlELEVBQUU7SUFDakRHLElBQUksRUFBRTtNQUNKQyxPQUFPLEVBQUUsY0FBYztNQUN2QkMsYUFBYSxFQUFFO1FBQUVDLFFBQVEsRUFBRSxDQUFDLGFBQWE7TUFBRTtJQUM3QztFQUNGO0FBQ0YsQ0FBRSJ9
14
+ //# sourceMappingURL=method-map.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"method-map.js","names":["_appiumAndroidDriver","require","newMethodMap","exports","AndroidDriver","POST","command","payloadParams","optional"],"sources":["../../lib/method-map.js"],"sourcesContent":["import { AndroidDriver } from 'appium-android-driver';\n\nexport const newMethodMap = /** @type {const} */ ({\n ...AndroidDriver.newMethodMap,\n '/session/:sessionId/appium/device/get_clipboard': {\n POST: {\n command: 'getClipboard',\n payloadParams: { optional: ['contentType'] }\n }\n }\n});\n"],"mappings":";;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AAEO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAyB;EAChD,GAAGE,kCAAa,CAACF,YAAY;EAC7B,iDAAiD,EAAE;IACjDG,IAAI,EAAE;MACJC,OAAO,EAAE,cAAc;MACvBC,aAAa,EAAE;QAAEC,QAAQ,EAAE,CAAC,aAAa;MAAE;IAC7C;EACF;AACF,CAAE"}
1
+ {"version":3,"file":"method-map.js","sourceRoot":"","sources":["../../lib/method-map.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAEvC,QAAA,YAAY,GAAG;IAC1B,GAAG,qCAAa,CAAC,YAAY;IAC7B,iDAAiD,EAAE;QACjD,IAAI,EAAE;YACJ,OAAO,EAAE,cAAc;YACvB,aAAa,EAAE,EAAC,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAC;SAC3C;KACF;CACO,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { DriverCaps, DriverOpts, W3CDriverCaps } from '@appium/types';
2
+ import type { AndroidSettings } from 'appium-android-driver';
3
+ import type { EmptyObject } from 'type-fest';
4
+ import type { RelativeRect } from './commands/types';
5
+ import type { Uiautomator2Constraints } from './constraints';
6
+ export type Uiautomator2DriverOpts = DriverOpts<Uiautomator2Constraints>;
7
+ export type Uiautomator2DriverCaps = DriverCaps<Uiautomator2Constraints>;
8
+ export type W3CUiautomator2DriverCaps = W3CDriverCaps<Uiautomator2Constraints>;
9
+ export interface Uiautomator2DeviceInfo {
10
+ deviceApiLevel: number;
11
+ deviceScreenSize: string;
12
+ deviceScreenDensity: string;
13
+ deviceModel: string;
14
+ deviceManufacturer: string;
15
+ platformVersion: string;
16
+ }
17
+ export interface Uiautomator2SessionInfo {
18
+ deviceName: string;
19
+ deviceUDID: string;
20
+ }
21
+ export interface Uiautomator2DeviceDetails {
22
+ pixelRatio: string;
23
+ statBarHeight: number;
24
+ viewportRect: RelativeRect;
25
+ }
26
+ export interface Uiautomator2ServerInfo {
27
+ platform: 'LINUX';
28
+ webStorageEnabled: false;
29
+ takesScreenshot: true;
30
+ javascriptEnabled: true;
31
+ databaseEnabled: false;
32
+ networkConnectionEnabled: true;
33
+ locationContextEnabled: false;
34
+ warnings: EmptyObject;
35
+ desired: Uiautomator2DriverCaps;
36
+ }
37
+ export interface Uiautomator2StartSessionOpts extends Uiautomator2DriverCaps, Uiautomator2ServerInfo {
38
+ }
39
+ export interface Uiautomator2SessionCaps extends Uiautomator2ServerInfo, Uiautomator2SessionInfo, Uiautomator2DeviceInfo, Uiautomator2DeviceDetails {
40
+ }
41
+ export type Uiautomator2CreateResult = [string, Uiautomator2SessionCaps];
42
+ export interface Uiautomator2Settings extends AndroidSettings {
43
+ allowInvisibleElements: boolean;
44
+ }
45
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,kBAAkB,C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C,CAAC;AAEzE,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,sBAAsB,EAAE,OAAO,CAAC;CACjC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":""}