@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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,97 @@
1
+ ## [10.14.6](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.5...v10.14.6) (2026-01-07)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * Migrate the rest of commands to typescript (part 10) ([#2697](https://github.com/appium/appium-xcuitest-driver/issues/2697)) ([73a5cde](https://github.com/appium/appium-xcuitest-driver/commit/73a5cdee66df6df5d78e4518c603d4dad2b780d7))
6
+
7
+ ## [10.14.5](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.4...v10.14.5) (2026-01-06)
8
+
9
+ ### Miscellaneous Chores
10
+
11
+ * Migrate various commands to typescript (part 9) ([#2695](https://github.com/appium/appium-xcuitest-driver/issues/2695)) ([615b21f](https://github.com/appium/appium-xcuitest-driver/commit/615b21f166ad967e9cb6b3962c9dfed1c7b267e3))
12
+
13
+ ## [10.14.4](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.3...v10.14.4) (2026-01-05)
14
+
15
+ ### Miscellaneous Chores
16
+
17
+ * Migrate various commands to typescript (part 8) ([#2694](https://github.com/appium/appium-xcuitest-driver/issues/2694)) ([a8438e3](https://github.com/appium/appium-xcuitest-driver/commit/a8438e3d3bd497ba5c3c8b11c03927463a364213))
18
+
19
+ ## [10.14.3](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.2...v10.14.3) (2026-01-04)
20
+
21
+ ### Miscellaneous Chores
22
+
23
+ * Migrate various command modules to typescript (part 7) ([#2693](https://github.com/appium/appium-xcuitest-driver/issues/2693)) ([1286364](https://github.com/appium/appium-xcuitest-driver/commit/128636475c1eac6ea5c73da3dcebb2eb9d539c4d))
24
+
25
+ ## [10.14.2](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.1...v10.14.2) (2026-01-01)
26
+
27
+ ### Miscellaneous Chores
28
+
29
+ * Migrate various command modules to typescript (part 6) ([#2692](https://github.com/appium/appium-xcuitest-driver/issues/2692)) ([3736824](https://github.com/appium/appium-xcuitest-driver/commit/37368246181f2e4096ce80ae76e3d458ea39c711))
30
+
31
+ ## [10.14.1](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.0...v10.14.1) (2025-12-31)
32
+
33
+ ### Miscellaneous Chores
34
+
35
+ * Migrate various command modules to typescript (part 5) ([#2691](https://github.com/appium/appium-xcuitest-driver/issues/2691)) ([0cd46fd](https://github.com/appium/appium-xcuitest-driver/commit/0cd46fdc6fb62df5ee61e8008f53a65f1aec4c5d))
36
+
37
+ ## [10.14.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.4...v10.14.0) (2025-12-30)
38
+
39
+ ### Features
40
+
41
+ * add documentation for customActions ([#2690](https://github.com/appium/appium-xcuitest-driver/issues/2690)) ([c8a0473](https://github.com/appium/appium-xcuitest-driver/commit/c8a04730a62353752a5142dab04115e3afe155db))
42
+
43
+ ## [10.13.4](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.3...v10.13.4) (2025-12-30)
44
+
45
+ ### Miscellaneous Chores
46
+
47
+ * Migrate various command modules to typescript (part 4) ([#2689](https://github.com/appium/appium-xcuitest-driver/issues/2689)) ([e7da99b](https://github.com/appium/appium-xcuitest-driver/commit/e7da99b79461927b785ec518475ee604c163fdc9))
48
+
49
+ ## [10.13.3](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.2...v10.13.3) (2025-12-28)
50
+
51
+ ### Miscellaneous Chores
52
+
53
+ * Migrate various command modules to typescript ([#2688](https://github.com/appium/appium-xcuitest-driver/issues/2688)) ([43489ba](https://github.com/appium/appium-xcuitest-driver/commit/43489ba00eef50c1e026ba878c31859de63849e9))
54
+
55
+ ## [10.13.2](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.1...v10.13.2) (2025-12-23)
56
+
57
+ ### Miscellaneous Chores
58
+
59
+ * Migrate various command modules (part 2) ([#2687](https://github.com/appium/appium-xcuitest-driver/issues/2687)) ([3b47a66](https://github.com/appium/appium-xcuitest-driver/commit/3b47a664379bf5b1d20472ce83c74ce34ab7a661))
60
+
61
+ ## [10.13.1](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.0...v10.13.1) (2025-12-23)
62
+
63
+ ### Bug Fixes
64
+
65
+ * prevent raising error in safari session ([#2686](https://github.com/appium/appium-xcuitest-driver/issues/2686)) ([7c7f5cb](https://github.com/appium/appium-xcuitest-driver/commit/7c7f5cbe6d27634ce52d9024b40673973be0289c))
66
+
67
+ ## [10.13.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.12.2...v10.13.0) (2025-12-23)
68
+
69
+ ### Features
70
+
71
+ * Migrate various command modules to typescript (part 1) ([#2683](https://github.com/appium/appium-xcuitest-driver/issues/2683)) ([c0b53ba](https://github.com/appium/appium-xcuitest-driver/commit/c0b53ba8fd212ce09f9d4c4d45f869a7c3f40fd2))
72
+
73
+ ## [10.12.2](https://github.com/appium/appium-xcuitest-driver/compare/v10.12.1...v10.12.2) (2025-12-22)
74
+
75
+ ### Miscellaneous Chores
76
+
77
+ * **deps:** bump teen_process from 3.0.6 to 4.0.4 ([#2684](https://github.com/appium/appium-xcuitest-driver/issues/2684)) ([005e984](https://github.com/appium/appium-xcuitest-driver/commit/005e9846229fc2d4bcb468758f4e653a295599e6))
78
+
79
+ ## [10.12.1](https://github.com/appium/appium-xcuitest-driver/compare/v10.12.0...v10.12.1) (2025-12-22)
80
+
81
+ ### Miscellaneous Chores
82
+
83
+ * Bump major appium-webdriveragent version to 11 ([#2682](https://github.com/appium/appium-xcuitest-driver/issues/2682)) ([c70e413](https://github.com/appium/appium-xcuitest-driver/commit/c70e4138a151932b4cd5a81b020660b0220f70f3))
84
+
85
+ ## [10.12.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.11.0...v10.12.0) (2025-12-18)
86
+
87
+ ### Features
88
+
89
+ * Add `enforceCustomSnapshots` setting ([#2680](https://github.com/appium/appium-xcuitest-driver/issues/2680)) ([6758bee](https://github.com/appium/appium-xcuitest-driver/commit/6758beea9d8580d8e4d983b213b07cb96c5e63de))
90
+
91
+ ### Miscellaneous Chores
92
+
93
+ * **deps:** bump asyncbox from 3.0.0 to 4.0.1 ([#2681](https://github.com/appium/appium-xcuitest-driver/issues/2681)) ([6998151](https://github.com/appium/appium-xcuitest-driver/commit/6998151da802a57276e2149eb21844e087f0430a))
94
+
1
95
  ## [10.11.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.10.1...v10.11.0) (2025-12-13)
2
96
 
3
97
  ### Features
@@ -1,9 +1,10 @@
1
+ import type { XCUITestDriver } from '../driver';
2
+ import type { ActiveAppInfo } from './types';
1
3
  /**
2
4
  * Returns information about the active application.
3
5
  *
4
- * @returns {Promise<import('./types').ActiveAppInfo>} Active app information
6
+ * @returns Active app information
5
7
  * @throws {Error} if an error raised by command
6
- * @this {import('../driver').XCUITestDriver}
7
8
  */
8
- export function mobileGetActiveAppInfo(this: import("../driver").XCUITestDriver): Promise<import("./types").ActiveAppInfo>;
9
+ export declare function mobileGetActiveAppInfo(this: XCUITestDriver): Promise<ActiveAppInfo>;
9
10
  //# sourceMappingURL=active-app-info.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"active-app-info.d.ts","sourceRoot":"","sources":["../../../lib/commands/active-app-info.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,kFAJa,OAAO,CAAC,OAAO,SAAS,EAAE,aAAa,CAAC,CAQpD"}
1
+ {"version":3,"file":"active-app-info.d.ts","sourceRoot":"","sources":["../../../lib/commands/active-app-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAE3C;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,aAAa,CAAC,CAExB"}
@@ -4,11 +4,10 @@ exports.mobileGetActiveAppInfo = mobileGetActiveAppInfo;
4
4
  /**
5
5
  * Returns information about the active application.
6
6
  *
7
- * @returns {Promise<import('./types').ActiveAppInfo>} Active app information
7
+ * @returns Active app information
8
8
  * @throws {Error} if an error raised by command
9
- * @this {import('../driver').XCUITestDriver}
10
9
  */
11
10
  async function mobileGetActiveAppInfo() {
12
- return /** @type {import('./types').ActiveAppInfo} */ (await this.proxyCommand('/wda/activeAppInfo', 'GET'));
11
+ return await this.proxyCommand('/wda/activeAppInfo', 'GET');
13
12
  }
14
13
  //# sourceMappingURL=active-app-info.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"active-app-info.js","sourceRoot":"","sources":["../../../lib/commands/active-app-info.js"],"names":[],"mappings":";;AAOA,wDAIC;AAXD;;;;;;GAMG;AACI,KAAK,UAAU,sBAAsB;IAC1C,OAAO,8CAA8C,CAAC,CACpD,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,KAAK,CAAC,CACrD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"active-app-info.js","sourceRoot":"","sources":["../../../lib/commands/active-app-info.ts"],"names":[],"mappings":";;AASA,wDAIC;AAVD;;;;;GAKG;AACI,KAAK,UAAU,sBAAsB;IAG1C,OAAO,MAAM,IAAI,CAAC,YAAY,CAAyB,oBAAoB,EAAE,KAAK,CAAC,CAAC;AACtF,CAAC"}
@@ -1,45 +1,40 @@
1
+ import type { XCUITestDriver } from '../driver';
2
+ export type AlertAction = 'accept' | 'dismiss' | 'getButtons';
1
3
  /**
2
- * @this {XCUITestDriver}
3
- */
4
- export function getAlertText(this: import("../driver").XCUITestDriver): Promise<string | null>;
5
- /**
6
- * @param {string} value
7
- * @this {XCUITestDriver}
8
- * @returns {Promise<void>}
4
+ * Gets the text of the currently displayed alert.
5
+ *
6
+ * @returns The alert text, or null if no alert is displayed
9
7
  */
10
- export function setAlertText(this: import("../driver").XCUITestDriver, value: string): Promise<void>;
8
+ export declare function getAlertText(this: XCUITestDriver): Promise<string | null>;
11
9
  /**
12
- * @param { {buttonLabel?: string} } opts
13
- * @returns {Promise<void>}
14
- * @this {XCUITestDriver}
10
+ * Sets the text in an alert input field.
11
+ *
12
+ * @param value - The text to set
15
13
  */
16
- export function postAcceptAlert(this: import("../driver").XCUITestDriver, opts?: {
17
- buttonLabel?: string;
18
- }): Promise<void>;
14
+ export declare function setAlertText(this: XCUITestDriver, value: string): Promise<void>;
19
15
  /**
20
- * @param { {buttonLabel?: string} } opts
21
- * @returns {Promise<void>}
22
- * @this {XCUITestDriver}
16
+ * Accepts the currently displayed alert.
17
+ *
18
+ * @param opts - Options including optional button label
23
19
  */
24
- export function postDismissAlert(this: import("../driver").XCUITestDriver, opts?: {
25
- buttonLabel?: string;
26
- }): Promise<void>;
20
+ export declare function postAcceptAlert(this: XCUITestDriver, opts?: AlertOptions): Promise<void>;
27
21
  /**
28
- * @internal
29
- * @this {XCUITestDriver}
30
- * @returns {Promise<string[]>} The list of button labels
22
+ * Dismisses the currently displayed alert.
23
+ *
24
+ * @param opts - Options including optional button label
31
25
  */
32
- export function getAlertButtons(this: import("../driver").XCUITestDriver): Promise<string[]>;
26
+ export declare function postDismissAlert(this: XCUITestDriver, opts?: AlertOptions): Promise<void>;
33
27
  /**
34
28
  * Tries to apply the given action to the currently visible alert.
35
29
  *
36
- * @param {AlertAction} action - The actual action to apply.
37
- * @param {string} [buttonLabel] - The name of the button used to perform the chosen alert action. Only makes sense if the action is `accept` or `dismiss`.
38
- * @returns {Promise<string[]|void>} If `action` is `getButtons`, a list of alert button labelsp; otherwise nothing.
30
+ * @param action - The actual action to apply
31
+ * @param buttonLabel - The name of the button used to perform the chosen alert action. Only makes sense if the action is `accept` or `dismiss`
32
+ * @returns If `action` is `getButtons`, a list of alert button labels; otherwise nothing
39
33
  * @remarks This should really be separate commands.
40
- * @this {XCUITestDriver}
41
34
  */
42
- export function mobileHandleAlert(this: import("../driver").XCUITestDriver, action: AlertAction, buttonLabel?: string): Promise<string[] | void>;
43
- export type AlertAction = "accept" | "dismiss" | "getButtons";
44
- export type XCUITestDriver = import("../driver").XCUITestDriver;
35
+ export declare function mobileHandleAlert(this: XCUITestDriver, action: AlertAction, buttonLabel?: string): Promise<string[] | void>;
36
+ interface AlertOptions {
37
+ buttonLabel?: string;
38
+ }
39
+ export {};
45
40
  //# sourceMappingURL=alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":"AAAA;;GAEG;AACH,+FAEC;AAED;;;;GAIG;AACH,8EAJW,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;GAIG;AACH,iFAJY;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAC,GACrB,OAAO,CAAC,IAAI,CAAC,CAKzB;AAED;;;;GAIG;AACH,kFAJY;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAC,GACrB,OAAO,CAAC,IAAI,CAAC,CAKzB;AAED;;;;GAIG;AACH,2EAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAI7B;AAED;;;;;;;;GAQG;AACH,oFANW,WAAW,gBACX,MAAM,GACJ,OAAO,CAAC,MAAM,EAAE,GAAC,IAAI,CAAC,CAkBlC;0BAgBY,QAAQ,GAAC,SAAS,GAAC,YAAY;6BAI/B,OAAO,WAAW,EAAE,cAAc"}
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,CAAC;AAE9D;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAE/E;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,cAAc,EACpB,IAAI,GAAE,YAAiB,GACtB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,cAAc,EACpB,IAAI,GAAE,YAAiB,GACtB,OAAO,CAAC,IAAI,CAAC,CAEf;AAYD;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,WAAW,EACnB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAc1B;AAUD,UAAU,YAAY;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -7,51 +7,53 @@ exports.postDismissAlert = postDismissAlert;
7
7
  exports.getAlertButtons = getAlertButtons;
8
8
  exports.mobileHandleAlert = mobileHandleAlert;
9
9
  /**
10
- * @this {XCUITestDriver}
10
+ * Gets the text of the currently displayed alert.
11
+ *
12
+ * @returns The alert text, or null if no alert is displayed
11
13
  */
12
14
  async function getAlertText() {
13
- return /** @type {string|null} */ (await this.proxyCommand('/alert/text', 'GET'));
15
+ return await this.proxyCommand('/alert/text', 'GET');
14
16
  }
15
17
  /**
16
- * @param {string} value
17
- * @this {XCUITestDriver}
18
- * @returns {Promise<void>}
18
+ * Sets the text in an alert input field.
19
+ *
20
+ * @param value - The text to set
19
21
  */
20
22
  async function setAlertText(value) {
21
23
  await this.proxyCommand('/alert/text', 'POST', { value });
22
24
  }
23
25
  /**
24
- * @param { {buttonLabel?: string} } opts
25
- * @returns {Promise<void>}
26
- * @this {XCUITestDriver}
26
+ * Accepts the currently displayed alert.
27
+ *
28
+ * @param opts - Options including optional button label
27
29
  */
28
30
  async function postAcceptAlert(opts = {}) {
29
31
  await this.proxyCommand('/alert/accept', 'POST', toAlertParams(opts));
30
32
  }
31
33
  /**
32
- * @param { {buttonLabel?: string} } opts
33
- * @returns {Promise<void>}
34
- * @this {XCUITestDriver}
34
+ * Dismisses the currently displayed alert.
35
+ *
36
+ * @param opts - Options including optional button label
35
37
  */
36
38
  async function postDismissAlert(opts = {}) {
37
39
  await this.proxyCommand('/alert/dismiss', 'POST', toAlertParams(opts));
38
40
  }
39
41
  /**
42
+ * Gets the list of button labels from the currently displayed alert.
43
+ *
44
+ * @returns The list of button labels
40
45
  * @internal
41
- * @this {XCUITestDriver}
42
- * @returns {Promise<string[]>} The list of button labels
43
46
  */
44
47
  async function getAlertButtons() {
45
- return /** @type {string[]} */ (await this.proxyCommand('/wda/alert/buttons', 'GET'));
48
+ return await this.proxyCommand('/wda/alert/buttons', 'GET');
46
49
  }
47
50
  /**
48
51
  * Tries to apply the given action to the currently visible alert.
49
52
  *
50
- * @param {AlertAction} action - The actual action to apply.
51
- * @param {string} [buttonLabel] - The name of the button used to perform the chosen alert action. Only makes sense if the action is `accept` or `dismiss`.
52
- * @returns {Promise<string[]|void>} If `action` is `getButtons`, a list of alert button labelsp; otherwise nothing.
53
+ * @param action - The actual action to apply
54
+ * @param buttonLabel - The name of the button used to perform the chosen alert action. Only makes sense if the action is `accept` or `dismiss`
55
+ * @returns If `action` is `getButtons`, a list of alert button labels; otherwise nothing
53
56
  * @remarks This should really be separate commands.
54
- * @this {XCUITestDriver}
55
57
  */
56
58
  async function mobileHandleAlert(action, buttonLabel) {
57
59
  switch (action) {
@@ -66,11 +68,6 @@ async function mobileHandleAlert(action, buttonLabel) {
66
68
  `'${action}' is provided instead.`);
67
69
  }
68
70
  }
69
- /**
70
- *
71
- * @param { {buttonLabel?: string} } opts
72
- * @returns { {name?: string} }
73
- */
74
71
  function toAlertParams(opts = {}) {
75
72
  const params = {};
76
73
  if (opts.buttonLabel) {
@@ -78,10 +75,4 @@ function toAlertParams(opts = {}) {
78
75
  }
79
76
  return params;
80
77
  }
81
- /**
82
- * @typedef {'accept'|'dismiss'|'getButtons'} AlertAction
83
- */
84
- /**
85
- * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
86
- */
87
78
  //# sourceMappingURL=alert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":";;AAGA,oCAEC;AAOD,oCAEC;AAOD,0CAEC;AAOD,4CAEC;AAOD,0CAEC;AAWD,8CAcC;AAlED;;GAEG;AACI,KAAK,UAAU,YAAY;IAChC,OAAO,0BAA0B,CAAC,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;AACpF,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,YAAY,CAAC,KAAK;IACtC,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,EAAC,KAAK,EAAC,CAAC,CAAC;AAC1D,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,eAAe,CAAC,IAAI,GAAG,EAAE;IAC7C,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,gBAAgB,CAAC,IAAI,GAAG,EAAE;IAC9C,MAAM,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AACzE,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,eAAe;IACnC,OAAO,uBAAuB,CAAC,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC,CAAC;AACxF,CAAC;AAED;;;;;;;;GAQG;AACI,KAAK,UAAU,iBAAiB,CAAC,MAAM,EAAE,WAAW;IACzD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,QAAQ;YACX,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,EAAC,WAAW,EAAC,CAAC,CAAC;QACnD,KAAK,SAAS;YACZ,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,EAAC,WAAW,EAAC,CAAC,CAAC;QACpD,KAAK,YAAY;YACf,OAAO,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QACtC;YACE,MAAM,IAAI,KAAK,CACb,2EAA2E;gBACzE,IAAI,MAAM,wBAAwB,CACrC,CAAC;IACN,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,aAAa,CAAC,IAAI,GAAG,EAAE;IAC9B,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC;IACjC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AAEH;;GAEG"}
1
+ {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../lib/commands/alert.ts"],"names":[],"mappings":";;AASA,oCAEC;AAOD,oCAKC;AAOD,0CAKC;AAOD,4CAKC;AAQD,0CAEC;AAUD,8CAkBC;AAjFD;;;;GAIG;AACI,KAAK,UAAU,YAAY;IAChC,OAAO,MAAM,IAAI,CAAC,YAAY,CAAqB,aAAa,EAAE,KAAK,CAAC,CAAC;AAC3E,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,YAAY,CAEhC,KAAa;IAEb,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,EAAC,KAAK,EAAC,CAAC,CAAC;AAC1D,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,eAAe,CAEnC,OAAqB,EAAE;IAEvB,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,gBAAgB,CAEpC,OAAqB,EAAE;IAEvB,MAAM,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AACzE,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,eAAe;IACnC,OAAO,MAAM,IAAI,CAAC,YAAY,CAAgB,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,iBAAiB,CAErC,MAAmB,EACnB,WAAoB;IAEpB,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,QAAQ;YACX,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,EAAC,WAAW,EAAC,CAAC,CAAC;QACnD,KAAK,SAAS;YACZ,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,EAAC,WAAW,EAAC,CAAC,CAAC;QACpD,KAAK,YAAY;YACf,OAAO,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QACtC;YACE,MAAM,IAAI,KAAK,CACb,2EAA2E;gBACzE,IAAI,MAAM,wBAAwB,CACrC,CAAC;IACN,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,OAAqB,EAAE;IAC5C,MAAM,MAAM,GAAoB,EAAE,CAAC;IACnC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC;IACjC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,65 +1,58 @@
1
+ import type { XCUITestDriver } from '../driver';
2
+ import type { AppState } from './enum';
1
3
  /**
2
4
  * Installs the given application to the device under test.
3
5
  *
4
6
  * Please ensure the app is built for a correct architecture and is signed with a proper developer signature (for real devices) prior to calling this.
5
- * @param {string} app - See docs for `appium:app` capability
6
- * @param {number} [timeoutMs] - The maximum time to wait until app install is finished (in ms) on real devices.
7
+ * @param app - See docs for `appium:app` capability
8
+ * @param timeoutMs - The maximum time to wait until app install is finished (in ms) on real devices.
7
9
  * If not provided, then the value of `appium:appPushTimeout` capability is used. If the capability is not provided then the default is 240000ms (4 minutes).
8
- * @param {boolean} [checkVersion] - If the application installation follows currently installed application's version status if provided.
10
+ * @param checkVersion - If the application installation follows currently installed application's version status if provided.
9
11
  * No checking occurs if no this option.
10
12
  * @privateRemarks Link to capability docs
11
- * @returns {Promise<void>}
12
- * @this {XCUITestDriver}
13
13
  */
14
- export function mobileInstallApp(this: import("../driver").XCUITestDriver, app: string, timeoutMs?: number, checkVersion?: boolean): Promise<void>;
14
+ export declare function mobileInstallApp(this: XCUITestDriver, app: string, timeoutMs?: number, checkVersion?: boolean): Promise<void>;
15
15
  /**
16
16
  * Checks whether the given application is installed on the device under test.
17
17
  * Offload app is handled as not installed.
18
18
  *
19
- * @param {string} bundleId - The bundle identifier of the application to be checked
20
- * @returns {Promise<boolean>} `true` if the application is installed; `false` otherwise
21
- * @this {XCUITestDriver}
19
+ * @param bundleId - The bundle identifier of the application to be checked
20
+ * @returns `true` if the application is installed; `false` otherwise
22
21
  */
23
- export function mobileIsAppInstalled(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
22
+ export declare function mobileIsAppInstalled(this: XCUITestDriver, bundleId: string): Promise<boolean>;
24
23
  /**
25
24
  * Removes/uninstalls the given application from the device under test.
26
25
  * Offload app data could also be removed.
27
26
  *
28
- * @param {string} bundleId - The bundle identifier of the application to be removed
29
- * @returns {Promise<boolean>} `true` if the application has been removed successfully; `false` otherwise
30
- * @this {XCUITestDriver}
27
+ * @param bundleId - The bundle identifier of the application to be removed
28
+ * @returns `true` if the application has been removed successfully; `false` otherwise
31
29
  */
32
- export function mobileRemoveApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
30
+ export declare function mobileRemoveApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
33
31
  /**
34
32
  * Executes the given app on the device under test.
35
33
  *
36
34
  * If the app is already running it will be activated. If the app is not installed or cannot be launched then an exception is thrown.
37
- * @param {string} bundleId - The bundle identifier of the application to be launched
38
- * @param {string|string[]} [args] - One or more command line arguments for the app. If the app is already running then this argument is ignored.
39
- * @param {object} [environment] - Environment variables mapping for the app. If the app is already running then this argument is ignored.
40
- * @returns {Promise<void>}
41
- * @this {XCUITestDriver}
35
+ * @param bundleId - The bundle identifier of the application to be launched
36
+ * @param args - One or more command line arguments for the app. If the app is already running then this argument is ignored.
37
+ * @param environment - Environment variables mapping for the app. If the app is already running then this argument is ignored.
42
38
  */
43
- export function mobileLaunchApp(this: import("../driver").XCUITestDriver, bundleId: string, args?: string | string[], environment?: object): Promise<void>;
39
+ export declare function mobileLaunchApp(this: XCUITestDriver, bundleId: string, args?: string | string[], environment?: Record<string, any>): Promise<void>;
44
40
  /**
45
41
  * Terminates the given app on the device under test.
46
42
  *
47
43
  * This command performs termination via [XCTest's `terminate`](https://developer.apple.com/documentation/xctest/xcuiapplication/1500637-terminate) API. If the app is not installed an exception is thrown. If the app is not running then nothing is done.
48
- * @param {string} bundleId - The bundle identifier of the application to be terminated
49
- * @returns {Promise<boolean>} `true` if the app has been terminated successfully; `false` otherwise
50
- * @this {XCUITestDriver}
44
+ * @param bundleId - The bundle identifier of the application to be terminated
45
+ * @returns `true` if the app has been terminated successfully; `false` otherwise
51
46
  */
52
- export function mobileTerminateApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
47
+ export declare function mobileTerminateApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
53
48
  /**
54
49
  * Activate the given app on the device under test.
55
50
  *
56
51
  * This pushes the app to the foreground if it is running in the background. An exception is thrown if the app is not install or isn't running. Nothing is done if the app is already in the foreground.
57
52
  *
58
- * @param {string} bundleId - The bundle identifier of the application to be activated
59
- * @returns {Promise<void>}
60
- * @this {XCUITestDriver}
53
+ * @param bundleId - The bundle identifier of the application to be activated
61
54
  */
62
- export function mobileActivateApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<void>;
55
+ export declare function mobileActivateApp(this: XCUITestDriver, bundleId: string): Promise<void>;
63
56
  /**
64
57
  * Kill the given app on the real device under test by instruments service.
65
58
  *
@@ -68,86 +61,116 @@ export function mobileActivateApp(this: import("../driver").XCUITestDriver, bund
68
61
  * @remarks `appium-xcuitest-driver` v4.4 does not require `py-ios-device` to be installed.
69
62
  * @privateRemarks See implementation at https://github.com/YueChen-C/py-ios-device/blob/51f4683c5c3c385a015858ada07a5f1c62d3cf57/ios_device/cli/base.py#L220
70
63
  * @see https://github.com/YueChen-C/py-ios-device
71
- * @param {string} bundleId - The bundle identifier of the application to be killed
72
- * @returns {Promise<boolean>} `true` if the app has been killed successfully; `false` otherwise
64
+ * @param bundleId - The bundle identifier of the application to be killed
65
+ * @returns `true` if the app has been killed successfully; `false` otherwise
73
66
  * @group Real Device Only
74
- * @this {XCUITestDriver}
75
67
  */
76
- export function mobileKillApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
68
+ export declare function mobileKillApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
77
69
  /**
78
70
  * Queries the state of an installed application from the device under test.
79
71
  *
80
72
  * If the app with the given `bundleId` is not installed, an exception will be thrown.
81
73
  *
82
- * @param {string} bundleId - The bundle identifier of the application to be queried
83
- * @returns {Promise<AppState>} The actual application state code
74
+ * @param bundleId - The bundle identifier of the application to be queried
75
+ * @returns The actual application state code
84
76
  * @see https://developer.apple.com/documentation/xctest/xcuiapplicationstate?language=objc
85
- * @this {XCUITestDriver}
86
77
  */
87
- export function mobileQueryAppState(this: import("../driver").XCUITestDriver, bundleId: string): Promise<AppState>;
78
+ export declare function mobileQueryAppState(this: XCUITestDriver, bundleId: string): Promise<AppState>;
88
79
  /**
89
- * @param {string} appPath
90
- * @param {object} opts
91
- * @this {XCUITestDriver}
80
+ * Installs the given application to the device under test.
81
+ *
82
+ * This is a wrapper around {@linkcode mobileInstallApp mobile: installApp}.
83
+ *
84
+ * @param appPath - Path to the application bundle or .ipa/.app file
85
+ * @param opts - Installation options
86
+ * @param opts.timeoutMs - Maximum time to wait for installation to complete (in milliseconds)
87
+ * @param opts.strategy - If `true`, checks the version before installing and skips if already installed
92
88
  */
93
- export function installApp(appPath: string, { timeoutMs, strategy }?: object): Promise<void>;
89
+ export declare function installApp(this: XCUITestDriver, appPath: string, opts?: {
90
+ timeoutMs?: number;
91
+ strategy?: boolean;
92
+ }): Promise<void>;
94
93
  /**
95
- * @param {string} bundleId
96
- * @param {object} opts
97
- * @this {XCUITestDriver}
94
+ * Activates the given app on the device under test.
95
+ *
96
+ * This is a wrapper around {@linkcode mobileLaunchApp mobile: launchApp}. If the app is already
97
+ * running, it will be activated (brought to foreground). If the app is not installed or cannot
98
+ * be launched, an exception is thrown.
99
+ *
100
+ * @param bundleId - The bundle identifier of the application to be activated
101
+ * @param opts - Launch options
102
+ * @param opts.environment - Environment variables mapping for the app
103
+ * @param opts.arguments - Command line arguments for the app
98
104
  */
99
- export function activateApp(bundleId: string, opts?: object, ...args: any[]): Promise<any>;
105
+ export declare function activateApp(this: XCUITestDriver, bundleId: string, opts?: {
106
+ environment?: Record<string, any>;
107
+ arguments?: string[];
108
+ }): Promise<void>;
100
109
  /**
101
- * @param {string} bundleId
102
- * @this {XCUITestDriver}
110
+ * Checks whether the given application is installed on the device under test.
111
+ *
112
+ * This is a wrapper around {@linkcode mobileIsAppInstalled mobile: isAppInstalled}.
113
+ * Offload apps are treated as not installed.
114
+ *
115
+ * @param bundleId - The bundle identifier of the application to be checked
116
+ * @returns `true` if the application is installed; `false` otherwise
103
117
  */
104
- export function isAppInstalled(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
118
+ export declare function isAppInstalled(this: XCUITestDriver, bundleId: string): Promise<boolean>;
105
119
  /**
106
- * @param {string} bundleId
107
- * @this {XCUITestDriver}
108
- * @returns {Promise<boolean>}
120
+ * Terminates the given app on the device under test.
121
+ *
122
+ * This is a wrapper around {@linkcode mobileTerminateApp mobile: terminateApp}.
123
+ * The command performs termination via XCTest's `terminate` API. If the app is not installed,
124
+ * an exception is thrown. If the app is not running, nothing is done.
125
+ *
126
+ * @param bundleId - The bundle identifier of the application to be terminated
127
+ * @returns `true` if the app has been terminated successfully; `false` otherwise
109
128
  */
110
- export function terminateApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
129
+ export declare function terminateApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
111
130
  /**
112
- * @param {string} bundleId
113
- * @this {XCUITestDriver}
131
+ * Queries the state of an installed application from the device under test.
132
+ *
133
+ * This is a wrapper around {@linkcode mobileQueryAppState mobile: queryAppState}.
134
+ * If the app with the given `bundleId` is not installed, an exception will be thrown.
135
+ *
136
+ * @param bundleId - The bundle identifier of the application to be queried
137
+ * @returns The actual application state code
138
+ * @see https://developer.apple.com/documentation/xctest/xcuiapplicationstate?language=objc
114
139
  */
115
- export function queryAppState(this: import("../driver").XCUITestDriver, bundleId: string): Promise<import("./enum").AppState>;
140
+ export declare function queryAppState(this: XCUITestDriver, bundleId: string): Promise<AppState>;
116
141
  /**
117
142
  * List applications installed on the real device under test
118
143
  *
119
144
  * Read [Pushing/Pulling files](https://appium.io/docs/en/writing-running-appium/ios/ios-xctest-file-movement/) for more details.
120
- * @param {'User'|'System'} applicationType - The type of applications to list.
121
- * @returns {Promise<Record<string,any>[]>} A list of apps where each item is a mapping of bundle identifiers to maps of platform-specific app properties.
145
+ * @param applicationType - The type of applications to list.
146
+ * @returns A list of apps where each item is a mapping of bundle identifiers to maps of platform-specific app properties.
122
147
  * @remarks Having `UIFileSharingEnabled` set to `true` in the return app properties map means this app supports file upload/download in its `documents` container.
123
148
  * @group Real Device Only
124
149
  */
125
- export function mobileListApps(applicationType?: "User" | "System"): Promise<Record<string, any>[]>;
150
+ export declare function mobileListApps(this: XCUITestDriver, applicationType?: 'User' | 'System'): Promise<Record<string, any>[]>;
126
151
  /**
127
152
  * Deletes application data files, so it could start from the clean state next time
128
153
  * it is launched.
129
154
  * This API only works on a Simulator.
130
155
  *
131
- * @param {string} bundleId Application bundle identifier
132
- * @this {XCUITestDriver}
133
- * @returns {Promise<boolean>} true if any files from the app's data container have been deleted
156
+ * @param bundleId Application bundle identifier
157
+ * @returns true if any files from the app's data container have been deleted
134
158
  */
135
- export function mobileClearApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
159
+ export declare function mobileClearApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
136
160
  /**
137
- * Close app (simulate device home button). It is possible to restore
138
- * the app after the timeout or keep it minimized based on the parameter value.
161
+ * Closes the app (simulates device home button press).
139
162
  *
140
- * @param {number|{timeout: number?}} [seconds]
141
- * - any positive number of seconds: come back after X seconds
142
- * - any negative number of seconds or zero: never come back
143
- * - undefined/null: never come back
144
- * - {timeout: 5000}: come back after 5 seconds
145
- * - {timeout: null}, {timeout: -2}: never come back
146
- * @this {XCUITestDriver}
147
- */
148
- export function background(this: import("../driver").XCUITestDriver, seconds?: number | {
149
- timeout: number | null;
150
- }): Promise<unknown>;
151
- export type XCUITestDriver = import("../driver").XCUITestDriver;
152
- export type AppState = import("./enum").AppState;
163
+ * It is possible to restore the app after a timeout or keep it minimized based on the parameter value.
164
+ *
165
+ * @param seconds - Timeout configuration. Accepts:
166
+ * - A positive number (seconds): app will be restored after the specified number of seconds
167
+ * - A negative number or zero: app will not be restored (kept minimized)
168
+ * - `undefined` or `null`: app will not be restored (kept minimized)
169
+ * - An object with `timeout` property:
170
+ * - `{timeout: 5000}`: app will be restored after 5 seconds (timeout in milliseconds)
171
+ * - `{timeout: null}` or `{timeout: -2}`: app will not be restored
172
+ */
173
+ export declare function background(this: XCUITestDriver, seconds?: number | {
174
+ timeout?: number | null;
175
+ }): Promise<void>;
153
176
  //# sourceMappingURL=app-management.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-management.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-management.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;;GAYG;AACH,gFATW,MAAM,cACN,MAAM,iBAEN,OAAO,GAGL,OAAO,CAAC,IAAI,CAAC,CA2CzB;AAED;;;;;;;GAOG;AACH,yFAJW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAO5B;AAED;;;;;;;GAOG;AACH,oFAJW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAgB5B;AAED;;;;;;;;;GASG;AACH,oFANW,MAAM,SACN,MAAM,GAAC,MAAM,EAAE,gBACf,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAazB;AAED;;;;;;;GAOG;AACH,uFAJW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAO5B;AAED;;;;;;;;GAQG;AACH,sFAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAKzB;AAED;;;;;;;;;;;;GAYG;AACH,kFALW,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CAY5B;AAED;;;;;;;;;GASG;AACH,wFALW,MAAM,GACJ,OAAO,CAAC,QAAQ,CAAC,CAM7B;AAED;;;;GAIG;AACH,oCAJW,MAAM,4BACN,MAAM,iBAMhB;AAED;;;;GAIG;AACH,sCAJW,MAAM,SACN,MAAM,gCAOhB;AAED;;;GAGG;AACH,mFAHW,MAAM,oBAKhB;AAED;;;;GAIG;AACH,iFAJW,MAAM,GAEJ,OAAO,CAAC,OAAO,CAAC,CAI5B;AAED;;;GAGG;AACH,kFAHW,MAAM,sCAKhB;AAED;;;;;;;;GAQG;AACH,iDALW,MAAM,GAAC,QAAQ,GACb,OAAO,CAAC,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC,EAAE,CAAC,CAezC;AAED;;;;;;;;GAQG;AACH,mFAJW,MAAM,GAEJ,OAAO,CAAC,OAAO,CAAC,CA6B5B;AAED;;;;;;;;;;;GAWG;AACH,+EARW,MAAM,GAAC;IAAC,OAAO,EAAE,MAAM,OAAC,CAAA;CAAC,oBAwCnC;6BAGY,OAAO,WAAW,EAAE,cAAc;uBAClC,OAAO,QAAQ,EAAE,QAAQ"}
1
+ {"version":3,"file":"app-management.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-management.ts"],"names":[],"mappings":"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"}