@limrun/appium-xcuitest-driver 10.11.0-lim.4 → 10.14.6-lim.1

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 (279) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/build/lib/commands/active-app-info.d.ts +4 -3
  3. package/build/lib/commands/active-app-info.d.ts.map +1 -1
  4. package/build/lib/commands/active-app-info.js +2 -3
  5. package/build/lib/commands/active-app-info.js.map +1 -1
  6. package/build/lib/commands/alert.d.ts +26 -31
  7. package/build/lib/commands/alert.d.ts.map +1 -1
  8. package/build/lib/commands/alert.js +20 -29
  9. package/build/lib/commands/alert.js.map +1 -1
  10. package/build/lib/commands/app-management.d.ts +99 -76
  11. package/build/lib/commands/app-management.d.ts.map +1 -1
  12. package/build/lib/commands/app-management.js +83 -73
  13. package/build/lib/commands/app-management.js.map +1 -1
  14. package/build/lib/commands/app-strings.d.ts +6 -7
  15. package/build/lib/commands/app-strings.d.ts.map +1 -1
  16. package/build/lib/commands/app-strings.js +3 -8
  17. package/build/lib/commands/app-strings.js.map +1 -1
  18. package/build/lib/commands/appearance.d.ts +7 -9
  19. package/build/lib/commands/appearance.d.ts.map +1 -1
  20. package/build/lib/commands/appearance.js +13 -19
  21. package/build/lib/commands/appearance.js.map +1 -1
  22. package/build/lib/commands/audit.d.ts +5 -33
  23. package/build/lib/commands/audit.d.ts.map +1 -1
  24. package/build/lib/commands/audit.js +3 -16
  25. package/build/lib/commands/audit.js.map +1 -1
  26. package/build/lib/commands/battery.d.ts +4 -4
  27. package/build/lib/commands/battery.d.ts.map +1 -1
  28. package/build/lib/commands/battery.js +3 -7
  29. package/build/lib/commands/battery.js.map +1 -1
  30. package/build/lib/commands/biometric.d.ts +12 -14
  31. package/build/lib/commands/biometric.d.ts.map +1 -1
  32. package/build/lib/commands/biometric.js +10 -19
  33. package/build/lib/commands/biometric.js.map +1 -1
  34. package/build/lib/commands/certificate.d.ts +14 -19
  35. package/build/lib/commands/certificate.d.ts.map +1 -1
  36. package/build/lib/commands/certificate.js +24 -31
  37. package/build/lib/commands/certificate.js.map +1 -1
  38. package/build/lib/commands/clipboard.d.ts +9 -11
  39. package/build/lib/commands/clipboard.d.ts.map +1 -1
  40. package/build/lib/commands/clipboard.js +8 -13
  41. package/build/lib/commands/clipboard.js.map +1 -1
  42. package/build/lib/commands/condition.d.ts +9 -72
  43. package/build/lib/commands/condition.d.ts.map +1 -1
  44. package/build/lib/commands/condition.js +5 -66
  45. package/build/lib/commands/condition.js.map +1 -1
  46. package/build/lib/commands/content-size.d.ts +16 -19
  47. package/build/lib/commands/content-size.d.ts.map +1 -1
  48. package/build/lib/commands/content-size.js +14 -22
  49. package/build/lib/commands/content-size.js.map +1 -1
  50. package/build/lib/commands/context.d.ts +130 -161
  51. package/build/lib/commands/context.d.ts.map +1 -1
  52. package/build/lib/commands/context.js +123 -108
  53. package/build/lib/commands/context.js.map +1 -1
  54. package/build/lib/commands/device-info.d.ts +13 -0
  55. package/build/lib/commands/device-info.d.ts.map +1 -0
  56. package/build/lib/commands/device-info.js +20 -0
  57. package/build/lib/commands/device-info.js.map +1 -0
  58. package/build/lib/commands/element.d.ts +83 -67
  59. package/build/lib/commands/element.d.ts.map +1 -1
  60. package/build/lib/commands/element.js +111 -134
  61. package/build/lib/commands/element.js.map +1 -1
  62. package/build/lib/commands/execute.d.ts +10 -22
  63. package/build/lib/commands/execute.d.ts.map +1 -1
  64. package/build/lib/commands/execute.js +13 -29
  65. package/build/lib/commands/execute.js.map +1 -1
  66. package/build/lib/commands/file-movement.d.ts +31 -42
  67. package/build/lib/commands/file-movement.d.ts.map +1 -1
  68. package/build/lib/commands/file-movement.js +146 -205
  69. package/build/lib/commands/file-movement.js.map +1 -1
  70. package/build/lib/commands/find.d.ts +20 -12
  71. package/build/lib/commands/find.d.ts.map +1 -1
  72. package/build/lib/commands/find.js +27 -65
  73. package/build/lib/commands/find.js.map +1 -1
  74. package/build/lib/commands/general.d.ts +84 -80
  75. package/build/lib/commands/general.d.ts.map +1 -1
  76. package/build/lib/commands/general.js +67 -54
  77. package/build/lib/commands/general.js.map +1 -1
  78. package/build/lib/commands/geolocation.d.ts +16 -36
  79. package/build/lib/commands/geolocation.d.ts.map +1 -1
  80. package/build/lib/commands/geolocation.js +8 -25
  81. package/build/lib/commands/geolocation.js.map +1 -1
  82. package/build/lib/commands/gesture.d.ts +103 -119
  83. package/build/lib/commands/gesture.d.ts.map +1 -1
  84. package/build/lib/commands/gesture.js +98 -138
  85. package/build/lib/commands/gesture.js.map +1 -1
  86. package/build/lib/commands/increase-contrast.d.ts +10 -13
  87. package/build/lib/commands/increase-contrast.d.ts.map +1 -1
  88. package/build/lib/commands/increase-contrast.js +8 -16
  89. package/build/lib/commands/increase-contrast.js.map +1 -1
  90. package/build/lib/commands/iohid.d.ts +6 -1359
  91. package/build/lib/commands/iohid.d.ts.map +1 -1
  92. package/build/lib/commands/iohid.js +5 -10
  93. package/build/lib/commands/iohid.js.map +1 -1
  94. package/build/lib/commands/keyboard.d.ts +16 -13
  95. package/build/lib/commands/keyboard.d.ts.map +1 -1
  96. package/build/lib/commands/keyboard.js +14 -18
  97. package/build/lib/commands/keyboard.js.map +1 -1
  98. package/build/lib/commands/keychains.d.ts +2 -2
  99. package/build/lib/commands/keychains.d.ts.map +1 -1
  100. package/build/lib/commands/keychains.js +1 -4
  101. package/build/lib/commands/keychains.js.map +1 -1
  102. package/build/lib/commands/localization.d.ts +7 -6
  103. package/build/lib/commands/localization.d.ts.map +1 -1
  104. package/build/lib/commands/localization.js +7 -8
  105. package/build/lib/commands/localization.js.map +1 -1
  106. package/build/lib/commands/location.d.ts +8 -11
  107. package/build/lib/commands/location.d.ts.map +1 -1
  108. package/build/lib/commands/location.js +7 -15
  109. package/build/lib/commands/location.js.map +1 -1
  110. package/build/lib/commands/lock.d.ts +6 -10
  111. package/build/lib/commands/lock.d.ts.map +1 -1
  112. package/build/lib/commands/lock.js +3 -10
  113. package/build/lib/commands/lock.js.map +1 -1
  114. package/build/lib/commands/log.d.ts +42 -44
  115. package/build/lib/commands/log.d.ts.map +1 -1
  116. package/build/lib/commands/log.js +32 -53
  117. package/build/lib/commands/log.js.map +1 -1
  118. package/build/lib/commands/memory.d.ts +4 -5
  119. package/build/lib/commands/memory.d.ts.map +1 -1
  120. package/build/lib/commands/memory.js +3 -8
  121. package/build/lib/commands/memory.js.map +1 -1
  122. package/build/lib/commands/navigation.d.ts +14 -26
  123. package/build/lib/commands/navigation.d.ts.map +1 -1
  124. package/build/lib/commands/navigation.js +22 -32
  125. package/build/lib/commands/navigation.js.map +1 -1
  126. package/build/lib/commands/notifications.d.ts +10 -10
  127. package/build/lib/commands/notifications.d.ts.map +1 -1
  128. package/build/lib/commands/notifications.js +8 -12
  129. package/build/lib/commands/notifications.js.map +1 -1
  130. package/build/lib/commands/pasteboard.d.ts +9 -10
  131. package/build/lib/commands/pasteboard.d.ts.map +1 -1
  132. package/build/lib/commands/pasteboard.js +8 -13
  133. package/build/lib/commands/pasteboard.js.map +1 -1
  134. package/build/lib/commands/pcap.d.ts +18 -38
  135. package/build/lib/commands/pcap.d.ts.map +1 -1
  136. package/build/lib/commands/pcap.js +9 -14
  137. package/build/lib/commands/pcap.js.map +1 -1
  138. package/build/lib/commands/performance.d.ts +36 -55
  139. package/build/lib/commands/performance.d.ts.map +1 -1
  140. package/build/lib/commands/performance.js +93 -86
  141. package/build/lib/commands/performance.js.map +1 -1
  142. package/build/lib/commands/permissions.d.ts +15 -17
  143. package/build/lib/commands/permissions.d.ts.map +1 -1
  144. package/build/lib/commands/permissions.js +12 -18
  145. package/build/lib/commands/permissions.js.map +1 -1
  146. package/build/lib/commands/proxy-helper.d.ts +11 -11
  147. package/build/lib/commands/proxy-helper.d.ts.map +1 -1
  148. package/build/lib/commands/proxy-helper.js +15 -24
  149. package/build/lib/commands/proxy-helper.js.map +1 -1
  150. package/build/lib/commands/record-audio.d.ts +25 -52
  151. package/build/lib/commands/record-audio.d.ts.map +1 -1
  152. package/build/lib/commands/record-audio.js +17 -19
  153. package/build/lib/commands/record-audio.js.map +1 -1
  154. package/build/lib/commands/recordscreen.d.ts +31 -62
  155. package/build/lib/commands/recordscreen.d.ts.map +1 -1
  156. package/build/lib/commands/recordscreen.js +29 -28
  157. package/build/lib/commands/recordscreen.js.map +1 -1
  158. package/build/lib/commands/screenshots.d.ts +15 -9
  159. package/build/lib/commands/screenshots.d.ts.map +1 -1
  160. package/build/lib/commands/screenshots.js +16 -16
  161. package/build/lib/commands/screenshots.js.map +1 -1
  162. package/build/lib/commands/simctl.d.ts +16 -22
  163. package/build/lib/commands/simctl.d.ts.map +1 -1
  164. package/build/lib/commands/simctl.js +13 -17
  165. package/build/lib/commands/simctl.js.map +1 -1
  166. package/build/lib/commands/source.d.ts +10 -8
  167. package/build/lib/commands/source.d.ts.map +1 -1
  168. package/build/lib/commands/source.js +11 -14
  169. package/build/lib/commands/source.js.map +1 -1
  170. package/build/lib/commands/timeouts.d.ts +25 -32
  171. package/build/lib/commands/timeouts.d.ts.map +1 -1
  172. package/build/lib/commands/timeouts.js +19 -15
  173. package/build/lib/commands/timeouts.js.map +1 -1
  174. package/build/lib/commands/types.d.ts +80 -0
  175. package/build/lib/commands/types.d.ts.map +1 -1
  176. package/build/lib/commands/web.d.ts +199 -202
  177. package/build/lib/commands/web.d.ts.map +1 -1
  178. package/build/lib/commands/web.js +216 -175
  179. package/build/lib/commands/web.js.map +1 -1
  180. package/build/lib/commands/xctest-record-screen.d.ts +17 -47
  181. package/build/lib/commands/xctest-record-screen.d.ts.map +1 -1
  182. package/build/lib/commands/xctest-record-screen.js +28 -59
  183. package/build/lib/commands/xctest-record-screen.js.map +1 -1
  184. package/build/lib/commands/xctest.d.ts +37 -37
  185. package/build/lib/commands/xctest.d.ts.map +1 -1
  186. package/build/lib/commands/xctest.js +38 -50
  187. package/build/lib/commands/xctest.js.map +1 -1
  188. package/build/lib/desired-caps.js +1 -1
  189. package/build/lib/device/log/ios-simulator-log.d.ts.map +1 -1
  190. package/build/lib/device/log/ios-simulator-log.js +2 -0
  191. package/build/lib/device/log/ios-simulator-log.js.map +1 -1
  192. package/build/lib/device/simulator-management.d.ts.map +1 -1
  193. package/build/lib/device/simulator-management.js +0 -2
  194. package/build/lib/device/simulator-management.js.map +1 -1
  195. package/build/lib/doctor/optional-checks.d.ts +0 -9
  196. package/build/lib/doctor/optional-checks.d.ts.map +1 -1
  197. package/build/lib/doctor/optional-checks.js +1 -30
  198. package/build/lib/doctor/optional-checks.js.map +1 -1
  199. package/build/lib/driver.d.ts +6 -5
  200. package/build/lib/driver.d.ts.map +1 -1
  201. package/build/lib/driver.js +16 -14
  202. package/build/lib/driver.js.map +1 -1
  203. package/build/lib/execute-method-map.d.ts.map +1 -1
  204. package/build/lib/execute-method-map.js +0 -9
  205. package/build/lib/execute-method-map.js.map +1 -1
  206. package/lib/commands/active-app-info.ts +15 -0
  207. package/lib/commands/alert.ts +98 -0
  208. package/lib/commands/app-management.ts +414 -0
  209. package/lib/commands/{app-strings.js → app-strings.ts} +10 -9
  210. package/lib/commands/appearance.ts +70 -0
  211. package/lib/commands/audit.ts +25 -0
  212. package/lib/commands/{battery.js → battery.ts} +10 -12
  213. package/lib/commands/biometric.ts +52 -0
  214. package/lib/commands/{certificate.js → certificate.ts} +55 -50
  215. package/lib/commands/clipboard.ts +37 -0
  216. package/lib/commands/{condition.js → condition.ts} +21 -77
  217. package/lib/commands/content-size.ts +67 -0
  218. package/lib/commands/{context.js → context.ts} +174 -146
  219. package/lib/commands/device-info.ts +24 -0
  220. package/lib/commands/element.ts +419 -0
  221. package/lib/commands/{execute.js → execute.ts} +42 -38
  222. package/lib/commands/{file-movement.js → file-movement.ts} +212 -235
  223. package/lib/commands/find.ts +277 -0
  224. package/lib/commands/{general.js → general.ts} +102 -77
  225. package/lib/commands/geolocation.ts +55 -0
  226. package/lib/commands/{gesture.js → gesture.ts} +225 -183
  227. package/lib/commands/increase-contrast.ts +49 -0
  228. package/lib/commands/{iohid.js → iohid.ts} +15 -13
  229. package/lib/commands/keyboard.ts +70 -0
  230. package/lib/commands/keychains.ts +16 -0
  231. package/lib/commands/{localization.js → localization.ts} +22 -12
  232. package/lib/commands/{location.js → location.ts} +19 -22
  233. package/lib/commands/lock.ts +43 -0
  234. package/lib/commands/{log.js → log.ts} +68 -68
  235. package/lib/commands/{memory.js → memory.ts} +9 -9
  236. package/lib/commands/{navigation.js → navigation.ts} +42 -39
  237. package/lib/commands/{notifications.js → notifications.ts} +22 -14
  238. package/lib/commands/pasteboard.ts +44 -0
  239. package/lib/commands/{pcap.js → pcap.ts} +28 -28
  240. package/lib/commands/{performance.js → performance.ts} +133 -114
  241. package/lib/commands/permissions.ts +90 -0
  242. package/lib/commands/{proxy-helper.js → proxy-helper.ts} +26 -26
  243. package/lib/commands/{record-audio.js → record-audio.ts} +35 -33
  244. package/lib/commands/{recordscreen.js → recordscreen.ts} +78 -50
  245. package/lib/commands/{screenshots.js → screenshots.ts} +27 -21
  246. package/lib/commands/simctl.ts +82 -0
  247. package/lib/commands/{source.js → source.ts} +23 -20
  248. package/lib/commands/timeouts.ts +95 -0
  249. package/lib/commands/types.ts +86 -0
  250. package/lib/commands/{web.js → web.ts} +314 -264
  251. package/lib/commands/{xctest-record-screen.js → xctest-record-screen.ts} +54 -71
  252. package/lib/commands/{xctest.js → xctest.ts} +78 -71
  253. package/lib/desired-caps.ts +1 -1
  254. package/lib/device/log/ios-simulator-log.ts +2 -0
  255. package/lib/device/simulator-management.ts +0 -2
  256. package/lib/doctor/optional-checks.ts +0 -33
  257. package/lib/driver.ts +19 -17
  258. package/lib/execute-method-map.ts +0 -9
  259. package/package.json +6 -6
  260. package/lib/commands/active-app-info.js +0 -12
  261. package/lib/commands/alert.js +0 -88
  262. package/lib/commands/app-management.js +0 -346
  263. package/lib/commands/appearance.js +0 -71
  264. package/lib/commands/audit.js +0 -31
  265. package/lib/commands/biometric.js +0 -52
  266. package/lib/commands/clipboard.js +0 -35
  267. package/lib/commands/content-size.js +0 -68
  268. package/lib/commands/deviceInfo.js +0 -27
  269. package/lib/commands/element.js +0 -423
  270. package/lib/commands/find.js +0 -205
  271. package/lib/commands/geolocation.js +0 -56
  272. package/lib/commands/increase-contrast.js +0 -50
  273. package/lib/commands/keyboard.js +0 -62
  274. package/lib/commands/keychains.js +0 -17
  275. package/lib/commands/lock.js +0 -46
  276. package/lib/commands/pasteboard.js +0 -43
  277. package/lib/commands/permissions.js +0 -85
  278. package/lib/commands/simctl.js +0 -71
  279. package/lib/commands/timeouts.js +0 -68
@@ -1,13 +1,13 @@
1
+ import type { XCUITestDriver } from '../driver';
2
+ import type { BatteryInfo } from './types';
1
3
  /**
2
4
  * Reads the battery information from the device under test.
3
5
  *
4
6
  * This endpoint only returns reliable result on real devices.
5
7
  *
6
- * @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
7
- * @this {import('../driver').XCUITestDriver}
8
+ * @returns Battery information with advanced details
8
9
  */
9
- export function mobileGetBatteryInfo(this: import("../driver").XCUITestDriver): Promise<import("./types").BatteryInfo & {
10
+ export declare function mobileGetBatteryInfo(this: XCUITestDriver): Promise<BatteryInfo & {
10
11
  advanced: Record<string, any>;
11
12
  }>;
12
- export type BatteryInfo = import("./types").BatteryInfo;
13
13
  //# sourceMappingURL=battery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,gFAHa,OAAO,CAAC,OAAO,SAAS,EAAE,WAAW,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAC,CAAC,CAgCpF;0BAGY,OAAO,SAAS,EAAE,WAAW"}
1
+ {"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../../lib/commands/battery.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEzC;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,WAAW,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAC,CAAC,CA2BxD"}
@@ -7,8 +7,7 @@ const utils_1 = require("../utils");
7
7
  *
8
8
  * This endpoint only returns reliable result on real devices.
9
9
  *
10
- * @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
11
- * @this {import('../driver').XCUITestDriver}
10
+ * @returns Battery information with advanced details
12
11
  */
13
12
  async function mobileGetBatteryInfo() {
14
13
  let batteryInfoFromShimService;
@@ -16,7 +15,7 @@ async function mobileGetBatteryInfo() {
16
15
  let remoteXPCConnection;
17
16
  try {
18
17
  const { Services } = await import('appium-ios-remotexpc');
19
- let { diagnosticsService, remoteXPC } = await Services.startDiagnosticsService(this.device.udid);
18
+ const { diagnosticsService, remoteXPC } = await Services.startDiagnosticsService(this.device.udid);
20
19
  remoteXPCConnection = remoteXPC;
21
20
  batteryInfoFromShimService = await diagnosticsService.ioregistry({
22
21
  ioClass: 'IOPMPowerSource',
@@ -33,13 +32,10 @@ async function mobileGetBatteryInfo() {
33
32
  }
34
33
  }
35
34
  }
36
- const batteryInfoFromWda = /** @type {import('./types').BatteryInfo}} */ (await this.proxyCommand('/wda/batteryInfo', 'GET'));
35
+ const batteryInfoFromWda = await this.proxyCommand('/wda/batteryInfo', 'GET');
37
36
  return {
38
37
  ...batteryInfoFromWda,
39
38
  advanced: batteryInfoFromShimService || {},
40
39
  };
41
40
  }
42
- /**
43
- * @typedef {import('./types').BatteryInfo} BatteryInfo
44
- */
45
41
  //# sourceMappingURL=battery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"battery.js","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":";;AAUA,oDA6BC;AAvCD,oCAA0C;AAE1C;;;;;;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  * Enrolls biometric authentication on a simulated device.
3
5
  *
4
- * @param {boolean} isEnabled - Whether to enable/disable biometric enrollment.
5
- * @throws {Error} If enrollment fails or the device is not a Simulator.
6
+ * @param isEnabled - Whether to enable/disable biometric enrollment.
7
+ * @throws If enrollment fails or the device is not a Simulator.
6
8
  * @group Simulator Only
7
- * @this {XCUITestDriver}
8
9
  */
9
- export function mobileEnrollBiometric(this: import("../driver").XCUITestDriver, isEnabled?: boolean): Promise<void>;
10
+ export declare function mobileEnrollBiometric(this: XCUITestDriver, isEnabled?: boolean): Promise<void>;
10
11
  /**
11
12
  * Emulates biometric match or non-match event on a simulated device.
12
13
  *
13
14
  * The biometric feature is expected to be already enrolled via {@linkcode mobileEnrollBiometric|mobile: enrollBiometric} before executing this.
14
15
  *
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.
16
+ * @param type - The biometric feature name.
17
+ * @param match - If `true`, simulate biometric match. If `false`, simulate biometric non-match.
18
+ * @throws If matching fails or the device is not a Simulator.
18
19
  * @group Simulator Only
19
- * @this {XCUITestDriver}
20
20
  */
21
- export function mobileSendBiometricMatch(this: import("../driver").XCUITestDriver, type?: import("./types").BiometricFeature, match?: boolean): Promise<void>;
21
+ export declare function mobileSendBiometricMatch(this: XCUITestDriver, type?: BiometricFeature, match?: boolean): Promise<void>;
22
22
  /**
23
23
  * Checks whether the biometric feature is currently enrolled on a simulated device.
24
24
  *
25
- * @returns {Promise<boolean>} `true` if biometric is enrolled.
26
- * @throws {Error} If the detection fails or the device is not a Simulator.
25
+ * @returns `true` if biometric is enrolled.
26
+ * @throws If the detection fails or the device is not a Simulator.
27
27
  * @group Simulator Only
28
- * @this {XCUITestDriver}
29
28
  */
30
- export function mobileIsBiometricEnrolled(this: import("../driver").XCUITestDriver): Promise<boolean>;
31
- export type XCUITestDriver = import("../driver").XCUITestDriver;
29
+ export declare function mobileIsBiometricEnrolled(this: XCUITestDriver): Promise<boolean>;
32
30
  //# sourceMappingURL=biometric.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"biometric.d.ts","sourceRoot":"","sources":["../../../lib/commands/biometric.js"],"names":[],"mappings":"AAIA;;;;;;;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"}
1
+ {"version":3,"file":"biometric.d.ts","sourceRoot":"","sources":["../../../lib/commands/biometric.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAK9C;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,cAAc,EACpB,SAAS,GAAE,OAAc,GACxB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,cAAc,EACpB,IAAI,GAAE,gBAA4B,EAClC,KAAK,GAAE,OAAc,GACpB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,OAAO,CAAC,CAElB"}
@@ -8,43 +8,34 @@ const assertSimulator = (driver) => utils_1.assertSimulator.call(driver, 'Biomet
8
8
  /**
9
9
  * Enrolls biometric authentication on a simulated device.
10
10
  *
11
- * @param {boolean} isEnabled - Whether to enable/disable biometric enrollment.
12
- * @throws {Error} If enrollment fails or the device is not a Simulator.
11
+ * @param isEnabled - Whether to enable/disable biometric enrollment.
12
+ * @throws If enrollment fails or the device is not a Simulator.
13
13
  * @group Simulator Only
14
- * @this {XCUITestDriver}
15
14
  */
16
15
  async function mobileEnrollBiometric(isEnabled = true) {
17
- assertSimulator(this);
18
- await /** @type {import('appium-ios-simulator').Simulator} */ (this.device).enrollBiometric(isEnabled);
16
+ await assertSimulator(this).enrollBiometric(isEnabled);
19
17
  }
20
18
  /**
21
19
  * Emulates biometric match or non-match event on a simulated device.
22
20
  *
23
21
  * The biometric feature is expected to be already enrolled via {@linkcode mobileEnrollBiometric|mobile: enrollBiometric} before executing this.
24
22
  *
25
- * @param {import('./types').BiometricFeature} type - The biometric feature name.
26
- * @param {boolean} match - If `true`, simulate biometic match. If `false`, simulate biometric non-match.
27
- * @throws {Error} If matching fails or the device is not a Simulator.
23
+ * @param type - The biometric feature name.
24
+ * @param match - If `true`, simulate biometric match. If `false`, simulate biometric non-match.
25
+ * @throws If matching fails or the device is not a Simulator.
28
26
  * @group Simulator Only
29
- * @this {XCUITestDriver}
30
27
  */
31
28
  async function mobileSendBiometricMatch(type = 'touchId', match = true) {
32
- assertSimulator(this);
33
- await /** @type {import('appium-ios-simulator').Simulator} */ (this.device).sendBiometricMatch(match, type);
29
+ await assertSimulator(this).sendBiometricMatch(match, type);
34
30
  }
35
31
  /**
36
32
  * Checks whether the biometric feature is currently enrolled on a simulated device.
37
33
  *
38
- * @returns {Promise<boolean>} `true` if biometric is enrolled.
39
- * @throws {Error} If the detection fails or the device is not a Simulator.
34
+ * @returns `true` if biometric is enrolled.
35
+ * @throws If the detection fails or the device is not a Simulator.
40
36
  * @group Simulator Only
41
- * @this {XCUITestDriver}
42
37
  */
43
38
  async function mobileIsBiometricEnrolled() {
44
- assertSimulator(this);
45
- return await /** @type {import('appium-ios-simulator').Simulator} */ (this.device).isBiometricEnrolled();
39
+ return await assertSimulator(this).isBiometricEnrolled();
46
40
  }
47
- /**
48
- * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
49
- */
50
41
  //# sourceMappingURL=biometric.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"biometric.js","sourceRoot":"","sources":["../../../lib/commands/biometric.js"],"names":[],"mappings":";;AAYA,sDAIC;AAaD,4DAIC;AAUD,8DAIC;AA/CD,oCAA6D;AAE7D,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,uBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AAE1F;;;;;;;GAOG;AACI,KAAK,UAAU,qBAAqB,CAAC,SAAS,GAAG,IAAI;IAC1D,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,MAAM,uDAAuD,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;AACzG,CAAC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,wBAAwB,CAAC,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,IAAI;IAC3E,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,MAAM,uDAAuD,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAC9G,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB;IAC7C,eAAe,CAAC,IAAI,CAAC,CAAC;IAEtB,OAAO,MAAM,uDAAuD,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,mBAAmB,EAAE,CAAC;AAC3G,CAAC;AAED;;GAEG"}
1
+ {"version":3,"file":"biometric.js","sourceRoot":"","sources":["../../../lib/commands/biometric.ts"],"names":[],"mappings":";;AAcA,sDAKC;AAYD,4DAMC;AASD,8DAIC;AAlDD,oCAA6D;AAK7D,MAAM,eAAe,GAAG,CAAC,MAAsB,EAAa,EAAE,CAAC,uBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AAErH;;;;;;GAMG;AACI,KAAK,UAAU,qBAAqB,CAEzC,YAAqB,IAAI;IAEzB,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;AACzD,CAAC;AAED;;;;;;;;;GASG;AACI,KAAK,UAAU,wBAAwB,CAE5C,OAAyB,SAAS,EAClC,QAAiB,IAAI;IAErB,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,yBAAyB;IAG7C,OAAO,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,CAAC;AAC3D,CAAC"}
@@ -1,10 +1,9 @@
1
+ import type { XCUITestDriver } from '../driver';
2
+ import type { CertificateList } from './types';
1
3
  /**
2
4
  * 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
5
  */
7
- export function parseCommonName(stringCertificate: string): string;
6
+ export declare function parseCommonName(stringCertificate: string): string;
8
7
  /**
9
8
  * Installs a custom certificate onto the device.
10
9
  *
@@ -12,14 +11,13 @@ export function parseCommonName(stringCertificate: string): string;
12
11
  * certificates on Simulator over CLI.
13
12
  *
14
13
  * 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
14
+ * @param 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
15
+ * @param commonName - Common name of the certificate. If this is not set, the command will try to parse it from the provided `content`.
16
+ * @param 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.
17
+ * @returns The content of the generated `.mobileconfig` file as
19
18
  * 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
19
  */
22
- export function mobileInstallCertificate(this: import("../driver").XCUITestDriver, content: string, commonName?: string, isRoot?: boolean): Promise<string | void>;
20
+ export declare function mobileInstallCertificate(this: XCUITestDriver, content: string, commonName?: string, isRoot?: boolean): Promise<string | void>;
23
21
  /**
24
22
  * Removes installed certificates.
25
23
  *
@@ -27,24 +25,21 @@ export function mobileInstallCertificate(this: import("../driver").XCUITestDrive
27
25
  *
28
26
  * @see https://github.com/YueChen-C/py-ios-device
29
27
  * @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)
28
+ * @param name - Name of the profile
29
+ * @returns Status acknowledgment if
30
+ * the certificate is successfully removed or 'None' (forwards pyidevice output)
34
31
  * @throws {Error} If attempting to remove certificates for a simulated device or if `py-ios-device` is not installed
35
32
  * @group Real Device Only
36
33
  */
37
- export function mobileRemoveCertificate(name: string): Promise<string>;
34
+ export declare function mobileRemoveCertificate(this: XCUITestDriver, name: string): Promise<string>;
38
35
  /**
39
36
  * Returns map of certificates installed on the real device.
40
37
  *
41
38
  * This only works _if and only if_ `py-ios-device` is installed on the same machine Appium is running on.
42
39
  * @since 4.10.0
43
40
  * @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.
41
+ * @returns An object describing the certificates installed on the real device.
45
42
  * @throws {Error} If attempting to list certificates for a simulated device or if `py-ios-device` is not installed
46
- * @this {XCUITestDriver}
47
43
  */
48
- export function mobileListCertificates(this: import("../driver").XCUITestDriver): Promise<import("./types").CertificateList>;
49
- export type XCUITestDriver = import("../driver").XCUITestDriver;
44
+ export declare function mobileListCertificates(this: XCUITestDriver): Promise<CertificateList>;
50
45
  //# sourceMappingURL=certificate.d.ts.map
@@ -1 +1 @@
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,CA2IhC;AAED;;;;;;;;;;;;;GAaG;AACH,8CAPW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAgB3B;AAED;;;;;;;;;GASG;AACH,kFAJa,OAAO,CAAC,OAAO,SAAS,EAAE,eAAe,CAAC,CAiBtD;6BA2NY,OAAO,WAAW,EAAE,cAAc"}
1
+ {"version":3,"file":"certificate.d.ts","sourceRoot":"","sources":["../../../lib/commands/certificate.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,SAAS,CAAC;AAoD7C;;GAEG;AACH,wBAAgB,eAAe,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAYjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,MAAM,EACnB,MAAM,UAAO,GACZ,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA0IxB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAajG;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAa3F"}
@@ -67,9 +67,6 @@ const LIBRE_SSL_PATTERN = /\/CN=([^\/]+)/; // eslint-disable-line no-useless-esc
67
67
  const OPEN_SSL_PATTERN = /,\sCN\s=\s([^,]+)/;
68
68
  /**
69
69
  * Parses the common name of the certificate from the given string.
70
- *
71
- * @param {string} stringCertificate
72
- * @returns {string} The common name of the certificate
73
70
  */
74
71
  function parseCommonName(stringCertificate) {
75
72
  const result = [LIBRE_SSL_PATTERN, OPEN_SSL_PATTERN].reduce((acc, r) => {
@@ -91,12 +88,11 @@ function parseCommonName(stringCertificate) {
91
88
  * certificates on Simulator over CLI.
92
89
  *
93
90
  * 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.
94
- * @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
95
- * @param {string} [commonName] - Common name of the certificate. If this is not set, the command will try to parse it from the provided `content`.
96
- * @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.
97
- * @returns {Promise<string|void>} The content of the generated `.mobileconfig` file as
91
+ * @param 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
92
+ * @param commonName - Common name of the certificate. If this is not set, the command will try to parse it from the provided `content`.
93
+ * @param 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.
94
+ * @returns The content of the generated `.mobileconfig` file as
98
95
  * 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.
99
- * @this {XCUITestDriver}
100
96
  */
101
97
  async function mobileInstallCertificate(content, commonName, isRoot = true) {
102
98
  if (lodash_1.default.isEmpty(content)) {
@@ -104,8 +100,10 @@ async function mobileInstallCertificate(content, commonName, isRoot = true) {
104
100
  }
105
101
  if (this.isSimulator()) {
106
102
  try {
107
- const methodName = isRoot ? 'addRootCertificate' : 'addCertificate';
108
- await /** @type {import('appium-ios-simulator').Simulator} */ (this.device).simctl[methodName](Buffer.from(content, 'base64').toString(), {
103
+ const methodName = isRoot
104
+ ? 'addRootCertificate'
105
+ : 'addCertificate';
106
+ await this.device.simctl[methodName](Buffer.from(content, 'base64').toString(), {
109
107
  raw: true,
110
108
  });
111
109
  return;
@@ -187,10 +185,11 @@ async function mobileInstallCertificate(content, commonName, isRoot = true) {
187
185
  }
188
186
  }
189
187
  else {
190
- await /** @type {import('appium-ios-simulator').Simulator} */ (this.device).openUrl(certUrl);
188
+ await this.device.openUrl(certUrl);
191
189
  }
192
190
  let isCertAlreadyInstalled = false;
193
- if (support_1.util.compareVersions(/** @type {string} */ (this.opts.platformVersion), '>=', '12.2')) {
191
+ const platformVersion = this.opts.platformVersion ?? '';
192
+ if (support_1.util.compareVersions(platformVersion, '>=', '12.2')) {
194
193
  if (await installPost122Certificate(this, cn)) {
195
194
  await clickElement(this, Settings.Profile);
196
195
  await trustCertificateInPreferences(this, cn);
@@ -236,10 +235,9 @@ async function mobileInstallCertificate(content, commonName, isRoot = true) {
236
235
  *
237
236
  * @see https://github.com/YueChen-C/py-ios-device
238
237
  * @since 4.19.2
239
- * @param {string} name - Name of the profile
240
- * @returns {Promise<string>} Returns status acknowledgment status if
241
- * tht certificate is successfully removed or 'None' (basically just
242
- * forwards the original pyidevice output)
238
+ * @param name - Name of the profile
239
+ * @returns Status acknowledgment if
240
+ * the certificate is successfully removed or 'None' (forwards pyidevice output)
243
241
  * @throws {Error} If attempting to remove certificates for a simulated device or if `py-ios-device` is not installed
244
242
  * @group Real Device Only
245
243
  */
@@ -247,6 +245,9 @@ async function mobileRemoveCertificate(name) {
247
245
  if (!this.isRealDevice()) {
248
246
  throw new driver_1.errors.NotImplementedError('This extension is only supported on real devices');
249
247
  }
248
+ if (!this.opts.udid) {
249
+ throw new Error('udid capability is required');
250
+ }
250
251
  const client = new py_ios_device_client_1.Pyidevice({
251
252
  udid: this.opts.udid,
252
253
  log: this.log,
@@ -260,9 +261,8 @@ async function mobileRemoveCertificate(name) {
260
261
  * This only works _if and only if_ `py-ios-device` is installed on the same machine Appium is running on.
261
262
  * @since 4.10.0
262
263
  * @see https://github.com/YueChen-C/py-ios-device
263
- * @returns {Promise<import('./types').CertificateList>} An object describing the certificates installed on the real device.
264
+ * @returns An object describing the certificates installed on the real device.
264
265
  * @throws {Error} If attempting to list certificates for a simulated device or if `py-ios-device` is not installed
265
- * @this {XCUITestDriver}
266
266
  */
267
267
  async function mobileListCertificates() {
268
268
  if (!this.isRealDevice()) {
@@ -282,7 +282,7 @@ async function mobileListCertificates() {
282
282
  * Extracts the common name of the certificate from the given buffer.
283
283
  *
284
284
  * @param {Buffer} certBuffer
285
- * @returns {Promise<string>} The common name of the certificate
285
+ * @returns The common name of the certificate
286
286
  */
287
287
  async function extractCommonName(certBuffer) {
288
288
  const tempCert = await support_1.tempDir.open({
@@ -309,7 +309,7 @@ async function extractCommonName(certBuffer) {
309
309
  * for more details on such profiles.
310
310
  *
311
311
  * @param {Buffer} certBuffer - The actual content of PEM certificate encoded into NodeJS buffer
312
- * @param {string} commonName - Certificate's common name
312
+ * @param commonName - Certificate's common name
313
313
  * @returns {Object} The encoded structure of the given certificate, which is ready to be passed
314
314
  * as an argument to plist builder
315
315
  * @throws {Error} If the given certificate cannot be parsed
@@ -386,10 +386,8 @@ async function trustCertificateInPreferences(driver, name) {
386
386
  value: `**/XCUIElementTypeCell[\`label == '${name}'\`]/**/XCUIElementTypeSwitch`,
387
387
  };
388
388
  await (0, asyncbox_1.retry)(5, async () => {
389
- await driver.mobileSwipe({
390
- element: await driver.findNativeElementOrElements('class name', 'XCUIElementTypeTable', false),
391
- direction: 'up',
392
- });
389
+ const tableEl = await driver.findNativeElementOrElements('class name', 'XCUIElementTypeTable', false);
390
+ await driver.mobileSwipe('up', undefined, tableEl);
393
391
  await clickElement(driver, Settings.Certificate_Trust_Settings, {
394
392
  timeout: 500,
395
393
  });
@@ -431,10 +429,8 @@ async function installPost122Certificate(driver, name) {
431
429
  isCertFound = true;
432
430
  break;
433
431
  }
434
- await driver.mobileSwipe({
435
- element: await driver.findNativeElementOrElements('class name', 'XCUIElementTypeTable', false),
436
- direction: 'up',
437
- });
432
+ const tableEl = await driver.findNativeElementOrElements('class name', 'XCUIElementTypeTable', false);
433
+ await driver.mobileSwipe('up', undefined, tableEl);
438
434
  }
439
435
  if (!isCertFound) {
440
436
  throw new Error(`'${name}' cannot be found in the certificates list`);
@@ -454,7 +450,4 @@ async function installPost122Certificate(driver, name) {
454
450
  await clickElement(driver, Button.Done);
455
451
  return true;
456
452
  }
457
- /**
458
- * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
459
- */
460
453
  //# sourceMappingURL=certificate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"certificate.js","sourceRoot":"","sources":["../../../lib/commands/certificate.js"],"names":[],"mappings":";;;;;AAoEA,0CAYC;AAgBD,4DAuIC;AAgBD,0DAUC;AAYD,wDAaC;AA1RD,oDAAuB;AACvB,4CAAwD;AACxD,uCAAgE;AAChE,wDAAyB;AACzB,4CAAoB;AACpB,gDAAwB;AACxB,gDAAwB;AACxB,+CAAkC;AAClC,6CAA+D;AAC/D,iFAAiE;AACjE,0CAAqC;AAErC,MAAM,gBAAgB,GAAG,cAAc,CAAC;AACxC,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACvC,MAAM,yBAAyB,GAAG,IAAI,C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B,KAAK,IAAI,QAAQ,GAAG,CAAC,EAAE,QAAQ,GAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC;QAChD,IACE,MAAM,YAAY,CAChB,MAAM,EACN;YACE,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,sCAAsC,IAAI,MAAM;SACxD,EACD;YACE,OAAO,EAAE,GAAG;YACZ,eAAe,EAAE,IAAI;SACtB,CACF,EACD,CAAC;YACD,WAAW,GAAG,IAAI,CAAC;YACnB,MAAM;QACR,CAAC;QAED,MAAM,MAAM,CAAC,WAAW,CAAC;YACvB,OAAO,EAAE,MAAM,MAAM,CAAC,2BAA2B,CAC/C,YAAY,EACZ,sBAAsB,EACtB,KAAK,CACN;YACD,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;IACL,CAAC;IACD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,IAAI,IAAI,4CAA4C,CAAC,CAAC;IACxE,CAAC;IAED,kEAAkE;IAClE,IACE,CAAC,CAAC,MAAM,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE;QAC3C,eAAe,EAAE,IAAI;KACtB,CAAC,CAAC,EACH,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,kBAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB,iCAAiC;IACjC,MAAM,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,eAAe;IACf,MAAM,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC1C,4BAA4B;IAC5B,MAAM,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAExC,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG"}
1
+ {"version":3,"file":"certificate.js","sourceRoot":"","sources":["../../../lib/commands/certificate.ts"],"names":[],"mappings":";;;;;AAoEA,0CAYC;AAeD,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ACf,CAAC;IACD,MAAM,kBAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB,iCAAiC;IACjC,MAAM,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,eAAe;IACf,MAAM,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC1C,4BAA4B;IAC5B,MAAM,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAExC,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,21 +1,19 @@
1
+ import type { XCUITestDriver } from '../driver';
1
2
  /**
2
3
  * Sets the primary clipboard's content on the device under test.
3
4
  *
4
- * @param {string} content - The content to be set as base64 encoded string.
5
- * @param {string} [contentType=plaintext] - The type of the content to set.
6
- * Only `plaintext`, 'image and 'url' are supported.
7
- * @this {XCUITestDriver}
5
+ * @param content - The content to be set as base64 encoded string.
6
+ * @param contentType - The type of the content to set.
7
+ * Only `plaintext`, 'image' and 'url' are supported.
8
8
  */
9
- export function setClipboard(this: import("../driver").XCUITestDriver, content: string, contentType?: string): Promise<void>;
9
+ export declare function setClipboard(this: XCUITestDriver, content: string, contentType?: string): Promise<void>;
10
10
  /**
11
11
  * Gets the content of the primary clipboard on the device under test.
12
12
  *
13
- * @param {string} [contentType=plaintext] - The type of the content to get.
14
- * Only `plaintext`, 'image and 'url' are supported.
15
- * @returns {Promise<string>} The actual clipboard content encoded into base64 string.
13
+ * @param contentType - The type of the content to get.
14
+ * Only `plaintext`, 'image' and 'url' are supported.
15
+ * @returns The actual clipboard content encoded into base64 string.
16
16
  * An empty string is returned if the clipboard contains no data.
17
- * @this {XCUITestDriver}
18
17
  */
19
- export function getClipboard(this: import("../driver").XCUITestDriver, contentType?: string): Promise<string>;
20
- export type XCUITestDriver = import("../driver").XCUITestDriver;
18
+ export declare function getClipboard(this: XCUITestDriver, contentType?: string): Promise<string>;
21
19
  //# sourceMappingURL=clipboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../lib/commands/clipboard.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,gFALW,MAAM,gBACN,MAAM,iBAShB;AAED;;;;;;;;GAQG;AACH,qFANW,MAAM,GAEJ,OAAO,CAAC,MAAM,CAAC,CAU3B;6BAGY,OAAO,WAAW,EAAE,cAAc"}
1
+ {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../lib/commands/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAE9C;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAKf;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,cAAc,EACpB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,CAAC,CAIjB"}
@@ -5,10 +5,9 @@ exports.getClipboard = getClipboard;
5
5
  /**
6
6
  * Sets the primary clipboard's content on the device under test.
7
7
  *
8
- * @param {string} content - The content to be set as base64 encoded string.
9
- * @param {string} [contentType=plaintext] - The type of the content to set.
10
- * Only `plaintext`, 'image and 'url' are supported.
11
- * @this {XCUITestDriver}
8
+ * @param content - The content to be set as base64 encoded string.
9
+ * @param contentType - The type of the content to set.
10
+ * Only `plaintext`, 'image' and 'url' are supported.
12
11
  */
13
12
  async function setClipboard(content, contentType) {
14
13
  await this.proxyCommand('/wda/setPasteboard', 'POST', {
@@ -19,18 +18,14 @@ async function setClipboard(content, contentType) {
19
18
  /**
20
19
  * Gets the content of the primary clipboard on the device under test.
21
20
  *
22
- * @param {string} [contentType=plaintext] - The type of the content to get.
23
- * Only `plaintext`, 'image and 'url' are supported.
24
- * @returns {Promise<string>} The actual clipboard content encoded into base64 string.
21
+ * @param contentType - The type of the content to get.
22
+ * Only `plaintext`, 'image' and 'url' are supported.
23
+ * @returns The actual clipboard content encoded into base64 string.
25
24
  * An empty string is returned if the clipboard contains no data.
26
- * @this {XCUITestDriver}
27
25
  */
28
26
  async function getClipboard(contentType) {
29
- return /** @type {string} */ (await this.proxyCommand('/wda/getPasteboard', 'POST', {
27
+ return await this.proxyCommand('/wda/getPasteboard', 'POST', {
30
28
  contentType,
31
- }));
29
+ });
32
30
  }
33
- /**
34
- * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
35
- */
36
31
  //# sourceMappingURL=clipboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../../../lib/commands/clipboard.js"],"names":[],"mappings":";;AAQA,oCAKC;AAWD,oCAMC;AA9BD;;;;;;;GAOG;AACI,KAAK,UAAU,YAAY,CAAC,OAAO,EAAE,WAAW;IACrD,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,MAAM,EAAE;QACpD,OAAO;QACP,WAAW;KACZ,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;GAQG;AACI,KAAK,UAAU,YAAY,CAAC,WAAW;IAC5C,OAAO,qBAAqB,CAAC,CAC3B,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,MAAM,EAAE;QACpD,WAAW;KACZ,CAAC,CACH,CAAC;AACJ,CAAC;AAED;;GAEG"}
1
+ {"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../../../lib/commands/clipboard.ts"],"names":[],"mappings":";;AASA,oCASC;AAUD,oCAOC;AAjCD;;;;;;GAMG;AACI,KAAK,UAAU,YAAY,CAEhC,OAAe,EACf,WAAoB;IAEpB,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,MAAM,EAAE;QACpD,OAAO;QACP,WAAW;KACZ,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,YAAY,CAEhC,WAAoB;IAEpB,OAAO,MAAM,IAAI,CAAC,YAAY,CAAc,oBAAoB,EAAE,MAAM,EAAE;QACxE,WAAW;KACZ,CAAC,CAAC;AACL,CAAC"}