appium-xcuitest-driver 10.3.0 → 10.4.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 (252) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/lib/commands/active-app-info.d.ts +9 -0
  3. package/build/lib/commands/active-app-info.d.ts.map +1 -0
  4. package/build/lib/commands/active-app-info.js +14 -0
  5. package/build/lib/commands/active-app-info.js.map +1 -0
  6. package/build/lib/commands/alert.d.ts +42 -45
  7. package/build/lib/commands/alert.d.ts.map +1 -1
  8. package/build/lib/commands/alert.js +66 -62
  9. package/build/lib/commands/alert.js.map +1 -1
  10. package/build/lib/commands/app-management.d.ts +150 -153
  11. package/build/lib/commands/app-management.d.ts.map +1 -1
  12. package/build/lib/commands/app-management.js +300 -286
  13. package/build/lib/commands/app-management.js.map +1 -1
  14. package/build/lib/commands/app-strings.d.ts +14 -17
  15. package/build/lib/commands/app-strings.d.ts.map +1 -1
  16. package/build/lib/commands/app-strings.js +23 -24
  17. package/build/lib/commands/app-strings.js.map +1 -1
  18. package/build/lib/commands/appearance.d.ts +19 -22
  19. package/build/lib/commands/appearance.d.ts.map +1 -1
  20. package/build/lib/commands/appearance.js +56 -56
  21. package/build/lib/commands/appearance.js.map +1 -1
  22. package/build/lib/commands/audit.d.ts +22 -17
  23. package/build/lib/commands/audit.d.ts.map +1 -1
  24. package/build/lib/commands/audit.js +17 -18
  25. package/build/lib/commands/audit.js.map +1 -1
  26. package/build/lib/commands/battery.d.ts +11 -14
  27. package/build/lib/commands/battery.d.ts.map +1 -1
  28. package/build/lib/commands/battery.js +36 -37
  29. package/build/lib/commands/battery.js.map +1 -1
  30. package/build/lib/commands/biometric.d.ts +30 -33
  31. package/build/lib/commands/biometric.d.ts.map +1 -1
  32. package/build/lib/commands/biometric.js +42 -41
  33. package/build/lib/commands/biometric.js.map +1 -1
  34. package/build/lib/commands/certificate.d.ts +48 -45
  35. package/build/lib/commands/certificate.d.ts.map +1 -1
  36. package/build/lib/commands/certificate.js +218 -205
  37. package/build/lib/commands/certificate.js.map +1 -1
  38. package/build/lib/commands/clipboard.d.ts +19 -22
  39. package/build/lib/commands/clipboard.d.ts.map +1 -1
  40. package/build/lib/commands/clipboard.js +30 -30
  41. package/build/lib/commands/clipboard.js.map +1 -1
  42. package/build/lib/commands/condition.d.ts +49 -26
  43. package/build/lib/commands/condition.d.ts.map +1 -1
  44. package/build/lib/commands/condition.js +87 -86
  45. package/build/lib/commands/condition.js.map +1 -1
  46. package/build/lib/commands/content-size.d.ts +26 -29
  47. package/build/lib/commands/content-size.d.ts.map +1 -1
  48. package/build/lib/commands/content-size.js +36 -36
  49. package/build/lib/commands/content-size.js.map +1 -1
  50. package/build/lib/commands/context.d.ts +161 -108
  51. package/build/lib/commands/context.d.ts.map +1 -1
  52. package/build/lib/commands/context.js +530 -517
  53. package/build/lib/commands/context.js.map +1 -1
  54. package/build/lib/commands/deviceInfo.d.ts +9 -12
  55. package/build/lib/commands/deviceInfo.d.ts.map +1 -1
  56. package/build/lib/commands/deviceInfo.js +17 -18
  57. package/build/lib/commands/deviceInfo.js.map +1 -1
  58. package/build/lib/commands/element.d.ts +102 -105
  59. package/build/lib/commands/element.d.ts.map +1 -1
  60. package/build/lib/commands/element.js +337 -323
  61. package/build/lib/commands/element.js.map +1 -1
  62. package/build/lib/commands/execute.d.ts +24 -19
  63. package/build/lib/commands/execute.d.ts.map +1 -1
  64. package/build/lib/commands/execute.js +63 -62
  65. package/build/lib/commands/execute.js.map +1 -1
  66. package/build/lib/commands/file-movement.d.ts +77 -80
  67. package/build/lib/commands/file-movement.d.ts.map +1 -1
  68. package/build/lib/commands/file-movement.js +130 -124
  69. package/build/lib/commands/file-movement.js.map +1 -1
  70. package/build/lib/commands/find.d.ts +18 -21
  71. package/build/lib/commands/find.d.ts.map +1 -1
  72. package/build/lib/commands/find.js +158 -156
  73. package/build/lib/commands/find.js.map +1 -1
  74. package/build/lib/commands/general.d.ts +124 -116
  75. package/build/lib/commands/general.d.ts.map +1 -1
  76. package/build/lib/commands/general.js +248 -232
  77. package/build/lib/commands/general.js.map +1 -1
  78. package/build/lib/commands/geolocation.d.ts +43 -46
  79. package/build/lib/commands/geolocation.d.ts.map +1 -1
  80. package/build/lib/commands/geolocation.js +10 -11
  81. package/build/lib/commands/geolocation.js.map +1 -1
  82. package/build/lib/commands/gesture.d.ts +273 -276
  83. package/build/lib/commands/gesture.d.ts.map +1 -1
  84. package/build/lib/commands/gesture.js +506 -492
  85. package/build/lib/commands/gesture.js.map +1 -1
  86. package/build/lib/commands/increase-contrast.d.ts +20 -23
  87. package/build/lib/commands/increase-contrast.d.ts.map +1 -1
  88. package/build/lib/commands/increase-contrast.js +30 -30
  89. package/build/lib/commands/increase-contrast.js.map +1 -1
  90. package/build/lib/commands/iohid.d.ts +1370 -1373
  91. package/build/lib/commands/iohid.d.ts.map +1 -1
  92. package/build/lib/commands/iohid.js +30 -31
  93. package/build/lib/commands/iohid.js.map +1 -1
  94. package/build/lib/commands/keyboard.d.ts +29 -32
  95. package/build/lib/commands/keyboard.d.ts.map +1 -1
  96. package/build/lib/commands/keyboard.js +53 -51
  97. package/build/lib/commands/keyboard.js.map +1 -1
  98. package/build/lib/commands/keychains.d.ts +9 -12
  99. package/build/lib/commands/keychains.d.ts.map +1 -1
  100. package/build/lib/commands/keychains.js +13 -14
  101. package/build/lib/commands/keychains.js.map +1 -1
  102. package/build/lib/commands/localization.d.ts +16 -19
  103. package/build/lib/commands/localization.d.ts.map +1 -1
  104. package/build/lib/commands/localization.js +25 -26
  105. package/build/lib/commands/localization.js.map +1 -1
  106. package/build/lib/commands/location.d.ts +36 -39
  107. package/build/lib/commands/location.d.ts.map +1 -1
  108. package/build/lib/commands/location.js +99 -98
  109. package/build/lib/commands/location.js.map +1 -1
  110. package/build/lib/commands/lock.d.ts +21 -24
  111. package/build/lib/commands/lock.d.ts.map +1 -1
  112. package/build/lib/commands/lock.js +39 -38
  113. package/build/lib/commands/lock.js.map +1 -1
  114. package/build/lib/commands/log.d.ts +43 -37
  115. package/build/lib/commands/log.d.ts.map +1 -1
  116. package/build/lib/commands/log.js +174 -171
  117. package/build/lib/commands/log.js.map +1 -1
  118. package/build/lib/commands/memory.d.ts +9 -12
  119. package/build/lib/commands/memory.d.ts.map +1 -1
  120. package/build/lib/commands/memory.js +37 -38
  121. package/build/lib/commands/memory.js.map +1 -1
  122. package/build/lib/commands/navigation.d.ts +30 -33
  123. package/build/lib/commands/navigation.d.ts.map +1 -1
  124. package/build/lib/commands/navigation.js +92 -92
  125. package/build/lib/commands/navigation.js.map +1 -1
  126. package/build/lib/commands/notifications.d.ts +26 -29
  127. package/build/lib/commands/notifications.d.ts.map +1 -1
  128. package/build/lib/commands/notifications.js +53 -53
  129. package/build/lib/commands/notifications.js.map +1 -1
  130. package/build/lib/commands/pasteboard.d.ts +21 -24
  131. package/build/lib/commands/pasteboard.d.ts.map +1 -1
  132. package/build/lib/commands/pasteboard.js +37 -37
  133. package/build/lib/commands/pasteboard.js.map +1 -1
  134. package/build/lib/commands/pcap.d.ts +39 -26
  135. package/build/lib/commands/pcap.d.ts.map +1 -1
  136. package/build/lib/commands/pcap.js +81 -81
  137. package/build/lib/commands/pcap.js.map +1 -1
  138. package/build/lib/commands/performance.d.ts +63 -44
  139. package/build/lib/commands/performance.d.ts.map +1 -1
  140. package/build/lib/commands/performance.js +105 -105
  141. package/build/lib/commands/performance.js.map +1 -1
  142. package/build/lib/commands/permissions.d.ts +33 -36
  143. package/build/lib/commands/permissions.d.ts.map +1 -1
  144. package/build/lib/commands/permissions.js +66 -65
  145. package/build/lib/commands/permissions.js.map +1 -1
  146. package/build/lib/commands/proxy-helper.d.ts +12 -15
  147. package/build/lib/commands/proxy-helper.d.ts.map +1 -1
  148. package/build/lib/commands/proxy-helper.js +53 -54
  149. package/build/lib/commands/proxy-helper.js.map +1 -1
  150. package/build/lib/commands/record-audio.d.ts +49 -29
  151. package/build/lib/commands/record-audio.d.ts.map +1 -1
  152. package/build/lib/commands/record-audio.js +100 -104
  153. package/build/lib/commands/record-audio.js.map +1 -1
  154. package/build/lib/commands/recordscreen.d.ts +54 -18
  155. package/build/lib/commands/recordscreen.d.ts.map +1 -1
  156. package/build/lib/commands/recordscreen.js +127 -129
  157. package/build/lib/commands/recordscreen.js.map +1 -1
  158. package/build/lib/commands/screenshots.d.ts +14 -17
  159. package/build/lib/commands/screenshots.d.ts.map +1 -1
  160. package/build/lib/commands/screenshots.js +108 -107
  161. package/build/lib/commands/screenshots.js.map +1 -1
  162. package/build/lib/commands/simctl.d.ts +11 -14
  163. package/build/lib/commands/simctl.d.ts.map +1 -1
  164. package/build/lib/commands/simctl.js +23 -26
  165. package/build/lib/commands/simctl.js.map +1 -1
  166. package/build/lib/commands/source.d.ts +14 -17
  167. package/build/lib/commands/source.d.ts.map +1 -1
  168. package/build/lib/commands/source.js +40 -43
  169. package/build/lib/commands/source.js.map +1 -1
  170. package/build/lib/commands/timeouts.d.ts +44 -33
  171. package/build/lib/commands/timeouts.d.ts.map +1 -1
  172. package/build/lib/commands/timeouts.js +65 -63
  173. package/build/lib/commands/timeouts.js.map +1 -1
  174. package/build/lib/commands/web.d.ts +247 -197
  175. package/build/lib/commands/web.d.ts.map +1 -1
  176. package/build/lib/commands/web.js +815 -786
  177. package/build/lib/commands/web.js.map +1 -1
  178. package/build/lib/commands/xctest-record-screen.d.ts +63 -66
  179. package/build/lib/commands/xctest-record-screen.d.ts.map +1 -1
  180. package/build/lib/commands/xctest-record-screen.js +103 -102
  181. package/build/lib/commands/xctest-record-screen.js.map +1 -1
  182. package/build/lib/commands/xctest.d.ts +55 -51
  183. package/build/lib/commands/xctest.d.ts.map +1 -1
  184. package/build/lib/commands/xctest.js +116 -117
  185. package/build/lib/commands/xctest.js.map +1 -1
  186. package/build/lib/driver.d.ts +278 -1597
  187. package/build/lib/driver.d.ts.map +1 -1
  188. package/build/lib/driver.js +319 -235
  189. package/build/lib/driver.js.map +1 -1
  190. package/build/lib/execute-method-map.d.ts.map +1 -1
  191. package/build/lib/execute-method-map.js +9 -0
  192. package/build/lib/execute-method-map.js.map +1 -1
  193. package/lib/commands/active-app-info.js +12 -0
  194. package/lib/commands/alert.js +68 -65
  195. package/lib/commands/app-management.js +308 -301
  196. package/lib/commands/app-strings.js +24 -26
  197. package/lib/commands/appearance.js +54 -56
  198. package/lib/commands/audit.js +18 -20
  199. package/lib/commands/battery.js +35 -37
  200. package/lib/commands/biometric.js +44 -46
  201. package/lib/commands/certificate.js +226 -215
  202. package/lib/commands/clipboard.js +30 -32
  203. package/lib/commands/condition.js +98 -100
  204. package/lib/commands/content-size.js +36 -38
  205. package/lib/commands/context.js +495 -490
  206. package/lib/commands/deviceInfo.js +19 -20
  207. package/lib/commands/element.js +367 -357
  208. package/lib/commands/execute.js +72 -72
  209. package/lib/commands/file-movement.js +132 -134
  210. package/lib/commands/find.js +160 -159
  211. package/lib/commands/general.js +238 -231
  212. package/lib/commands/geolocation.js +6 -14
  213. package/lib/commands/gesture.js +525 -515
  214. package/lib/commands/increase-contrast.js +30 -32
  215. package/lib/commands/iohid.js +32 -34
  216. package/lib/commands/keyboard.js +49 -51
  217. package/lib/commands/keychains.js +12 -14
  218. package/lib/commands/localization.js +24 -26
  219. package/lib/commands/location.js +102 -104
  220. package/lib/commands/lock.js +38 -38
  221. package/lib/commands/log.js +197 -198
  222. package/lib/commands/memory.js +40 -42
  223. package/lib/commands/navigation.js +96 -100
  224. package/lib/commands/notifications.js +57 -59
  225. package/lib/commands/pasteboard.js +37 -39
  226. package/lib/commands/pcap.js +84 -86
  227. package/lib/commands/performance.js +132 -133
  228. package/lib/commands/permissions.js +67 -69
  229. package/lib/commands/proxy-helper.js +60 -61
  230. package/lib/commands/record-audio.js +115 -120
  231. package/lib/commands/recordscreen.js +145 -149
  232. package/lib/commands/screenshots.js +116 -116
  233. package/lib/commands/simctl.js +25 -29
  234. package/lib/commands/source.js +42 -46
  235. package/lib/commands/timeouts.js +59 -63
  236. package/lib/commands/web.js +878 -858
  237. package/lib/commands/xctest-record-screen.js +103 -105
  238. package/lib/commands/xctest.js +134 -139
  239. package/lib/driver.js +287 -235
  240. package/lib/execute-method-map.ts +9 -0
  241. package/npm-shrinkwrap.json +2 -2
  242. package/package.json +1 -1
  243. package/build/lib/commands/activeAppInfo.d.ts +0 -12
  244. package/build/lib/commands/activeAppInfo.d.ts.map +0 -1
  245. package/build/lib/commands/activeAppInfo.js +0 -15
  246. package/build/lib/commands/activeAppInfo.js.map +0 -1
  247. package/build/lib/commands/index.d.ts +0 -96
  248. package/build/lib/commands/index.d.ts.map +0 -1
  249. package/build/lib/commands/index.js +0 -100
  250. package/build/lib/commands/index.js.map +0 -1
  251. package/lib/commands/activeAppInfo.js +0 -14
  252. package/lib/commands/index.js +0 -95
@@ -1,35 +1,32 @@
1
- declare namespace _default {
2
- /**
3
- * Enrolls biometric authentication on a simulated device.
4
- *
5
- * @param {boolean} isEnabled - Whether to enable/disable biometric enrollment.
6
- * @throws {Error} If enrollment fails or the device is not a Simulator.
7
- * @group Simulator Only
8
- * @this {XCUITestDriver}
9
- */
10
- function mobileEnrollBiometric(this: import("../driver").XCUITestDriver, isEnabled?: boolean): Promise<void>;
11
- /**
12
- * Emulates biometric match or non-match event on a simulated device.
13
- *
14
- * The biometric feature is expected to be already enrolled via {@linkcode mobileEnrollBiometric|mobile: enrollBiometric} before executing this.
15
- *
16
- * @param {import('./types').BiometricFeature} type - The biometric feature name.
17
- * @param {boolean} match - If `true`, simulate biometic match. If `false`, simulate biometric non-match.
18
- * @throws {Error} If matching fails or the device is not a Simulator.
19
- * @group Simulator Only
20
- * @this {XCUITestDriver}
21
- */
22
- function mobileSendBiometricMatch(this: import("../driver").XCUITestDriver, type?: import("./types").BiometricFeature, match?: boolean): Promise<void>;
23
- /**
24
- * Checks whether the biometric feature is currently enrolled on a simulated device.
25
- *
26
- * @returns {Promise<boolean>} `true` if biometric is enrolled.
27
- * @throws {Error} If the detection fails or the device is not a Simulator.
28
- * @group Simulator Only
29
- * @this {XCUITestDriver}
30
- */
31
- function mobileIsBiometricEnrolled(this: import("../driver").XCUITestDriver): Promise<boolean>;
32
- }
33
- export default _default;
1
+ /**
2
+ * Enrolls biometric authentication on a simulated device.
3
+ *
4
+ * @param {boolean} isEnabled - Whether to enable/disable biometric enrollment.
5
+ * @throws {Error} If enrollment fails or the device is not a Simulator.
6
+ * @group Simulator Only
7
+ * @this {XCUITestDriver}
8
+ */
9
+ export function mobileEnrollBiometric(this: import("../driver").XCUITestDriver, isEnabled?: boolean): Promise<void>;
10
+ /**
11
+ * Emulates biometric match or non-match event on a simulated device.
12
+ *
13
+ * The biometric feature is expected to be already enrolled via {@linkcode mobileEnrollBiometric|mobile: enrollBiometric} before executing this.
14
+ *
15
+ * @param {import('./types').BiometricFeature} type - The biometric feature name.
16
+ * @param {boolean} match - If `true`, simulate biometic match. If `false`, simulate biometric non-match.
17
+ * @throws {Error} If matching fails or the device is not a Simulator.
18
+ * @group Simulator Only
19
+ * @this {XCUITestDriver}
20
+ */
21
+ export function mobileSendBiometricMatch(this: import("../driver").XCUITestDriver, type?: import("./types").BiometricFeature, match?: boolean): Promise<void>;
22
+ /**
23
+ * Checks whether the biometric feature is currently enrolled on a simulated device.
24
+ *
25
+ * @returns {Promise<boolean>} `true` if biometric is enrolled.
26
+ * @throws {Error} If the detection fails or the device is not a Simulator.
27
+ * @group Simulator Only
28
+ * @this {XCUITestDriver}
29
+ */
30
+ export function mobileIsBiometricEnrolled(this: import("../driver").XCUITestDriver): Promise<boolean>;
34
31
  export type XCUITestDriver = import("../driver").XCUITestDriver;
35
32
  //# sourceMappingURL=biometric.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"biometric.d.ts","sourceRoot":"","sources":["../../../lib/commands/biometric.js"],"names":[],"mappings":";IAME;;;;;;;OAOG;IACH,qFALW,OAAO,iBASjB;IAED;;;;;;;;;;OAUG;IACH,mFANW,OAAO,SAAS,EAAE,gBAAgB,UAClC,OAAO,iBASjB;IAED;;;;;;;OAOG;IACH,8EALa,OAAO,CAAC,OAAO,CAAC,CAS5B;;;6BAIU,OAAO,WAAW,EAAE,cAAc"}
1
+ {"version":3,"file":"biometric.d.ts","sourceRoot":"","sources":["../../../lib/commands/biometric.js"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,4FALW,OAAO,iBASjB;AAED;;;;;;;;;;GAUG;AACH,0FANW,OAAO,SAAS,EAAE,gBAAgB,UAClC,OAAO,iBASjB;AAED;;;;;;;GAOG;AACH,qFALa,OAAO,CAAC,OAAO,CAAC,CAS5B;6BAGY,OAAO,WAAW,EAAE,cAAc"}
@@ -3,50 +3,51 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.mobileEnrollBiometric = mobileEnrollBiometric;
7
+ exports.mobileSendBiometricMatch = mobileSendBiometricMatch;
8
+ exports.mobileIsBiometricEnrolled = mobileIsBiometricEnrolled;
6
9
  const lodash_1 = __importDefault(require("lodash"));
7
10
  const utils_1 = require("../utils");
8
11
  const assertSimulator = lodash_1.default.partial(utils_1.assertSimulator, 'Biometric enrollment');
9
- exports.default = {
10
- /**
11
- * Enrolls biometric authentication on a simulated device.
12
- *
13
- * @param {boolean} isEnabled - Whether to enable/disable biometric enrollment.
14
- * @throws {Error} If enrollment fails or the device is not a Simulator.
15
- * @group Simulator Only
16
- * @this {XCUITestDriver}
17
- */
18
- async mobileEnrollBiometric(isEnabled = true) {
19
- assertSimulator(this);
20
- await /** @type {import('../driver').Simulator} */ (this.device).enrollBiometric(isEnabled);
21
- },
22
- /**
23
- * Emulates biometric match or non-match event on a simulated device.
24
- *
25
- * The biometric feature is expected to be already enrolled via {@linkcode mobileEnrollBiometric|mobile: enrollBiometric} before executing this.
26
- *
27
- * @param {import('./types').BiometricFeature} type - The biometric feature name.
28
- * @param {boolean} match - If `true`, simulate biometic match. If `false`, simulate biometric non-match.
29
- * @throws {Error} If matching fails or the device is not a Simulator.
30
- * @group Simulator Only
31
- * @this {XCUITestDriver}
32
- */
33
- async mobileSendBiometricMatch(type = 'touchId', match = true) {
34
- assertSimulator(this);
35
- await /** @type {import('../driver').Simulator} */ (this.device).sendBiometricMatch(match, type);
36
- },
37
- /**
38
- * Checks whether the biometric feature is currently enrolled on a simulated device.
39
- *
40
- * @returns {Promise<boolean>} `true` if biometric is enrolled.
41
- * @throws {Error} If the detection fails or the device is not a Simulator.
42
- * @group Simulator Only
43
- * @this {XCUITestDriver}
44
- */
45
- async mobileIsBiometricEnrolled() {
46
- assertSimulator(this);
47
- return await /** @type {import('../driver').Simulator} */ (this.device).isBiometricEnrolled();
48
- },
49
- };
12
+ /**
13
+ * Enrolls biometric authentication on a simulated device.
14
+ *
15
+ * @param {boolean} isEnabled - Whether to enable/disable biometric enrollment.
16
+ * @throws {Error} If enrollment fails or the device is not a Simulator.
17
+ * @group Simulator Only
18
+ * @this {XCUITestDriver}
19
+ */
20
+ async function mobileEnrollBiometric(isEnabled = true) {
21
+ assertSimulator(this);
22
+ await /** @type {import('../driver').Simulator} */ (this.device).enrollBiometric(isEnabled);
23
+ }
24
+ /**
25
+ * Emulates biometric match or non-match event on a simulated device.
26
+ *
27
+ * The biometric feature is expected to be already enrolled via {@linkcode mobileEnrollBiometric|mobile: enrollBiometric} before executing this.
28
+ *
29
+ * @param {import('./types').BiometricFeature} type - The biometric feature name.
30
+ * @param {boolean} match - If `true`, simulate biometic match. If `false`, simulate biometric non-match.
31
+ * @throws {Error} If matching fails or the device is not a Simulator.
32
+ * @group Simulator Only
33
+ * @this {XCUITestDriver}
34
+ */
35
+ async function mobileSendBiometricMatch(type = 'touchId', match = true) {
36
+ assertSimulator(this);
37
+ await /** @type {import('../driver').Simulator} */ (this.device).sendBiometricMatch(match, type);
38
+ }
39
+ /**
40
+ * Checks whether the biometric feature is currently enrolled on a simulated device.
41
+ *
42
+ * @returns {Promise<boolean>} `true` if biometric is enrolled.
43
+ * @throws {Error} If the detection fails or the device is not a Simulator.
44
+ * @group Simulator Only
45
+ * @this {XCUITestDriver}
46
+ */
47
+ async function mobileIsBiometricEnrolled() {
48
+ assertSimulator(this);
49
+ return await /** @type {import('../driver').Simulator} */ (this.device).isBiometricEnrolled();
50
+ }
50
51
  /**
51
52
  * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
52
53
  */
@@ -1 +1 @@
1
- {"version":3,"file":"biometric.js","sourceRoot":"","sources":["../../../lib/commands/biometric.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AACvB,oCAA6D;AAE7D,MAAM,eAAe,GAAG,gBAAC,CAAC,OAAO,CAAC,uBAAgB,EAAE,sBAAsB,CAAC,CAAC;AAE5E,kBAAe;IACb;;;;;;;OAOG;IACH,KAAK,CAAC,qBAAqB,CAAC,SAAS,GAAG,IAAI;QAC1C,eAAe,CAAC,IAAI,CAAC,CAAC;QAEtB,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,wBAAwB,CAAC,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,IAAI;QAC3D,eAAe,CAAC,IAAI,CAAC,CAAC;QAEtB,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,yBAAyB;QAC7B,eAAe,CAAC,IAAI,CAAC,CAAC;QAEtB,OAAO,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,mBAAmB,EAAE,CAAC;IAChG,CAAC;CACF,CAAC;AAEF;;GAEG"}
1
+ {"version":3,"file":"biometric.js","sourceRoot":"","sources":["../../../lib/commands/biometric.js"],"names":[],"mappings":";;;;;AAaA,sDAIC;AAaD,4DAIC;AAUD,8DAIC;AAhDD,oDAAuB;AACvB,oCAA6D;AAE7D,MAAM,eAAe,GAAG,gBAAC,CAAC,OAAO,CAAC,uBAAgB,EAAE,sBAAsB,CAAC,CAAC;AAE5E;;;;;;;GAOG;AACI,KAAK,UAAU,qBAAqB,CAAC,SAAS,GAAG,IAAI;IAC1D,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;AAC9F,CAAC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,wBAAwB,CAAC,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,IAAI;IAC3E,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACnG,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB;IAC7C,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,OAAO,MAAM,4CAA4C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,mBAAmB,EAAE,CAAC;AAChG,CAAC;AAED;;GAEG"}
@@ -1,47 +1,50 @@
1
- export function parseCommonName(stringCertificate: any): string;
2
- declare namespace _default {
3
- /**
4
- * Installs a custom certificate onto the device.
5
- *
6
- * Since Xcode SDK 11.4, Apple has added a dedicated `simctl` subcommand to quickly handle
7
- * certificates on Simulator over CLI.
8
- *
9
- * On real devices (or simulators before Xcode SDK 11.4), Apple provides no "official" way to do this via the command line. In such a case (and also as a fallback if CLI setup fails), this method tries to wrap the certificate into `.mobileconfig` format, then deploys the wrapped file to the internal HTTP server so that it can be opened via mobile Safari. This command then goes through the profile installation procedure by clicking the necessary buttons using WebDriverAgent.
10
- * @param {string} content - Base64-encoded content of the public certificate in [PEM](https://knowledge.digicert.com/quovadis/ssl-certificates/ssl-general-topics/what-is-pem-format.html) format
11
- * @param {string} [commonName] - Common name of the certificate. If this is not set, the command will try to parse it from the provided `content`.
12
- * @param {boolean} isRoot - Defines where the certificate should be installed; either the Trusted Root Store (`true`) or the Keychain (`false`). On environments other than Xcode 11.4+ Simulator, this option is ignored.
13
- * @returns {Promise<string|void>} The content of the generated `.mobileconfig` file as
14
- * a base64-encoded string. This config might be useful for debugging purposes. If the certificate has been successfully set via CLI, then nothing is returned.
15
- * @this {XCUITestDriver}
16
- */
17
- function mobileInstallCertificate(this: import("../driver").XCUITestDriver, content: string, commonName?: string, isRoot?: boolean): Promise<string | void>;
18
- /**
19
- * Removes installed certificates.
20
- *
21
- * This only works _if and only if_ `py-ios-device` is installed on the same machine Appium is running on.
22
- *
23
- * @see https://github.com/YueChen-C/py-ios-device
24
- * @since 4.19.2
25
- * @param {string} name - Name of the profile
26
- * @returns {Promise<string>} Returns status acknowledgment status if
27
- * tht certificate is successfully removed or 'None' (basically just
28
- * forwards the original pyidevice output)
29
- * @throws {Error} If attempting to remove certificates for a simulated device or if `py-ios-device` is not installed
30
- * @group Real Device Only
31
- */
32
- function mobileRemoveCertificate(name: string): Promise<string>;
33
- /**
34
- * Returns map of certificates installed on the real device.
35
- *
36
- * This only works _if and only if_ `py-ios-device` is installed on the same machine Appium is running on.
37
- * @since 4.10.0
38
- * @see https://github.com/YueChen-C/py-ios-device
39
- * @returns {Promise<import('./types').CertificateList>} An object describing the certificates installed on the real device.
40
- * @throws {Error} If attempting to list certificates for a simulated device or if `py-ios-device` is not installed
41
- * @this {XCUITestDriver}
42
- */
43
- function mobileListCertificates(this: import("../driver").XCUITestDriver): Promise<import("./types").CertificateList>;
44
- }
45
- export default _default;
1
+ /**
2
+ * Parses the common name of the certificate from the given string.
3
+ *
4
+ * @param {string} stringCertificate
5
+ * @returns {string} The common name of the certificate
6
+ */
7
+ export function parseCommonName(stringCertificate: string): string;
8
+ /**
9
+ * Installs a custom certificate onto the device.
10
+ *
11
+ * Since Xcode SDK 11.4, Apple has added a dedicated `simctl` subcommand to quickly handle
12
+ * certificates on Simulator over CLI.
13
+ *
14
+ * On real devices (or simulators before Xcode SDK 11.4), Apple provides no "official" way to do this via the command line. In such a case (and also as a fallback if CLI setup fails), this method tries to wrap the certificate into `.mobileconfig` format, then deploys the wrapped file to the internal HTTP server so that it can be opened via mobile Safari. This command then goes through the profile installation procedure by clicking the necessary buttons using WebDriverAgent.
15
+ * @param {string} content - Base64-encoded content of the public certificate in [PEM](https://knowledge.digicert.com/quovadis/ssl-certificates/ssl-general-topics/what-is-pem-format.html) format
16
+ * @param {string} [commonName] - Common name of the certificate. If this is not set, the command will try to parse it from the provided `content`.
17
+ * @param {boolean} isRoot - Defines where the certificate should be installed; either the Trusted Root Store (`true`) or the Keychain (`false`). On environments other than Xcode 11.4+ Simulator, this option is ignored.
18
+ * @returns {Promise<string|void>} The content of the generated `.mobileconfig` file as
19
+ * a base64-encoded string. This config might be useful for debugging purposes. If the certificate has been successfully set via CLI, then nothing is returned.
20
+ * @this {XCUITestDriver}
21
+ */
22
+ export function mobileInstallCertificate(this: import("../driver").XCUITestDriver, content: string, commonName?: string, isRoot?: boolean): Promise<string | void>;
23
+ /**
24
+ * Removes installed certificates.
25
+ *
26
+ * This only works _if and only if_ `py-ios-device` is installed on the same machine Appium is running on.
27
+ *
28
+ * @see https://github.com/YueChen-C/py-ios-device
29
+ * @since 4.19.2
30
+ * @param {string} name - Name of the profile
31
+ * @returns {Promise<string>} Returns status acknowledgment status if
32
+ * tht certificate is successfully removed or 'None' (basically just
33
+ * forwards the original pyidevice output)
34
+ * @throws {Error} If attempting to remove certificates for a simulated device or if `py-ios-device` is not installed
35
+ * @group Real Device Only
36
+ */
37
+ export function mobileRemoveCertificate(name: string): Promise<string>;
38
+ /**
39
+ * Returns map of certificates installed on the real device.
40
+ *
41
+ * This only works _if and only if_ `py-ios-device` is installed on the same machine Appium is running on.
42
+ * @since 4.10.0
43
+ * @see https://github.com/YueChen-C/py-ios-device
44
+ * @returns {Promise<import('./types').CertificateList>} An object describing the certificates installed on the real device.
45
+ * @throws {Error} If attempting to list certificates for a simulated device or if `py-ios-device` is not installed
46
+ * @this {XCUITestDriver}
47
+ */
48
+ export function mobileListCertificates(this: import("../driver").XCUITestDriver): Promise<import("./types").CertificateList>;
46
49
  export type XCUITestDriver = import("../driver").XCUITestDriver;
47
50
  //# sourceMappingURL=certificate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"certificate.d.ts","sourceRoot":"","sources":["../../../lib/commands/certificate.js"],"names":[],"mappings":"AAiFA,gEAYC;;IAiMC;;;;;;;;;;;;;OAaG;IACH,qFAPW,MAAM,eACN,MAAM,WACN,OAAO,GACL,OAAO,CAAC,MAAM,GAAC,IAAI,CAAC,CAwIhC;IAED;;;;;;;;;;;;;OAaG;IACH,uCAPW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAgB3B;IAED;;;;;;;;;OASG;IACH,2EAJa,OAAO,CAAC,OAAO,SAAS,EAAE,eAAe,CAAC,CActD;;;6BAIU,OAAO,WAAW,EAAE,cAAc"}
1
+ {"version":3,"file":"certificate.d.ts","sourceRoot":"","sources":["../../../lib/commands/certificate.js"],"names":[],"mappings":"AA8DA;;;;;GAKG;AACH,mDAHW,MAAM,GACJ,MAAM,CAclB;AAED;;;;;;;;;;;;;GAaG;AACH,4FAPW,MAAM,eACN,MAAM,WACN,OAAO,GACL,OAAO,CAAC,MAAM,GAAC,IAAI,CAAC,CAwIhC;AAED;;;;;;;;;;;;;GAaG;AACH,8CAPW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAgB3B;AAED;;;;;;;;;GASG;AACH,kFAJa,OAAO,CAAC,OAAO,SAAS,EAAE,eAAe,CAAC,CActD;6BA2NY,OAAO,WAAW,EAAE,cAAc"}