@limrun/appium-xcuitest-driver 10.4.3-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 (444) hide show
  1. package/CHANGELOG.md +2600 -0
  2. package/LICENSE +201 -0
  3. package/README.md +55 -0
  4. package/build/index.d.ts +5 -0
  5. package/build/index.js +41 -0
  6. package/build/lib/app-infos-cache.d.ts +62 -0
  7. package/build/lib/app-infos-cache.d.ts.map +1 -0
  8. package/build/lib/app-infos-cache.js +180 -0
  9. package/build/lib/app-infos-cache.js.map +1 -0
  10. package/build/lib/app-utils.d.ts +89 -0
  11. package/build/lib/app-utils.d.ts.map +1 -0
  12. package/build/lib/app-utils.js +657 -0
  13. package/build/lib/app-utils.js.map +1 -0
  14. package/build/lib/commands/active-app-info.d.ts +9 -0
  15. package/build/lib/commands/active-app-info.d.ts.map +1 -0
  16. package/build/lib/commands/active-app-info.js +14 -0
  17. package/build/lib/commands/active-app-info.js.map +1 -0
  18. package/build/lib/commands/advanced-battery-types.d.ts +444 -0
  19. package/build/lib/commands/advanced-battery-types.d.ts.map +1 -0
  20. package/build/lib/commands/advanced-battery-types.js +8 -0
  21. package/build/lib/commands/advanced-battery-types.js.map +1 -0
  22. package/build/lib/commands/alert.d.ts +45 -0
  23. package/build/lib/commands/alert.d.ts.map +1 -0
  24. package/build/lib/commands/alert.js +87 -0
  25. package/build/lib/commands/alert.js.map +1 -0
  26. package/build/lib/commands/app-management.d.ts +153 -0
  27. package/build/lib/commands/app-management.d.ts.map +1 -0
  28. package/build/lib/commands/app-management.js +323 -0
  29. package/build/lib/commands/app-management.js.map +1 -0
  30. package/build/lib/commands/app-strings.d.ts +16 -0
  31. package/build/lib/commands/app-strings.d.ts.map +1 -0
  32. package/build/lib/commands/app-strings.js +30 -0
  33. package/build/lib/commands/app-strings.js.map +1 -0
  34. package/build/lib/commands/appearance.d.ts +22 -0
  35. package/build/lib/commands/appearance.d.ts.map +1 -0
  36. package/build/lib/commands/appearance.js +74 -0
  37. package/build/lib/commands/appearance.js.map +1 -0
  38. package/build/lib/commands/audit.d.ts +43 -0
  39. package/build/lib/commands/audit.d.ts.map +1 -0
  40. package/build/lib/commands/audit.js +31 -0
  41. package/build/lib/commands/audit.js.map +1 -0
  42. package/build/lib/commands/battery.d.ts +13 -0
  43. package/build/lib/commands/battery.d.ts.map +1 -0
  44. package/build/lib/commands/battery.js +49 -0
  45. package/build/lib/commands/battery.js.map +1 -0
  46. package/build/lib/commands/bidi/constants.d.ts +6 -0
  47. package/build/lib/commands/bidi/constants.d.ts.map +1 -0
  48. package/build/lib/commands/bidi/constants.js +10 -0
  49. package/build/lib/commands/bidi/constants.js.map +1 -0
  50. package/build/lib/commands/bidi/models.d.ts +9 -0
  51. package/build/lib/commands/bidi/models.d.ts.map +1 -0
  52. package/build/lib/commands/bidi/models.js +54 -0
  53. package/build/lib/commands/bidi/models.js.map +1 -0
  54. package/build/lib/commands/bidi/types.d.ts +26 -0
  55. package/build/lib/commands/bidi/types.d.ts.map +1 -0
  56. package/build/lib/commands/bidi/types.js +4 -0
  57. package/build/lib/commands/bidi/types.js.map +1 -0
  58. package/build/lib/commands/biometric.d.ts +32 -0
  59. package/build/lib/commands/biometric.d.ts.map +1 -0
  60. package/build/lib/commands/biometric.js +54 -0
  61. package/build/lib/commands/biometric.js.map +1 -0
  62. package/build/lib/commands/certificate.d.ts +50 -0
  63. package/build/lib/commands/certificate.d.ts.map +1 -0
  64. package/build/lib/commands/certificate.js +454 -0
  65. package/build/lib/commands/certificate.js.map +1 -0
  66. package/build/lib/commands/clipboard.d.ts +21 -0
  67. package/build/lib/commands/clipboard.d.ts.map +1 -0
  68. package/build/lib/commands/clipboard.js +36 -0
  69. package/build/lib/commands/clipboard.js.map +1 -0
  70. package/build/lib/commands/condition.d.ts +102 -0
  71. package/build/lib/commands/condition.d.ts.map +1 -0
  72. package/build/lib/commands/condition.js +146 -0
  73. package/build/lib/commands/condition.js.map +1 -0
  74. package/build/lib/commands/content-size.d.ts +30 -0
  75. package/build/lib/commands/content-size.d.ts.map +1 -0
  76. package/build/lib/commands/content-size.js +67 -0
  77. package/build/lib/commands/content-size.js.map +1 -0
  78. package/build/lib/commands/context.d.ts +191 -0
  79. package/build/lib/commands/context.d.ts.map +1 -0
  80. package/build/lib/commands/context.js +625 -0
  81. package/build/lib/commands/context.js.map +1 -0
  82. package/build/lib/commands/deviceInfo.d.ts +12 -0
  83. package/build/lib/commands/deviceInfo.d.ts.map +1 -0
  84. package/build/lib/commands/deviceInfo.js +25 -0
  85. package/build/lib/commands/deviceInfo.js.map +1 -0
  86. package/build/lib/commands/element.d.ts +108 -0
  87. package/build/lib/commands/element.d.ts.map +1 -0
  88. package/build/lib/commands/element.js +395 -0
  89. package/build/lib/commands/element.js.map +1 -0
  90. package/build/lib/commands/enum.d.ts +105 -0
  91. package/build/lib/commands/enum.d.ts.map +1 -0
  92. package/build/lib/commands/enum.js +113 -0
  93. package/build/lib/commands/enum.js.map +1 -0
  94. package/build/lib/commands/execute.d.ts +33 -0
  95. package/build/lib/commands/execute.d.ts.map +1 -0
  96. package/build/lib/commands/execute.js +142 -0
  97. package/build/lib/commands/execute.js.map +1 -0
  98. package/build/lib/commands/file-movement.d.ts +90 -0
  99. package/build/lib/commands/file-movement.d.ts.map +1 -0
  100. package/build/lib/commands/file-movement.js +477 -0
  101. package/build/lib/commands/file-movement.js.map +1 -0
  102. package/build/lib/commands/find.d.ts +21 -0
  103. package/build/lib/commands/find.d.ts.map +1 -0
  104. package/build/lib/commands/find.js +199 -0
  105. package/build/lib/commands/find.js.map +1 -0
  106. package/build/lib/commands/general.d.ts +137 -0
  107. package/build/lib/commands/general.d.ts.map +1 -0
  108. package/build/lib/commands/general.js +270 -0
  109. package/build/lib/commands/general.js.map +1 -0
  110. package/build/lib/commands/geolocation.d.ts +57 -0
  111. package/build/lib/commands/geolocation.d.ts.map +1 -0
  112. package/build/lib/commands/geolocation.js +58 -0
  113. package/build/lib/commands/geolocation.js.map +1 -0
  114. package/build/lib/commands/gesture.d.ts +283 -0
  115. package/build/lib/commands/gesture.d.ts.map +1 -0
  116. package/build/lib/commands/gesture.js +565 -0
  117. package/build/lib/commands/gesture.js.map +1 -0
  118. package/build/lib/commands/hid-event.d.ts +2773 -0
  119. package/build/lib/commands/hid-event.d.ts.map +1 -0
  120. package/build/lib/commands/hid-event.js +1633 -0
  121. package/build/lib/commands/hid-event.js.map +1 -0
  122. package/build/lib/commands/increase-contrast.d.ts +24 -0
  123. package/build/lib/commands/increase-contrast.d.ts.map +1 -0
  124. package/build/lib/commands/increase-contrast.js +49 -0
  125. package/build/lib/commands/increase-contrast.js.map +1 -0
  126. package/build/lib/commands/iohid.d.ts +1372 -0
  127. package/build/lib/commands/iohid.d.ts.map +1 -0
  128. package/build/lib/commands/iohid.js +63 -0
  129. package/build/lib/commands/iohid.js.map +1 -0
  130. package/build/lib/commands/keyboard.d.ts +32 -0
  131. package/build/lib/commands/keyboard.d.ts.map +1 -0
  132. package/build/lib/commands/keyboard.js +67 -0
  133. package/build/lib/commands/keyboard.js.map +1 -0
  134. package/build/lib/commands/keychains.d.ts +10 -0
  135. package/build/lib/commands/keychains.d.ts.map +1 -0
  136. package/build/lib/commands/keychains.js +22 -0
  137. package/build/lib/commands/keychains.js.map +1 -0
  138. package/build/lib/commands/localization.d.ts +17 -0
  139. package/build/lib/commands/localization.d.ts.map +1 -0
  140. package/build/lib/commands/localization.js +34 -0
  141. package/build/lib/commands/localization.js.map +1 -0
  142. package/build/lib/commands/location.d.ts +40 -0
  143. package/build/lib/commands/location.d.ts.map +1 -0
  144. package/build/lib/commands/location.js +121 -0
  145. package/build/lib/commands/location.js.map +1 -0
  146. package/build/lib/commands/lock.d.ts +23 -0
  147. package/build/lib/commands/lock.d.ts.map +1 -0
  148. package/build/lib/commands/lock.js +49 -0
  149. package/build/lib/commands/lock.js.map +1 -0
  150. package/build/lib/commands/log.d.ts +68 -0
  151. package/build/lib/commands/log.d.ts.map +1 -0
  152. package/build/lib/commands/log.js +287 -0
  153. package/build/lib/commands/log.js.map +1 -0
  154. package/build/lib/commands/memory.d.ts +11 -0
  155. package/build/lib/commands/memory.d.ts.map +1 -0
  156. package/build/lib/commands/memory.js +49 -0
  157. package/build/lib/commands/memory.js.map +1 -0
  158. package/build/lib/commands/navigation.d.ts +44 -0
  159. package/build/lib/commands/navigation.d.ts.map +1 -0
  160. package/build/lib/commands/navigation.js +121 -0
  161. package/build/lib/commands/navigation.js.map +1 -0
  162. package/build/lib/commands/notifications.d.ts +28 -0
  163. package/build/lib/commands/notifications.d.ts.map +1 -0
  164. package/build/lib/commands/notifications.js +64 -0
  165. package/build/lib/commands/notifications.js.map +1 -0
  166. package/build/lib/commands/pasteboard.d.ts +23 -0
  167. package/build/lib/commands/pasteboard.d.ts.map +1 -0
  168. package/build/lib/commands/pasteboard.js +43 -0
  169. package/build/lib/commands/pasteboard.js.map +1 -0
  170. package/build/lib/commands/pcap.d.ts +54 -0
  171. package/build/lib/commands/pcap.d.ts.map +1 -0
  172. package/build/lib/commands/pcap.js +149 -0
  173. package/build/lib/commands/pcap.js.map +1 -0
  174. package/build/lib/commands/performance.d.ts +85 -0
  175. package/build/lib/commands/performance.d.ts.map +1 -0
  176. package/build/lib/commands/performance.js +331 -0
  177. package/build/lib/commands/performance.js.map +1 -0
  178. package/build/lib/commands/permissions.d.ts +36 -0
  179. package/build/lib/commands/permissions.d.ts.map +1 -0
  180. package/build/lib/commands/permissions.js +80 -0
  181. package/build/lib/commands/permissions.js.map +1 -0
  182. package/build/lib/commands/proxy-helper.d.ts +15 -0
  183. package/build/lib/commands/proxy-helper.d.ts.map +1 -0
  184. package/build/lib/commands/proxy-helper.js +117 -0
  185. package/build/lib/commands/proxy-helper.js.map +1 -0
  186. package/build/lib/commands/record-audio.d.ts +69 -0
  187. package/build/lib/commands/record-audio.d.ts.map +1 -0
  188. package/build/lib/commands/record-audio.js +228 -0
  189. package/build/lib/commands/record-audio.js.map +1 -0
  190. package/build/lib/commands/recordscreen.d.ts +89 -0
  191. package/build/lib/commands/recordscreen.d.ts.map +1 -0
  192. package/build/lib/commands/recordscreen.js +326 -0
  193. package/build/lib/commands/recordscreen.js.map +1 -0
  194. package/build/lib/commands/screenshots.d.ts +16 -0
  195. package/build/lib/commands/screenshots.d.ts.map +1 -0
  196. package/build/lib/commands/screenshots.js +129 -0
  197. package/build/lib/commands/screenshots.js.map +1 -0
  198. package/build/lib/commands/simctl.d.ts +27 -0
  199. package/build/lib/commands/simctl.d.ts.map +1 -0
  200. package/build/lib/commands/simctl.js +65 -0
  201. package/build/lib/commands/simctl.js.map +1 -0
  202. package/build/lib/commands/source.d.ts +16 -0
  203. package/build/lib/commands/source.d.ts.map +1 -0
  204. package/build/lib/commands/source.js +128 -0
  205. package/build/lib/commands/source.js.map +1 -0
  206. package/build/lib/commands/timeouts.d.ts +53 -0
  207. package/build/lib/commands/timeouts.d.ts.map +1 -0
  208. package/build/lib/commands/timeouts.js +71 -0
  209. package/build/lib/commands/timeouts.js.map +1 -0
  210. package/build/lib/commands/types.d.ts +539 -0
  211. package/build/lib/commands/types.d.ts.map +1 -0
  212. package/build/lib/commands/types.js +3 -0
  213. package/build/lib/commands/types.js.map +1 -0
  214. package/build/lib/commands/web.d.ts +297 -0
  215. package/build/lib/commands/web.d.ts.map +1 -0
  216. package/build/lib/commands/web.js +1029 -0
  217. package/build/lib/commands/web.js.map +1 -0
  218. package/build/lib/commands/xctest-record-screen.d.ts +92 -0
  219. package/build/lib/commands/xctest-record-screen.d.ts.map +1 -0
  220. package/build/lib/commands/xctest-record-screen.js +193 -0
  221. package/build/lib/commands/xctest-record-screen.js.map +1 -0
  222. package/build/lib/commands/xctest.d.ts +71 -0
  223. package/build/lib/commands/xctest.d.ts.map +1 -0
  224. package/build/lib/commands/xctest.js +257 -0
  225. package/build/lib/commands/xctest.js.map +1 -0
  226. package/build/lib/css-converter.d.ts +10 -0
  227. package/build/lib/css-converter.d.ts.map +1 -0
  228. package/build/lib/css-converter.js +258 -0
  229. package/build/lib/css-converter.js.map +1 -0
  230. package/build/lib/desired-caps.d.ts +506 -0
  231. package/build/lib/desired-caps.d.ts.map +1 -0
  232. package/build/lib/desired-caps.js +400 -0
  233. package/build/lib/desired-caps.js.map +1 -0
  234. package/build/lib/device-connections-factory.d.ts +13 -0
  235. package/build/lib/device-connections-factory.d.ts.map +1 -0
  236. package/build/lib/device-connections-factory.js +244 -0
  237. package/build/lib/device-connections-factory.js.map +1 -0
  238. package/build/lib/device-log/helpers.d.ts +10 -0
  239. package/build/lib/device-log/helpers.d.ts.map +1 -0
  240. package/build/lib/device-log/helpers.js +37 -0
  241. package/build/lib/device-log/helpers.js.map +1 -0
  242. package/build/lib/device-log/ios-crash-log.d.ts +34 -0
  243. package/build/lib/device-log/ios-crash-log.d.ts.map +1 -0
  244. package/build/lib/device-log/ios-crash-log.js +141 -0
  245. package/build/lib/device-log/ios-crash-log.js.map +1 -0
  246. package/build/lib/device-log/ios-device-log.d.ts +19 -0
  247. package/build/lib/device-log/ios-device-log.d.ts.map +1 -0
  248. package/build/lib/device-log/ios-device-log.js +42 -0
  249. package/build/lib/device-log/ios-device-log.js.map +1 -0
  250. package/build/lib/device-log/ios-log.d.ts +24 -0
  251. package/build/lib/device-log/ios-log.d.ts.map +1 -0
  252. package/build/lib/device-log/ios-log.js +50 -0
  253. package/build/lib/device-log/ios-log.js.map +1 -0
  254. package/build/lib/device-log/ios-performance-log.d.ts +18 -0
  255. package/build/lib/device-log/ios-performance-log.d.ts.map +1 -0
  256. package/build/lib/device-log/ios-performance-log.js +43 -0
  257. package/build/lib/device-log/ios-performance-log.js.map +1 -0
  258. package/build/lib/device-log/ios-simulator-log.d.ts +38 -0
  259. package/build/lib/device-log/ios-simulator-log.d.ts.map +1 -0
  260. package/build/lib/device-log/ios-simulator-log.js +184 -0
  261. package/build/lib/device-log/ios-simulator-log.js.map +1 -0
  262. package/build/lib/device-log/line-consuming-log.d.ts +9 -0
  263. package/build/lib/device-log/line-consuming-log.d.ts.map +1 -0
  264. package/build/lib/device-log/line-consuming-log.js +16 -0
  265. package/build/lib/device-log/line-consuming-log.js.map +1 -0
  266. package/build/lib/device-log/safari-console-log.d.ts +67 -0
  267. package/build/lib/device-log/safari-console-log.d.ts.map +1 -0
  268. package/build/lib/device-log/safari-console-log.js +81 -0
  269. package/build/lib/device-log/safari-console-log.js.map +1 -0
  270. package/build/lib/device-log/safari-network-log.d.ts +75 -0
  271. package/build/lib/device-log/safari-network-log.d.ts.map +1 -0
  272. package/build/lib/device-log/safari-network-log.js +47 -0
  273. package/build/lib/device-log/safari-network-log.js.map +1 -0
  274. package/build/lib/doctor/checks.d.ts +3 -0
  275. package/build/lib/doctor/checks.d.ts.map +1 -0
  276. package/build/lib/doctor/checks.js +39 -0
  277. package/build/lib/doctor/checks.js.map +1 -0
  278. package/build/lib/doctor/optional-checks.d.ts +46 -0
  279. package/build/lib/doctor/optional-checks.d.ts.map +1 -0
  280. package/build/lib/doctor/optional-checks.js +129 -0
  281. package/build/lib/doctor/optional-checks.js.map +1 -0
  282. package/build/lib/doctor/required-checks.d.ts +42 -0
  283. package/build/lib/doctor/required-checks.d.ts.map +1 -0
  284. package/build/lib/doctor/required-checks.js +94 -0
  285. package/build/lib/doctor/required-checks.js.map +1 -0
  286. package/build/lib/doctor/utils.d.ts +8 -0
  287. package/build/lib/doctor/utils.d.ts.map +1 -0
  288. package/build/lib/doctor/utils.js +21 -0
  289. package/build/lib/doctor/utils.js.map +1 -0
  290. package/build/lib/driver.d.ts +2429 -0
  291. package/build/lib/driver.d.ts.map +1 -0
  292. package/build/lib/driver.js +1967 -0
  293. package/build/lib/driver.js.map +1 -0
  294. package/build/lib/execute-method-map.d.ts +552 -0
  295. package/build/lib/execute-method-map.d.ts.map +1 -0
  296. package/build/lib/execute-method-map.js +586 -0
  297. package/build/lib/execute-method-map.js.map +1 -0
  298. package/build/lib/ios-fs-helpers.d.ts +75 -0
  299. package/build/lib/ios-fs-helpers.d.ts.map +1 -0
  300. package/build/lib/ios-fs-helpers.js +370 -0
  301. package/build/lib/ios-fs-helpers.js.map +1 -0
  302. package/build/lib/ios-generic-simulators.d.ts +6 -0
  303. package/build/lib/ios-generic-simulators.d.ts.map +1 -0
  304. package/build/lib/ios-generic-simulators.js +14 -0
  305. package/build/lib/ios-generic-simulators.js.map +1 -0
  306. package/build/lib/logger.d.ts +3 -0
  307. package/build/lib/logger.d.ts.map +1 -0
  308. package/build/lib/logger.js +6 -0
  309. package/build/lib/logger.js.map +1 -0
  310. package/build/lib/method-map.d.ts +229 -0
  311. package/build/lib/method-map.d.ts.map +1 -0
  312. package/build/lib/method-map.js +200 -0
  313. package/build/lib/method-map.js.map +1 -0
  314. package/build/lib/real-device-clients/base-device-client.d.ts +22 -0
  315. package/build/lib/real-device-clients/base-device-client.d.ts.map +1 -0
  316. package/build/lib/real-device-clients/base-device-client.js +14 -0
  317. package/build/lib/real-device-clients/base-device-client.js.map +1 -0
  318. package/build/lib/real-device-clients/py-ios-device-client.d.ts +21 -0
  319. package/build/lib/real-device-clients/py-ios-device-client.d.ts.map +1 -0
  320. package/build/lib/real-device-clients/py-ios-device-client.js +125 -0
  321. package/build/lib/real-device-clients/py-ios-device-client.js.map +1 -0
  322. package/build/lib/real-device-management.d.ts +53 -0
  323. package/build/lib/real-device-management.d.ts.map +1 -0
  324. package/build/lib/real-device-management.js +128 -0
  325. package/build/lib/real-device-management.js.map +1 -0
  326. package/build/lib/real-device.d.ts +112 -0
  327. package/build/lib/real-device.d.ts.map +1 -0
  328. package/build/lib/real-device.js +352 -0
  329. package/build/lib/real-device.js.map +1 -0
  330. package/build/lib/simulator-management.d.ts +96 -0
  331. package/build/lib/simulator-management.d.ts.map +1 -0
  332. package/build/lib/simulator-management.js +278 -0
  333. package/build/lib/simulator-management.js.map +1 -0
  334. package/build/lib/stubs.d.ts +3 -0
  335. package/build/lib/stubs.d.ts.map +1 -0
  336. package/build/lib/stubs.js +3 -0
  337. package/build/lib/stubs.js.map +1 -0
  338. package/build/lib/types.d.ts +31 -0
  339. package/build/lib/types.d.ts.map +1 -0
  340. package/build/lib/types.js +3 -0
  341. package/build/lib/types.js.map +1 -0
  342. package/build/lib/utils.d.ts +191 -0
  343. package/build/lib/utils.d.ts.map +1 -0
  344. package/build/lib/utils.js +549 -0
  345. package/build/lib/utils.js.map +1 -0
  346. package/build/lib/xcrun.d.ts +3 -0
  347. package/build/lib/xcrun.d.ts.map +1 -0
  348. package/build/lib/xcrun.js +17 -0
  349. package/build/lib/xcrun.js.map +1 -0
  350. package/index.js +7 -0
  351. package/lib/app-infos-cache.js +187 -0
  352. package/lib/app-utils.js +710 -0
  353. package/lib/commands/active-app-info.js +12 -0
  354. package/lib/commands/advanced-battery-types.ts +454 -0
  355. package/lib/commands/alert.js +88 -0
  356. package/lib/commands/app-management.js +346 -0
  357. package/lib/commands/app-strings.js +30 -0
  358. package/lib/commands/appearance.js +71 -0
  359. package/lib/commands/audit.js +31 -0
  360. package/lib/commands/battery.js +45 -0
  361. package/lib/commands/bidi/constants.ts +6 -0
  362. package/lib/commands/bidi/models.ts +55 -0
  363. package/lib/commands/bidi/types.ts +31 -0
  364. package/lib/commands/biometric.js +53 -0
  365. package/lib/commands/certificate.js +497 -0
  366. package/lib/commands/clipboard.js +35 -0
  367. package/lib/commands/condition.js +155 -0
  368. package/lib/commands/content-size.js +68 -0
  369. package/lib/commands/context.js +705 -0
  370. package/lib/commands/deviceInfo.js +27 -0
  371. package/lib/commands/element.js +423 -0
  372. package/lib/commands/enum.ts +108 -0
  373. package/lib/commands/execute.js +153 -0
  374. package/lib/commands/file-movement.js +510 -0
  375. package/lib/commands/find.js +205 -0
  376. package/lib/commands/general.js +278 -0
  377. package/lib/commands/geolocation.js +56 -0
  378. package/lib/commands/gesture.js +596 -0
  379. package/lib/commands/hid-event.ts +1634 -0
  380. package/lib/commands/increase-contrast.js +50 -0
  381. package/lib/commands/iohid.js +64 -0
  382. package/lib/commands/keyboard.js +62 -0
  383. package/lib/commands/keychains.js +18 -0
  384. package/lib/commands/localization.js +30 -0
  385. package/lib/commands/location.js +131 -0
  386. package/lib/commands/lock.js +46 -0
  387. package/lib/commands/log.js +327 -0
  388. package/lib/commands/memory.js +51 -0
  389. package/lib/commands/navigation.js +125 -0
  390. package/lib/commands/notifications.js +66 -0
  391. package/lib/commands/pasteboard.js +42 -0
  392. package/lib/commands/pcap.js +168 -0
  393. package/lib/commands/performance.js +392 -0
  394. package/lib/commands/permissions.js +85 -0
  395. package/lib/commands/proxy-helper.js +122 -0
  396. package/lib/commands/record-audio.js +264 -0
  397. package/lib/commands/recordscreen.js +391 -0
  398. package/lib/commands/screenshots.js +137 -0
  399. package/lib/commands/simctl.js +71 -0
  400. package/lib/commands/source.js +131 -0
  401. package/lib/commands/timeouts.js +68 -0
  402. package/lib/commands/types.ts +648 -0
  403. package/lib/commands/web.js +1113 -0
  404. package/lib/commands/xctest-record-screen.js +204 -0
  405. package/lib/commands/xctest.js +285 -0
  406. package/lib/css-converter.js +311 -0
  407. package/lib/desired-caps.js +396 -0
  408. package/lib/device-connections-factory.js +269 -0
  409. package/lib/device-log/helpers.ts +40 -0
  410. package/lib/device-log/ios-crash-log.ts +166 -0
  411. package/lib/device-log/ios-device-log.ts +51 -0
  412. package/lib/device-log/ios-log.ts +70 -0
  413. package/lib/device-log/ios-performance-log.ts +50 -0
  414. package/lib/device-log/ios-simulator-log.ts +202 -0
  415. package/lib/device-log/line-consuming-log.ts +16 -0
  416. package/lib/device-log/safari-console-log.ts +117 -0
  417. package/lib/device-log/safari-network-log.ts +120 -0
  418. package/lib/doctor/checks.ts +3 -0
  419. package/lib/doctor/optional-checks.ts +173 -0
  420. package/lib/doctor/required-checks.ts +120 -0
  421. package/lib/doctor/utils.ts +18 -0
  422. package/lib/driver.js +2316 -0
  423. package/lib/execute-method-map.ts +585 -0
  424. package/lib/ios-fs-helpers.js +355 -0
  425. package/lib/ios-generic-simulators.js +11 -0
  426. package/lib/logger.js +5 -0
  427. package/lib/method-map.js +196 -0
  428. package/lib/real-device-clients/base-device-client.ts +34 -0
  429. package/lib/real-device-clients/py-ios-device-client.ts +149 -0
  430. package/lib/real-device-management.js +133 -0
  431. package/lib/real-device.js +347 -0
  432. package/lib/simulator-management.js +324 -0
  433. package/lib/stubs.ts +3 -0
  434. package/lib/types.ts +33 -0
  435. package/lib/utils.js +551 -0
  436. package/lib/xcrun.js +16 -0
  437. package/package.json +175 -0
  438. package/scripts/build-docs.js +56 -0
  439. package/scripts/build-wda.js +42 -0
  440. package/scripts/download-wda-sim.mjs +68 -0
  441. package/scripts/image-mounter.mjs +239 -0
  442. package/scripts/open-wda.mjs +15 -0
  443. package/scripts/tunnel-creation.mjs +359 -0
  444. package/scripts/utils.js +16 -0
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.findElOrEls = findElOrEls;
7
+ exports.findNativeElementOrElements = findNativeElementOrElements;
8
+ exports.doNativeFind = doNativeFind;
9
+ exports.getFirstVisibleChild = getFirstVisibleChild;
10
+ const lodash_1 = __importDefault(require("lodash"));
11
+ const css_converter_1 = __importDefault(require("../css-converter"));
12
+ const driver_1 = require("appium/driver");
13
+ const support_1 = require("appium/support");
14
+ /**
15
+ * @this {XCUITestDriver}
16
+ */
17
+ async function findElOrEls(strategy, selector, mult, context) {
18
+ if (this.isWebview()) {
19
+ return await this.findWebElementOrElements(strategy, selector, mult, context);
20
+ }
21
+ else {
22
+ return await this.findNativeElementOrElements(strategy, selector, mult, context);
23
+ }
24
+ }
25
+ /**
26
+ * @this {XCUITestDriver}
27
+ * @privateRemarks I'm not sure what these objects are; they aren't `Element`.
28
+ * @returns {Promise<any|any[]|undefined>}
29
+ */
30
+ async function findNativeElementOrElements(strategy, selector, mult, context) {
31
+ const initSelector = selector;
32
+ let rewroteSelector = false;
33
+ if (strategy === '-ios predicate string') {
34
+ // WebDriverAgent uses 'predicate string'
35
+ strategy = 'predicate string';
36
+ }
37
+ else if (strategy === '-ios class chain') {
38
+ // WebDriverAgent uses 'class chain'
39
+ strategy = WDA_CLASS_CHAIN_STRATEGY;
40
+ }
41
+ else if (strategy === 'css selector') {
42
+ strategy = WDA_CLASS_CHAIN_STRATEGY;
43
+ selector = css_converter_1.default.toIosClassChainSelector(selector);
44
+ }
45
+ if (strategy === 'class name') {
46
+ // XCUITest classes have `XCUIElementType` prepended
47
+ // first check if there is the old `UIA` prefix
48
+ if (selector.startsWith('UIA')) {
49
+ selector = selector.substring(3);
50
+ }
51
+ // now check if we need to add `XCUIElementType`
52
+ if (!selector.startsWith('XCUIElementType')) {
53
+ selector = stripViewFromSelector(`XCUIElementType${selector}`);
54
+ rewroteSelector = true;
55
+ }
56
+ }
57
+ if (strategy === 'xpath' && MAGIC_FIRST_VIS_CHILD_SEL.test(selector)) {
58
+ return await this.getFirstVisibleChild(mult, context);
59
+ }
60
+ else if (strategy === 'xpath' && MAGIC_SCROLLABLE_SEL.test(selector)) {
61
+ [strategy, selector] = rewriteMagicScrollable(mult, this.log);
62
+ }
63
+ else if (strategy === 'xpath') {
64
+ // Replace UIA if it comes after a forward slash or is at the beginning of the string
65
+ selector = selector.replace(/(^|\/)(UIA)([^[/]+)/g, (str, g1, g2, g3) => {
66
+ rewroteSelector = true;
67
+ return g1 + stripViewFromSelector(`XCUIElementType${g3}`);
68
+ });
69
+ }
70
+ if (rewroteSelector) {
71
+ this.log.info(`Rewrote incoming selector from '${initSelector}' to ` +
72
+ `'${selector}' to match XCUI type. You should consider ` +
73
+ `updating your tests to use the new selectors directly`);
74
+ }
75
+ return await this.doNativeFind(strategy, selector, mult, context);
76
+ }
77
+ /**
78
+ * @this {XCUITestDriver}
79
+ */
80
+ async function doNativeFind(strategy, selector, mult, context) {
81
+ context = support_1.util.unwrapElement(context);
82
+ let endpoint = `/element${context ? `/${context}/element` : ''}${mult ? 's' : ''}`;
83
+ let body = {
84
+ using: strategy,
85
+ value: selector,
86
+ };
87
+ /** @type {import('./proxy-helper').AllowedHttpMethod} */
88
+ const method = 'POST';
89
+ // This is either an array is mult === true
90
+ // or an object if mult === false
91
+ /** @type {Element[]|undefined} */
92
+ let els;
93
+ try {
94
+ await this.implicitWaitForCondition(async () => {
95
+ try {
96
+ els = /** @type {Element[]|undefined} */ (await this.proxyCommand(endpoint, method, body));
97
+ }
98
+ catch {
99
+ els = [];
100
+ }
101
+ // we succeed if we get some elements
102
+ return !lodash_1.default.isEmpty(els);
103
+ });
104
+ }
105
+ catch (err) {
106
+ if (err.message?.match(/Condition unmet/)) {
107
+ // condition was not met setting res to empty array
108
+ els = [];
109
+ }
110
+ else {
111
+ throw err;
112
+ }
113
+ }
114
+ if (mult) {
115
+ return els;
116
+ }
117
+ if (lodash_1.default.isEmpty(els)) {
118
+ throw new driver_1.errors.NoSuchElementError();
119
+ }
120
+ return els;
121
+ }
122
+ /**
123
+ * @this {XCUITestDriver}
124
+ */
125
+ async function getFirstVisibleChild(mult, context) {
126
+ this.log.info(`Getting first visible child`);
127
+ if (mult) {
128
+ throw new Error('Cannot get multiple first visible children!');
129
+ }
130
+ if (!context) {
131
+ throw new Error('Cannot get first visible child without a context element');
132
+ }
133
+ let index = 1;
134
+ // loop through children via class-chain finds, until we run out of children
135
+ // or we find a visible one. This loop looks infinite but its not, because at
136
+ // some point the call to doNativeFind will throw with an Element Not Found
137
+ // error, when the index gets higher than the number of child elements. This
138
+ // is what we want because that error will halt the loop and make it all the
139
+ // way to the client.
140
+ while (true) {
141
+ const strategy = WDA_CLASS_CHAIN_STRATEGY;
142
+ const selector = `*[${index}]`;
143
+ const nthChild = await this.doNativeFind(strategy, selector, false, context);
144
+ const visible = await this.getAttribute('visible', nthChild);
145
+ if (visible === 'true') {
146
+ this.log.info(`Found first visible child at position ${index}`);
147
+ return nthChild;
148
+ }
149
+ index++;
150
+ }
151
+ }
152
+ // we override the xpath search for this first-visible-child selector, which
153
+ // looks like /*[@firstVisible="true"]
154
+ const MAGIC_FIRST_VIS_CHILD_SEL = /\/\*\[@firstVisible\s*=\s*('|")true\1\]/;
155
+ // we likewise override xpath search to provide a shortcut for finding all
156
+ // scrollable elements
157
+ const MAGIC_SCROLLABLE_SEL = /\/\/\*\[@scrollable\s*=\s*('|")true\1\]/;
158
+ const WDA_CLASS_CHAIN_STRATEGY = 'class chain';
159
+ // Check if the word 'View' is appended to selector and if it is, strip it out
160
+ function stripViewFromSelector(selector) {
161
+ // Don't strip it out if it's one of these 4 element types
162
+ // (see https://github.com/facebook/WebDriverAgent/blob/master/WebDriverAgentLib/Utilities/FBElementTypeTransformer.m for reference)
163
+ const keepView = [
164
+ 'XCUIElementTypeScrollView',
165
+ 'XCUIElementTypeCollectionView',
166
+ 'XCUIElementTypeTextView',
167
+ 'XCUIElementTypeWebView',
168
+ ].includes(selector);
169
+ if (!keepView && selector.indexOf('View') === selector.length - 4) {
170
+ return selector.substr(0, selector.length - 4);
171
+ }
172
+ else {
173
+ return selector;
174
+ }
175
+ }
176
+ /**
177
+ *
178
+ * @param {boolean} mult
179
+ * @param {import('@appium/types').AppiumLogger|null} log
180
+ * @returns {[string, string]}
181
+ */
182
+ function rewriteMagicScrollable(mult, log = null) {
183
+ const pred = ['ScrollView', 'Table', 'CollectionView', 'WebView']
184
+ .map((t) => `type == "XCUIElementType${t}"`)
185
+ .join(' OR ');
186
+ const strategy = WDA_CLASS_CHAIN_STRATEGY;
187
+ let selector = '**/*[`' + pred + '`]';
188
+ if (!mult) {
189
+ selector += '[1]';
190
+ }
191
+ log?.info('Rewrote request for scrollable descendants to class chain ' +
192
+ `format with selector '${selector}'`);
193
+ return [strategy, selector];
194
+ }
195
+ /**
196
+ * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
197
+ * @typedef {import('@appium/types').Element} Element
198
+ */
199
+ //# sourceMappingURL=find.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find.js","sourceRoot":"","sources":["../../../lib/commands/find.js"],"names":[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AAC9E,SAAS,qBAAqB,CAAC,QAAQ;IACrC,0DAA0D;IAC1D,oIAAoI;IACpI,MAAM,QAAQ,GAAG;QACf,2BAA2B;QAC3B,+BAA+B;QAC/B,yBAAyB;QACzB,wBAAwB;KACzB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAErB,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClE,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACjD,CAAC;SAAM,CAAC;QACN,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,SAAS,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAC9C,MAAM,IAAI,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,CAAC;SAC9D,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,2BAA2B,CAAC,GAAG,CAAC;SAC3C,IAAI,CAAC,MAAM,CAAC,CAAC;IAChB,MAAM,QAAQ,GAAG,wBAAwB,CAAC;IAC1C,IAAI,QAAQ,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;IACtC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,QAAQ,IAAI,KAAK,CAAC;IACpB,CAAC;IACD,GAAG,EAAE,IAAI,CACP,4DAA4D;QAC1D,yBAAyB,QAAQ,GAAG,CACvC,CAAC;IACF,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC;AAED;;;GAGG"}
@@ -0,0 +1,137 @@
1
+ /**
2
+ * @this {XCUITestDriver}
3
+ */
4
+ export function active(this: import("../driver").XCUITestDriver): Promise<any>;
5
+ /**
6
+ * Trigger a touch/fingerprint match or match failure
7
+ *
8
+ * @param {boolean} match - whether the match should be a success or failure
9
+ * @this {XCUITestDriver}
10
+ */
11
+ export function touchId(this: import("../driver").XCUITestDriver, match?: boolean): Promise<void>;
12
+ /**
13
+ * Toggle whether the device is enrolled in the touch ID program
14
+ *
15
+ * @param {boolean} isEnabled - whether to enable or disable the touch ID program
16
+ *
17
+ * @this {XCUITestDriver}
18
+ */
19
+ export function toggleEnrollTouchId(this: import("../driver").XCUITestDriver, isEnabled?: boolean): Promise<void>;
20
+ /**
21
+ * Get the window size
22
+ * @this {XCUITestDriver}
23
+ * @returns {Promise<import('@appium/types').Size>}
24
+ */
25
+ export function getWindowSize(this: import("../driver").XCUITestDriver): Promise<import("@appium/types").Size>;
26
+ /**
27
+ * Retrieves the actual device time.
28
+ *
29
+ * @param {string} format - The format specifier string. Read the [MomentJS documentation](https://momentjs.com/docs/) to get the full list of supported datetime format specifiers. The default format is `YYYY-MM-DDTHH:mm:ssZ`, which complies to ISO-8601.
30
+ * @returns {Promise<string>} Formatted datetime string or the raw command output (if formatting fails)
31
+ * @this {XCUITestDriver}
32
+ */
33
+ export function getDeviceTime(this: import("../driver").XCUITestDriver, format?: string): Promise<string>;
34
+ /**
35
+ * Retrieves the current device time
36
+ *
37
+ * @param {string} format - See {@linkcode getDeviceTime.format}
38
+ * @returns {Promise<string>} Formatted datetime string or the raw command output if formatting fails
39
+ * @this {XCUITestDriver}
40
+ */
41
+ export function mobileGetDeviceTime(this: import("../driver").XCUITestDriver, format?: string): Promise<string>;
42
+ /**
43
+ * For W3C
44
+ * @this {XCUITestDriver}
45
+ * @return {Promise<import('@appium/types').Rect>}
46
+ */
47
+ export function getWindowRect(this: import("../driver").XCUITestDriver): Promise<import("@appium/types").Rect>;
48
+ /**
49
+ * @this {XCUITestDriver}
50
+ */
51
+ export function removeApp(this: import("../driver").XCUITestDriver, bundleId: any): Promise<boolean>;
52
+ /**
53
+ * @this {XCUITestDriver}
54
+ */
55
+ export function launchApp(this: import("../driver").XCUITestDriver): Promise<void>;
56
+ /**
57
+ * @this {XCUITestDriver}
58
+ */
59
+ export function closeApp(this: import("../driver").XCUITestDriver): Promise<void>;
60
+ /**
61
+ * @this {XCUITestDriver}
62
+ * @param {string} url
63
+ * @returns {Promise<void>}
64
+ */
65
+ export function setUrl(this: import("../driver").XCUITestDriver, url: string): Promise<void>;
66
+ export class setUrl {
67
+ /**
68
+ * @this {XCUITestDriver}
69
+ * @param {string} url
70
+ * @returns {Promise<void>}
71
+ */
72
+ constructor(this: import("../driver").XCUITestDriver, url: string);
73
+ curWebFrames: any[] | undefined;
74
+ }
75
+ /**
76
+ * Retrieves the viewport dimensions.
77
+ *
78
+ * The viewport is the device's screen size with status bar size subtracted if the latter is present/visible.
79
+ * @returns {Promise<import('./types').Viewport>}
80
+ * @this {XCUITestDriver}
81
+ */
82
+ export function getViewportRect(this: import("../driver").XCUITestDriver): Promise<import("./types").Viewport>;
83
+ /**
84
+ * Get information about the screen.
85
+ *
86
+ * @privateRemarks memoized in constructor
87
+ * @this {XCUITestDriver}
88
+ * @returns {Promise<ScreenInfo>}
89
+ */
90
+ export function getScreenInfo(this: import("../driver").XCUITestDriver): Promise<ScreenInfo>;
91
+ /**
92
+ * @this {XCUITestDriver}
93
+ */
94
+ export function getStatusBarHeight(this: import("../driver").XCUITestDriver): Promise<number>;
95
+ /**
96
+ * memoized in constructor
97
+ * @this {XCUITestDriver}
98
+ */
99
+ export function getDevicePixelRatio(this: import("../driver").XCUITestDriver): Promise<number>;
100
+ /**
101
+ * Emulates press action on the given physical device button.
102
+ *
103
+ * This executes different methods based on the platform:
104
+ *
105
+ * - iOS: [`pressButton:`](https://developer.apple.com/documentation/xctest/xcuidevice/1619052-pressbutton)
106
+ * - tvOS: [`pressButton:`](https://developer.apple.com/documentation/xctest/xcuiremote/1627475-pressbutton) or [`pressButton:forDuration:`](https://developer.apple.com/documentation/xctest/xcuiremote/1627476-pressbutton)
107
+ *
108
+ * Use {@linkcode mobilePerformIoHidEvent} to call a more universal API to perform a button press with duration on any supported device.
109
+ *
110
+ * @param {import('./types').ButtonName} name - The name of the button to be pressed.
111
+ * @param {number} [durationSeconds] - The duration of the button press in seconds (float).
112
+ * @this {XCUITestDriver}
113
+ */
114
+ export function mobilePressButton(this: import("../driver").XCUITestDriver, name: import("./types").ButtonName, durationSeconds?: number): Promise<unknown>;
115
+ /**
116
+ * Process a string as speech and send it to Siri.
117
+ *
118
+ * Presents the Siri UI, if it is not currently active, and accepts a string which is then processed as if it were recognized speech. See [the documentation of `activateWithVoiceRecognitionText`](https://developer.apple.com/documentation/xctest/xcuisiriservice/2852140-activatewithvoicerecognitiontext?language=objc) for more details.
119
+
120
+ * @param {string} text - Text to be sent to Siri
121
+ * @returns {Promise<void>}
122
+ * @this {XCUITestDriver}
123
+ */
124
+ export function mobileSiriCommand(this: import("../driver").XCUITestDriver, text: string): Promise<void>;
125
+ export type PressButtonOptions = {
126
+ /**
127
+ * - The name of the button to be pressed.
128
+ */
129
+ name: string;
130
+ /**
131
+ * - Duration in float seconds.
132
+ */
133
+ durationSeconds?: number | undefined;
134
+ };
135
+ export type XCUITestDriver = import("../driver").XCUITestDriver;
136
+ export type ScreenInfo = import("./types").ScreenInfo;
137
+ //# sourceMappingURL=general.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../lib/commands/general.js"],"names":[],"mappings":"AAQA;;GAEG;AACH,+EAKC;AAED;;;;;GAKG;AACH,0EAHW,OAAO,iBAKjB;AACC;;;;;;GAMG;AACL,0FAJa,OAAO,iBAMnB;AAED;;;;GAIG;AACH,yEAFa,OAAO,CAAC,OAAO,eAAe,EAAE,IAAI,CAAC,CAKjD;AAED;;;;;;GAMG;AACH,iFAJW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAyC3B;AAED;;;;;;GAMG;AACH,uFAJW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAK3B;AAED;;;;GAIG;AACH,yEAFY,OAAO,CAAC,OAAO,eAAe,EAAE,IAAI,CAAC,CAgBhD;AAED;;GAEG;AACH,qGAEC;AAED;;GAEG;AACH,mFAKC;AAED;;GAEG;AACH,kFAKC;AAED;;;;GAIG;AACH,sEAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAkBzB;;IArBD;;;;OAIG;IACH,2DAHW,MAAM,EAmBhB;IAVG,gCAAsB;;AAY1B;;;;;;GAMG;AACH,2EAHa,OAAO,CAAC,OAAO,SAAS,EAAE,QAAQ,CAAC,CAiB/C;AAED;;;;;;GAMG;AACH,yEAFa,OAAO,CAAC,UAAU,CAAC,CAI/B;AAED;;GAEG;AACH,8FAGC;AAED;;;GAGG;AACH,+FAGC;AAED;;;;;;;;;;;;;GAaG;AACH,kFAJW,OAAO,SAAS,EAAE,UAAU,oBAC5B,MAAM,oBAWhB;AAED;;;;;;;;GAQG;AACH,kFAJW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAQzB;;;;;UAIa,MAAM;;;;;;6BAKP,OAAO,WAAW,EAAE,cAAc;yBAClC,OAAO,SAAS,EAAE,UAAU"}
@@ -0,0 +1,270 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.active = active;
7
+ exports.touchId = touchId;
8
+ exports.toggleEnrollTouchId = toggleEnrollTouchId;
9
+ exports.getWindowSize = getWindowSize;
10
+ exports.getDeviceTime = getDeviceTime;
11
+ exports.mobileGetDeviceTime = mobileGetDeviceTime;
12
+ exports.getWindowRect = getWindowRect;
13
+ exports.removeApp = removeApp;
14
+ exports.launchApp = launchApp;
15
+ exports.closeApp = closeApp;
16
+ exports.setUrl = setUrl;
17
+ exports.getViewportRect = getViewportRect;
18
+ exports.getScreenInfo = getScreenInfo;
19
+ exports.getStatusBarHeight = getStatusBarHeight;
20
+ exports.getDevicePixelRatio = getDevicePixelRatio;
21
+ exports.mobilePressButton = mobilePressButton;
22
+ exports.mobileSiriCommand = mobileSiriCommand;
23
+ const lodash_1 = __importDefault(require("lodash"));
24
+ const driver_1 = require("appium/driver");
25
+ const moment_timezone_1 = __importDefault(require("moment-timezone"));
26
+ const appium_ios_device_1 = require("appium-ios-device");
27
+ const teen_process_1 = require("teen_process");
28
+ const MOMENT_FORMAT_ISO8601 = 'YYYY-MM-DDTHH:mm:ssZ';
29
+ /**
30
+ * @this {XCUITestDriver}
31
+ */
32
+ async function active() {
33
+ if (this.isWebContext()) {
34
+ return this.cacheWebElements(await this.executeAtom('active_element', []));
35
+ }
36
+ return await this.proxyCommand(`/element/active`, 'GET');
37
+ }
38
+ /**
39
+ * Trigger a touch/fingerprint match or match failure
40
+ *
41
+ * @param {boolean} match - whether the match should be a success or failure
42
+ * @this {XCUITestDriver}
43
+ */
44
+ async function touchId(match = true) {
45
+ await this.mobileSendBiometricMatch('touchId', match);
46
+ }
47
+ /**
48
+ * Toggle whether the device is enrolled in the touch ID program
49
+ *
50
+ * @param {boolean} isEnabled - whether to enable or disable the touch ID program
51
+ *
52
+ * @this {XCUITestDriver}
53
+ */
54
+ async function toggleEnrollTouchId(isEnabled = true) {
55
+ await this.mobileEnrollBiometric(isEnabled);
56
+ }
57
+ /**
58
+ * Get the window size
59
+ * @this {XCUITestDriver}
60
+ * @returns {Promise<import('@appium/types').Size>}
61
+ */
62
+ async function getWindowSize() {
63
+ const { width, height } = await this.getWindowRect();
64
+ return { width, height };
65
+ }
66
+ /**
67
+ * Retrieves the actual device time.
68
+ *
69
+ * @param {string} format - The format specifier string. Read the [MomentJS documentation](https://momentjs.com/docs/) to get the full list of supported datetime format specifiers. The default format is `YYYY-MM-DDTHH:mm:ssZ`, which complies to ISO-8601.
70
+ * @returns {Promise<string>} Formatted datetime string or the raw command output (if formatting fails)
71
+ * @this {XCUITestDriver}
72
+ */
73
+ async function getDeviceTime(format = MOMENT_FORMAT_ISO8601) {
74
+ this.log.info('Attempting to capture iOS device date and time');
75
+ if (!this.isRealDevice()) {
76
+ this.log.info('On simulator. Assuming device time is the same as host time');
77
+ const cmd = 'date';
78
+ const args = ['+%Y-%m-%dT%H:%M:%S%z'];
79
+ const inputFormat = 'YYYY-MM-DDTHH:mm:ssZZ';
80
+ const stdout = (await (0, teen_process_1.exec)(cmd, args)).stdout.trim();
81
+ this.log.debug(`Got the following output out of '${cmd} ${args.join(' ')}': ${stdout}`);
82
+ const parsedTimestamp = moment_timezone_1.default.utc(stdout, inputFormat);
83
+ if (!parsedTimestamp.isValid()) {
84
+ this.log.warn(`Cannot parse the timestamp '${stdout}' returned by '${cmd}' command. Returning it as is`);
85
+ return stdout;
86
+ }
87
+ // @ts-expect-error This internal prop of moment is evidently a private API
88
+ return parsedTimestamp.utcOffset(parsedTimestamp._tzm || 0).format(format);
89
+ }
90
+ const { timestamp, utcOffset, timeZone } = await appium_ios_device_1.utilities.getDeviceTime(this.opts.udid);
91
+ this.log.debug(`timestamp: ${timestamp}, utcOffset: ${utcOffset}, timeZone: ${timeZone}`);
92
+ const utc = moment_timezone_1.default.unix(timestamp).utc();
93
+ // at some point of time Apple started to return timestamps
94
+ // in utcOffset instead of actual UTC offsets
95
+ if (Math.abs(utcOffset) <= 12 * 60) {
96
+ return utc.utcOffset(utcOffset).format(format);
97
+ }
98
+ // timeZone could either be a time zone name or
99
+ // an UTC offset in seconds
100
+ if (lodash_1.default.includes(timeZone, '/')) {
101
+ return utc.tz(timeZone).format(format);
102
+ }
103
+ if (Math.abs(timeZone) <= 12 * 60 * 60) {
104
+ return utc.utcOffset(timeZone / 60).format(format);
105
+ }
106
+ this.log.warn('Did not know how to apply the UTC offset. Returning the timestamp without it');
107
+ return utc.format(format);
108
+ }
109
+ /**
110
+ * Retrieves the current device time
111
+ *
112
+ * @param {string} format - See {@linkcode getDeviceTime.format}
113
+ * @returns {Promise<string>} Formatted datetime string or the raw command output if formatting fails
114
+ * @this {XCUITestDriver}
115
+ */
116
+ async function mobileGetDeviceTime(format = MOMENT_FORMAT_ISO8601) {
117
+ return await this.getDeviceTime(format);
118
+ }
119
+ /**
120
+ * For W3C
121
+ * @this {XCUITestDriver}
122
+ * @return {Promise<import('@appium/types').Rect>}
123
+ */
124
+ async function getWindowRect() {
125
+ if (this.isWebContext()) {
126
+ const script = 'return {' +
127
+ 'x: window.screenX || 0,' +
128
+ 'y: window.screenY || 0,' +
129
+ 'width: window.innerWidth,' +
130
+ 'height: window.innerHeight' +
131
+ '}';
132
+ return await this.executeAtom('execute_script', [script]);
133
+ }
134
+ return /** @type {import('@appium/types').Rect} */ (await this.proxyCommand('/window/rect', 'GET'));
135
+ }
136
+ /**
137
+ * @this {XCUITestDriver}
138
+ */
139
+ async function removeApp(bundleId) {
140
+ return await this.mobileRemoveApp(bundleId);
141
+ }
142
+ /**
143
+ * @this {XCUITestDriver}
144
+ */
145
+ async function launchApp() {
146
+ throw new Error(`The launchApp API has been deprecated and is not supported anymore. ` +
147
+ `Consider using corresponding 'mobile:' extensions to manage the state of the app under test.`);
148
+ }
149
+ /**
150
+ * @this {XCUITestDriver}
151
+ */
152
+ async function closeApp() {
153
+ throw new Error(`The closeApp API has been deprecated and is not supported anymore. ` +
154
+ `Consider using corresponding 'mobile:' extensions to manage the state of the app under test.`);
155
+ }
156
+ /**
157
+ * @this {XCUITestDriver}
158
+ * @param {string} url
159
+ * @returns {Promise<void>}
160
+ */
161
+ async function setUrl(url) {
162
+ this.log.debug(`Attempting to set url '${url}'`);
163
+ if (this.isWebContext()) {
164
+ this.setCurrentUrl(url);
165
+ // make sure to clear out any leftover web frames
166
+ this.curWebFrames = [];
167
+ await ( /** @type {import('appium-remote-debugger').RemoteDebugger} */(this.remote)).navToUrl(url);
168
+ return;
169
+ }
170
+ if (this.isRealDevice()) {
171
+ await this.proxyCommand('/url', 'POST', { url });
172
+ }
173
+ else {
174
+ await /** @type {import('../driver').Simulator} */ (this.device).simctl.openUrl(url);
175
+ }
176
+ }
177
+ /**
178
+ * Retrieves the viewport dimensions.
179
+ *
180
+ * The viewport is the device's screen size with status bar size subtracted if the latter is present/visible.
181
+ * @returns {Promise<import('./types').Viewport>}
182
+ * @this {XCUITestDriver}
183
+ */
184
+ async function getViewportRect() {
185
+ const scale = await this.getDevicePixelRatio();
186
+ // status bar height comes in unscaled, so scale it
187
+ const statusBarHeight = Math.trunc((await this.getStatusBarHeight()) * scale);
188
+ const windowSize = await this.getWindowRect();
189
+ // ios returns coordinates/dimensions in logical pixels, not device pixels,
190
+ // so scale up to device pixels. status bar height is already scaled.
191
+ return {
192
+ left: 0,
193
+ top: statusBarHeight,
194
+ width: Math.trunc(windowSize.width * scale),
195
+ height: Math.trunc(windowSize.height * scale) - statusBarHeight,
196
+ };
197
+ }
198
+ /**
199
+ * Get information about the screen.
200
+ *
201
+ * @privateRemarks memoized in constructor
202
+ * @this {XCUITestDriver}
203
+ * @returns {Promise<ScreenInfo>}
204
+ */
205
+ async function getScreenInfo() {
206
+ return /** @type {ScreenInfo} */ (await this.proxyCommand('/wda/screen', 'GET'));
207
+ }
208
+ /**
209
+ * @this {XCUITestDriver}
210
+ */
211
+ async function getStatusBarHeight() {
212
+ const { statusBarSize } = await this.getScreenInfo();
213
+ return statusBarSize.height;
214
+ }
215
+ /**
216
+ * memoized in constructor
217
+ * @this {XCUITestDriver}
218
+ */
219
+ async function getDevicePixelRatio() {
220
+ const { scale } = await this.getScreenInfo();
221
+ return scale;
222
+ }
223
+ /**
224
+ * Emulates press action on the given physical device button.
225
+ *
226
+ * This executes different methods based on the platform:
227
+ *
228
+ * - iOS: [`pressButton:`](https://developer.apple.com/documentation/xctest/xcuidevice/1619052-pressbutton)
229
+ * - tvOS: [`pressButton:`](https://developer.apple.com/documentation/xctest/xcuiremote/1627475-pressbutton) or [`pressButton:forDuration:`](https://developer.apple.com/documentation/xctest/xcuiremote/1627476-pressbutton)
230
+ *
231
+ * Use {@linkcode mobilePerformIoHidEvent} to call a more universal API to perform a button press with duration on any supported device.
232
+ *
233
+ * @param {import('./types').ButtonName} name - The name of the button to be pressed.
234
+ * @param {number} [durationSeconds] - The duration of the button press in seconds (float).
235
+ * @this {XCUITestDriver}
236
+ */
237
+ async function mobilePressButton(name, durationSeconds) {
238
+ if (!name) {
239
+ throw new driver_1.errors.InvalidArgumentError('Button name is mandatory');
240
+ }
241
+ if (!lodash_1.default.isNil(durationSeconds) && !lodash_1.default.isNumber(durationSeconds)) {
242
+ throw new driver_1.errors.InvalidArgumentError('durationSeconds should be a number');
243
+ }
244
+ return await this.proxyCommand('/wda/pressButton', 'POST', { name, duration: durationSeconds });
245
+ }
246
+ /**
247
+ * Process a string as speech and send it to Siri.
248
+ *
249
+ * Presents the Siri UI, if it is not currently active, and accepts a string which is then processed as if it were recognized speech. See [the documentation of `activateWithVoiceRecognitionText`](https://developer.apple.com/documentation/xctest/xcuisiriservice/2852140-activatewithvoicerecognitiontext?language=objc) for more details.
250
+
251
+ * @param {string} text - Text to be sent to Siri
252
+ * @returns {Promise<void>}
253
+ * @this {XCUITestDriver}
254
+ */
255
+ async function mobileSiriCommand(text) {
256
+ if (!text) {
257
+ throw new driver_1.errors.InvalidArgumentError('"text" argument is mandatory');
258
+ }
259
+ await this.proxyCommand('/wda/siri/activate', 'POST', { text });
260
+ }
261
+ /**
262
+ * @typedef {Object} PressButtonOptions
263
+ * @property {string} name - The name of the button to be pressed.
264
+ * @property {number} [durationSeconds] - Duration in float seconds.
265
+ */
266
+ /**
267
+ * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
268
+ * @typedef {import('./types').ScreenInfo} ScreenInfo
269
+ */
270
+ //# sourceMappingURL=general.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.js","sourceRoot":"","sources":["../../../lib/commands/general.js"],"names":[],"mappings":";;;;;AAWA,wBAKC;AAQD,0BAEC;AAQD,kDAEC;AAOD,sCAGC;AASD,sCAsCC;AASD,kDAEC;AAOD,sCAcC;AAKD,8BAEC;AAKD,8BAKC;AAKD,4BAKC;AAOD,wBAgBC;AASD,0CAcC;AASD,sCAEC;AAKD,gDA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