@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,113 @@
1
+ "use strict";
2
+ /**
3
+ * Mapping of permission resource name to identifier.
4
+ * @see https://developer.apple.com/documentation/xctest/xcuiprotectedresource?language=objc
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.BatteryState = exports.AppState = exports.ThermalState = exports.AuthorizationStatus = exports.PermissionService = void 0;
8
+ var PermissionService;
9
+ (function (PermissionService) {
10
+ PermissionService[PermissionService["calendar"] = 2] = "calendar";
11
+ PermissionService[PermissionService["camera"] = 6] = "camera";
12
+ PermissionService[PermissionService["contacts"] = 1] = "contacts";
13
+ PermissionService[PermissionService["health"] = -1073741827] = "health";
14
+ PermissionService[PermissionService["homekit"] = 8] = "homekit";
15
+ PermissionService[PermissionService["keyboardnet"] = -1073741825] = "keyboardnet";
16
+ PermissionService[PermissionService["location"] = -1073741826] = "location";
17
+ PermissionService[PermissionService["medialibrary"] = 7] = "medialibrary";
18
+ PermissionService[PermissionService["microphone"] = 5] = "microphone";
19
+ PermissionService[PermissionService["photos"] = 4] = "photos";
20
+ PermissionService[PermissionService["reminders"] = 3] = "reminders";
21
+ PermissionService[PermissionService["systemroot"] = 1073741824] = "systemroot";
22
+ PermissionService[PermissionService["userdesktop"] = 1073741825] = "userdesktop";
23
+ PermissionService[PermissionService["userdocuments"] = 1073741827] = "userdocuments";
24
+ PermissionService[PermissionService["userdownloads"] = 1073741826] = "userdownloads";
25
+ PermissionService[PermissionService["bluetooth"] = -1073741824] = "bluetooth";
26
+ })(PermissionService || (exports.PermissionService = PermissionService = {}));
27
+ /**
28
+ * @see https://developer.apple.com/documentation/corelocation/clauthorizationstatus
29
+ */
30
+ var AuthorizationStatus;
31
+ (function (AuthorizationStatus) {
32
+ AuthorizationStatus[AuthorizationStatus["notDetermined"] = 0] = "notDetermined";
33
+ AuthorizationStatus[AuthorizationStatus["restricted"] = 1] = "restricted";
34
+ AuthorizationStatus[AuthorizationStatus["denied"] = 2] = "denied";
35
+ AuthorizationStatus[AuthorizationStatus["authorizedAlways"] = 3] = "authorizedAlways";
36
+ AuthorizationStatus[AuthorizationStatus["authorizedWhenInUse"] = 4] = "authorizedWhenInUse";
37
+ })(AuthorizationStatus || (exports.AuthorizationStatus = AuthorizationStatus = {}));
38
+ /**
39
+ * Thermal state of an iOS device.
40
+ *
41
+ * Returned (since iOS 11.0) within a {@linkcode DeviceInfo} response.
42
+ * @see https://developer.apple.com/documentation/foundation/nsprocessinfothermalstate
43
+ */
44
+ var ThermalState;
45
+ (function (ThermalState) {
46
+ /**
47
+ * The thermal state is within normal limits.
48
+ */
49
+ ThermalState[ThermalState["NSProcessInfoThermalStateNominal"] = 0] = "NSProcessInfoThermalStateNominal";
50
+ /**
51
+ * The thermal state is slightly elevated.
52
+ */
53
+ ThermalState[ThermalState["NSProcessInfoThermalStateFair"] = 1] = "NSProcessInfoThermalStateFair";
54
+ /**
55
+ * The thermal state is high.
56
+ */
57
+ ThermalState[ThermalState["NSProcessInfoThermalStateSerious"] = 2] = "NSProcessInfoThermalStateSerious";
58
+ /**
59
+ * The thermal state is significantly impacting the performance of the system and the device needs to cool down.
60
+ */
61
+ ThermalState[ThermalState["NSProcessInfoThermalStateCritical"] = 3] = "NSProcessInfoThermalStateCritical";
62
+ })(ThermalState || (exports.ThermalState = ThermalState = {}));
63
+ /**
64
+ * Application state code.
65
+ * @see https://developer.apple.com/documentation/xctest/xcuiapplicationstate?language=objc
66
+ */
67
+ var AppState;
68
+ (function (AppState) {
69
+ /**
70
+ * The application's current state is not known.
71
+ */
72
+ AppState[AppState["XCUIApplicationStateUnknown"] = 0] = "XCUIApplicationStateUnknown";
73
+ /**
74
+ * The application is not running
75
+ */
76
+ AppState[AppState["XCUIApplicationStateNotRunning"] = 1] = "XCUIApplicationStateNotRunning";
77
+ /**
78
+ * The application is running in the background, but is suspended.
79
+ */
80
+ AppState[AppState["XCUIApplicationStateRunningBackgroundSuspended"] = 2] = "XCUIApplicationStateRunningBackgroundSuspended";
81
+ /**
82
+ * The application is running in the background.
83
+ */
84
+ AppState[AppState["XCUIApplicationStateRunningBackground"] = 3] = "XCUIApplicationStateRunningBackground";
85
+ /**
86
+ * The application is running in the foreground.
87
+ */
88
+ AppState[AppState["XCUIApplicationStateRunningForeground"] = 4] = "XCUIApplicationStateRunningForeground";
89
+ })(AppState || (exports.AppState = AppState = {}));
90
+ /**
91
+ * Battery state
92
+ * @see {@linkcode BatteryInfo}
93
+ */
94
+ var BatteryState;
95
+ (function (BatteryState) {
96
+ /**
97
+ * The battery state is unknown.
98
+ */
99
+ BatteryState[BatteryState["UIDeviceBatteryStateUnknown"] = 0] = "UIDeviceBatteryStateUnknown";
100
+ /**
101
+ * The device is running on battery and discharging.
102
+ */
103
+ BatteryState[BatteryState["UIDeviceBatteryStateUnplugged"] = 1] = "UIDeviceBatteryStateUnplugged";
104
+ /**
105
+ * The device is plugged in, less than 100%, and charging.
106
+ */
107
+ BatteryState[BatteryState["UIDeviceBatteryStateCharging"] = 2] = "UIDeviceBatteryStateCharging";
108
+ /**
109
+ * The device is plugged in and is at 100% charge.
110
+ */
111
+ BatteryState[BatteryState["UIDeviceBatteryStateFull"] = 3] = "UIDeviceBatteryStateFull";
112
+ })(BatteryState || (exports.BatteryState = BatteryState = {}));
113
+ //# sourceMappingURL=enum.js.map
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YAiBX;AAjBD,WAAY,YAAY;IACtB;;OAEG;IACH,6FAA+B,CAAA;IAC/B;;OAEG;IACH,iGAAiC,CAAA;IACjC;;OAEG;IACH,+FAAgC,CAAA;IAChC;;OAEG;IACH,uFAA4B,CAAA;AAC9B,CAAC,EAjBW,YAAY,4BAAZ,YAAY,QAiBvB"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Collect the response of an async script execution
3
+ * @this {XCUITestDriver}
4
+ * @deprecated
5
+ * @privateRemarks It's unclear what this is for. Don't use it.
6
+ */
7
+ export function receiveAsyncResponse(this: XCUITestDriver, status: any, value: any): Promise<void>;
8
+ /**
9
+ * @template {ExecuteMethodArgs} [TArgs = unknown[]]
10
+ * @template [TReturn = unknown]
11
+ * @param {string} script - Either a script to run, or in the case of an Execute Method, the name of the script to execute.
12
+ * @param {TArgs} [args]
13
+ * @this {XCUITestDriver}
14
+ * @returns {Promise<TReturn>}
15
+ */
16
+ export function execute<TArgs extends ExecuteMethodArgs = unknown[], TReturn = unknown>(this: XCUITestDriver, script: string, args?: TArgs): Promise<TReturn>;
17
+ /**
18
+ * @this {XCUITestDriver}
19
+ * @group Mobile Web Only
20
+ */
21
+ export function executeAsync(this: XCUITestDriver, script: any, args: any): Promise<any>;
22
+ export class executeAsync {
23
+ /**
24
+ * @this {XCUITestDriver}
25
+ * @group Mobile Web Only
26
+ */
27
+ constructor(this: XCUITestDriver, script: any, args: any);
28
+ asyncWaitMs: number;
29
+ }
30
+ export type StringRecord<T = any> = import("@appium/types").StringRecord<T>;
31
+ export type ExecuteMethodArgs = readonly any[] | readonly [StringRecord] | Readonly<StringRecord>;
32
+ import { XCUITestDriver } from '../driver';
33
+ //# sourceMappingURL=execute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../lib/commands/execute.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,mGAqBC;AAED;;;;;;;GAOG;AACH,wBAPkC,KAAK,SAAzB,iBAAkB,cAClB,OAAO,0CACV,MAAM,SACN,KAAK,GAEH,OAAO,CAAC,OAAO,CAAC,CAe5B;AAED;;;GAGG;AACH,yFAaC;;IAjBD;;;OAGG;IACH,0DAaC;IAPC,oBAAwC;;yBA+E5B,CAAC,UACF,OAAO,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC;gCAIvC,SAAS,GAAG,EAAE,GAAG,SAAS,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC;+BAtJjD,WAAW"}
@@ -0,0 +1,142 @@
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.receiveAsyncResponse = receiveAsyncResponse;
7
+ exports.execute = execute;
8
+ exports.executeAsync = executeAsync;
9
+ const lodash_1 = __importDefault(require("lodash"));
10
+ const driver_1 = require("../driver");
11
+ const driver_2 = require("appium/driver");
12
+ const support_1 = require("appium/support");
13
+ /**
14
+ * Collect the response of an async script execution
15
+ * @this {XCUITestDriver}
16
+ * @deprecated
17
+ * @privateRemarks It's unclear what this is for. Don't use it.
18
+ */
19
+ async function receiveAsyncResponse(status, value) {
20
+ this.log.debug(`Received async response: ${JSON.stringify(value)}`);
21
+ if (!support_1.util.hasValue(this.asyncPromise)) {
22
+ this.log.warn(`Received async response when we were not expecting one! ` +
23
+ `Response was: ${JSON.stringify(value)}`);
24
+ return;
25
+ }
26
+ if (support_1.util.hasValue(status) && status !== 0) {
27
+ // MJSONWP
28
+ return this.asyncPromise.reject((0, driver_2.errorFromCode)(status, value.message));
29
+ }
30
+ if (!support_1.util.hasValue(status) && value && lodash_1.default.isString(value.error)) {
31
+ // W3C
32
+ return this.asyncPromise.reject((0, driver_2.errorFromW3CJsonCode)(value.error, value.message, value.stacktrace));
33
+ }
34
+ return this.asyncPromise.resolve(value);
35
+ }
36
+ /**
37
+ * @template {ExecuteMethodArgs} [TArgs = unknown[]]
38
+ * @template [TReturn = unknown]
39
+ * @param {string} script - Either a script to run, or in the case of an Execute Method, the name of the script to execute.
40
+ * @param {TArgs} [args]
41
+ * @this {XCUITestDriver}
42
+ * @returns {Promise<TReturn>}
43
+ */
44
+ async function execute(script, args) {
45
+ // TODO: create a type that converts args to the parameters of the associated method using the `command` prop of `executeMethodMap`
46
+ script = script.trim().replace(/^mobile:\s*/, 'mobile: ');
47
+ if (isExecuteMethod(script)) {
48
+ const executeMethodArgs = preprocessExecuteMethodArgs(script, args);
49
+ return await this.executeMethod(script, [executeMethodArgs]);
50
+ }
51
+ else if (this.isWebContext()) {
52
+ const atomsArgs = this.convertElementsForAtoms(/** @type {readonly any[]} */ (args));
53
+ const result = await this.executeAtom('execute_script', [script, atomsArgs]);
54
+ return this.cacheWebElements(result);
55
+ }
56
+ else {
57
+ throw new driver_2.errors.NotImplementedError();
58
+ }
59
+ }
60
+ /**
61
+ * @this {XCUITestDriver}
62
+ * @group Mobile Web Only
63
+ */
64
+ async function executeAsync(script, args) {
65
+ if (!this.isWebContext()) {
66
+ throw new driver_2.errors.NotImplementedError();
67
+ }
68
+ args = this.convertElementsForAtoms(args);
69
+ this.asyncWaitMs = this.asyncWaitMs || 0;
70
+ const promise = ( /** @type {import('appium-remote-debugger').RemoteDebugger} */(this.remote)).executeAtomAsync('execute_async_script', [script, args, this.asyncWaitMs], this.curWebFrames);
71
+ return this.cacheWebElements(await this.waitForAtom(promise));
72
+ }
73
+ /**
74
+ * Checks if script expects a particular parameter (either optional or required).
75
+ * @template {keyof XCUITestDriver.executeMethodMap} Script
76
+ * @param {Script} script - Script name
77
+ * @param {string} param - Parameter name
78
+ * @returns {boolean}
79
+ */
80
+ function executeMethodExpectsParam(script, param) {
81
+ /** @type {ReadonlyArray<string>|undefined} */
82
+ let required;
83
+ /** @type {ReadonlyArray<string>|undefined} */
84
+ let optional;
85
+ const execMethodDef = driver_1.XCUITestDriver.executeMethodMap[script];
86
+ if ('params' in execMethodDef) {
87
+ if ('required' in execMethodDef.params) {
88
+ required = execMethodDef.params.required;
89
+ }
90
+ if ('optional' in execMethodDef.params) {
91
+ optional = execMethodDef.params.optional;
92
+ }
93
+ }
94
+ const allParams = new Set(lodash_1.default.flatten([...(required ?? []), ...(optional ?? [])]));
95
+ return allParams.has(param);
96
+ }
97
+ /**
98
+ * @param {any} script
99
+ * @returns {script is keyof XCUITestDriver.executeMethodMap}
100
+ */
101
+ function isExecuteMethod(script) {
102
+ return script in driver_1.XCUITestDriver.executeMethodMap;
103
+ }
104
+ /**
105
+ * Massages the arguments going into an execute method.
106
+ * @param {keyof XCUITestDriver.executeMethodMap} script
107
+ * @param {ExecuteMethodArgs} [args]
108
+ * @returns {StringRecord<unknown>}
109
+ */
110
+ function preprocessExecuteMethodArgs(script, args) {
111
+ if (lodash_1.default.isArray(args)) {
112
+ args = lodash_1.default.first(args);
113
+ }
114
+ const executeMethodArgs = /** @type {StringRecord<unknown>} */ (args ?? {});
115
+ /**
116
+ * Renames the deprecated `element` key to `elementId`. Historically,
117
+ * all of the pre-Execute-Method-Map execute methods accepted an `element` _or_ and `elementId` param.
118
+ * This assigns the `element` value to `elementId` if `elementId` is not already present.
119
+ */
120
+ if (!('elementId' in executeMethodArgs) && 'element' in executeMethodArgs) {
121
+ executeMethodArgs.elementId = executeMethodArgs.element;
122
+ delete executeMethodArgs.element;
123
+ }
124
+ /**
125
+ * Automatically unwraps the `elementId` prop _if and only if_ the execute method expects it.
126
+ *
127
+ * Most of these Execute Methods (typically beginning with `mobile*`) will accept an `Element|string` for `elementId`, in practice they will only ever get a `string`. `Element|string` in the method's docstring is simply for documentation purposes.
128
+ */
129
+ if ('elementId' in executeMethodArgs && executeMethodExpectsParam(script, 'elementId')) {
130
+ executeMethodArgs.elementId = support_1.util.unwrapElement(
131
+ /** @type {import('@appium/types').Element|string} */ (executeMethodArgs.elementId));
132
+ }
133
+ return executeMethodArgs;
134
+ }
135
+ /**
136
+ * @template [T=any]
137
+ * @typedef {import('@appium/types').StringRecord<T>} StringRecord
138
+ */
139
+ /**
140
+ * @typedef {readonly any[] | readonly [StringRecord] | Readonly<StringRecord>} ExecuteMethodArgs
141
+ */
142
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../lib/commands/execute.js"],"names":[],"mappings":";;;;;AAWA,oDAqBC;AAUD,0BAaC;AAMD,oCAaC;AA1ED,oDAAuB;AACvB,sCAAyC;AACzC,0CAA0E;AAC1E,4CAAoC;AAEpC;;;;;GAKG;AACI,KAAK,UAAU,oBAAoB,CAAC,MAAM,EAAE,KAAK;IACtD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,4BAA4B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACpE,IAAI,CAAC,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,GAAG,CAAC,IAAI,CACX,0DAA0D;YACxD,iBAAiB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAC3C,CAAC;QACF,OAAO;IACT,CAAC;IAED,IAAI,cAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1C,UAAU;QACV,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAA,sBAAa,EAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACxE,CAAC;IACD,IAAI,CAAC,cAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,gBAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/D,MAAM;QACN,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAC7B,IAAA,6BAAoB,EAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAA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AC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACpB,IAAI,GAAG,gBAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IACD,MAAM,iBAAiB,GAAG,oCAAoC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IAC5E;;;;OAIG;IACH,IAAI,CAAC,CAAC,WAAW,IAAI,iBAAiB,CAAC,IAAI,SAAS,IAAI,iBAAiB,EAAE,CAAC;QAC1E,iBAAiB,CAAC,SAAS,GAAG,iBAAiB,CAAC,OAAO,CAAC;QACxD,OAAO,iBAAiB,CAAC,OAAO,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,IAAI,WAAW,IAAI,iBAAiB,IAAI,yBAAyB,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,CAAC;QACvF,iBAAiB,CAAC,SAAS,GAAG,cAAI,CAAC,aAAa;QAC9C,qDAAqD,CAAC,CAAC,iBAAiB,CAAC,SAAS,CAAC,CACpF,CAAC;IACJ,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED;;;GAGG;AAEH;;GAEG"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * Parses the actual path and the bundle identifier from the given path string
3
+ *
4
+ * @this {XCUITestDriver}
5
+ * @param {string} remotePath - The given path string. The string should
6
+ * match `CONTAINER_PATH_PATTERN` regexp, otherwise an error is going
7
+ * to be thrown. A valid string example: `@bundle.identifier:container_type/relative_path_in_container`
8
+ * @param {import('./types').ContainerRootSupplier|string} [containerRootSupplier] - Container root path supplier function or string value
9
+ * @returns {Promise<import('./types').ContainerObject>}
10
+ */
11
+ export function parseContainerPath(this: import("../driver").XCUITestDriver, remotePath: string, containerRootSupplier?: import("./types").ContainerRootSupplier | string): Promise<import("./types").ContainerObject>;
12
+ /**
13
+ * Pushes the given data to a file on the remote device
14
+ *
15
+ * @param {string} remotePath The full path to the remote file or
16
+ * a file inside a package bundle. Check the documentation on
17
+ * `pushFileToRealDevice` and `pushFileToSimulator` for more information
18
+ * on acceptable values.
19
+ * @param {string} base64Data Base64 encoded data to be written to the
20
+ * remote file. The remote file will be silently overridden if it already exists.
21
+ * @throws {Error} If there was an error while pushing the data
22
+ * @this {XCUITestDriver}
23
+ */
24
+ export function pushFile(this: import("../driver").XCUITestDriver, remotePath: string, base64Data: string): Promise<any>;
25
+ /**
26
+ * Pushes the given data to a file on the remote device.
27
+ *
28
+ * @param {string} remotePath - The full path to the remote file
29
+ * or a specially formatted path, which points to an item inside an app bundle.
30
+ * @param {string} payload - Base64-encoded content of the file to be pushed.
31
+ * @this {XCUITestDriver}
32
+ */
33
+ export function mobilePushFile(this: import("../driver").XCUITestDriver, remotePath: string, payload: string): Promise<any>;
34
+ /**
35
+ * Pulls a remote file from the device.
36
+ *
37
+ * @param {string} remotePath The full path to the remote file
38
+ * or a specially formatted path, which points to an item inside app bundle.
39
+ * See the documentation for `pullFromRealDevice` and `pullFromSimulator`
40
+ * to get more information on acceptable values.
41
+ * @returns {Promise<string>} Base64 encoded content of the pulled file
42
+ * @throws {Error} If the pull operation failed
43
+ * @this {XCUITestDriver}
44
+ */
45
+ export function pullFile(this: import("../driver").XCUITestDriver, remotePath: string): Promise<string>;
46
+ /**
47
+ * Pulls a remote file from the device.
48
+ *
49
+ * @param {string} remotePath - The full path to the remote file
50
+ * or a specially formatted path, which points to an item inside app bundle. See the documentation for `pullFromRealDevice` and `pullFromSimulator` to get more information on acceptable values.
51
+ * @returns {Promise<string>} The same as in `pullFile`
52
+ * @this {XCUITestDriver}
53
+ */
54
+ export function mobilePullFile(this: import("../driver").XCUITestDriver, remotePath: string): Promise<string>;
55
+ /**
56
+ * Delete a remote folder from the device.
57
+ *
58
+ * @param {string} remotePath - The full path to the remote folder or a specially formatted path, which points to an item inside app bundle. See the documentation for `pullFromRealDevice` and `pullFromSimulator` to get more information on acceptable values.
59
+ * @this {XCUITestDriver}
60
+ * @returns {Promise<void>}
61
+ */
62
+ export function mobileDeleteFolder(this: import("../driver").XCUITestDriver, remotePath: string): Promise<void>;
63
+ /**
64
+ * Delete a remote file from the device.
65
+ *
66
+ * @param {string} remotePath - The full path to the remote file or a specially formatted path, which points to an item inside app bundle. See the documentation for `pullFromRealDevice` and `pullFromSimulator` to get more information on acceptable values.
67
+ * @this {XCUITestDriver}
68
+ * @returns {Promise<void>}
69
+ */
70
+ export function mobileDeleteFile(this: import("../driver").XCUITestDriver, remotePath: string): Promise<void>;
71
+ /**
72
+ * Pulls the whole folder from the remote device
73
+ *
74
+ * @param {string} remotePath The full path to a folder on the
75
+ * remote device or a folder inside an application bundle
76
+ * @returns {Promise<string>} Zipped and base64-encoded content of the folder
77
+ * @throws {Error} If there was a failure while getting the folder content
78
+ * @this {XCUITestDriver}
79
+ */
80
+ export function pullFolder(this: import("../driver").XCUITestDriver, remotePath: string): Promise<string>;
81
+ /**
82
+ * Pulls the whole folder from the device under test.
83
+ *
84
+ * @param {string} remotePath - The full path to the remote folder
85
+ * @returns {Promise<string>} The same as `pullFolder`
86
+ * @this {XCUITestDriver}
87
+ */
88
+ export function mobilePullFolder(this: import("../driver").XCUITestDriver, remotePath: string): Promise<string>;
89
+ export type XCUITestDriver = import("../driver").XCUITestDriver;
90
+ //# sourceMappingURL=file-movement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-movement.d.ts","sourceRoot":"","sources":["../../../lib/commands/file-movement.js"],"names":[],"mappings":"AAcA;;;;;;;;;GASG;AACH,yFANW,MAAM,0BAGN,OAAO,SAAS,EAAE,qBAAqB,GAAC,MAAM,GAC5C,OAAO,CAAC,OAAO,SAAS,EAAE,eAAe,CAAC,CA+BtD;AA8TD;;;;;;;;;;;GAWG;AACH,+EATW,MAAM,cAIN,MAAM,gBAoBhB;AAED;;;;;;;GAOG;AACH,qFALW,MAAM,WAEN,MAAM,gBAKhB;AAED;;;;;;;;;;GAUG;AACH,+EARW,MAAM,GAIJ,OAAO,CAAC,MAAM,CAAC,CAc3B;AAED;;;;;;;GAOG;AACH,qFALW,MAAM,GAEJ,OAAO,CAAC,MAAM,CAAC,CAK3B;AAED;;;;;;GAMG;AACH,yFAJW,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CAOzB;AAED;;;;;;GAMG;AACH,uFAJW,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CAUzB;AAED;;;;;;;;GAQG;AACH,iFANW,MAAM,GAEJ,OAAO,CAAC,MAAM,CAAC,CAW3B;AAED;;;;;;GAMG;AACH,uFAJW,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAK3B;6BAGY,OAAO,WAAW,EAAE,cAAc"}