@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,57 @@
1
+ /**
2
+ * @typedef {Object} GeolocationInfo
3
+ * @property {number|null} latitude Measurement of distance north or south of the Equator, or
4
+ * `null` if {@linkcode XCUITestDriver.mobileSetSimulatedLocation} has not been called or {@linkcode
5
+ * resetSimulatedLocation} has been called.
6
+ * @property {number|null} longitude Measurement of distance east or west of the prime meridian, or
7
+ * `null` if {@linkcode XCUITestDriver.mobileSetSimulatedLocation} has not been called or {@linkcode
8
+ * resetSimulatedLocation} has been called.
9
+ */
10
+ /**
11
+ * Retrieves the simulated geolocation value.
12
+ * Only works since Xcode 14.3/iOS 16.4
13
+ *
14
+ * @returns {Promise<GeolocationInfo>}
15
+ * @throws {Error} If the device under test does not support gelolocation simulation.
16
+ * @since 4.18
17
+ * @this {XCUITestDriver}
18
+ */
19
+ export function mobileGetSimulatedLocation(this: import("../driver").XCUITestDriver): Promise<GeolocationInfo>;
20
+ /**
21
+ * Sets simulated geolocation value.
22
+ * Only works since Xcode 14.3/iOS 16.4
23
+ *
24
+ * @param {number} latitude
25
+ * @param {number} longitude
26
+ * @returns {Promise<void>}
27
+ * @throws {Error} If the device under test does not support gelolocation simulation.
28
+ * @since 4.18
29
+ * @this {XCUITestDriver}
30
+ */
31
+ export function mobileSetSimulatedLocation(this: import("../driver").XCUITestDriver, latitude: number, longitude: number): Promise<void>;
32
+ /**
33
+ * Resets simulated geolocation value.
34
+ * Only works since Xcode 14.3/iOS 16.4.
35
+ * ! Do not forget to reset the simulated geolocation value after your automated test is finished.
36
+ * ! If the value is not reset explicitly then the simulated one will remain until the next device restart.
37
+ *
38
+ * @returns {Promise<void>}
39
+ * @throws {Error} If the device under test does not support gelolocation simulation.
40
+ * @since 4.18
41
+ * @this {XCUITestDriver}
42
+ */
43
+ export function mobileResetSimulatedLocation(this: import("../driver").XCUITestDriver): Promise<void>;
44
+ export type GeolocationInfo = {
45
+ /**
46
+ * Measurement of distance north or south of the Equator, or
47
+ * `null` if {@linkcode XCUITestDriver.mobileSetSimulatedLocation} has not been called or {@linkcode * resetSimulatedLocation} has been called.
48
+ */
49
+ latitude: number | null;
50
+ /**
51
+ * Measurement of distance east or west of the prime meridian, or
52
+ * `null` if {@linkcode XCUITestDriver.mobileSetSimulatedLocation} has not been called or {@linkcode * resetSimulatedLocation} has been called.
53
+ */
54
+ longitude: number | null;
55
+ };
56
+ export type XCUITestDriver = import("../driver").XCUITestDriver;
57
+ //# sourceMappingURL=geolocation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geolocation.d.ts","sourceRoot":"","sources":["../../../lib/commands/geolocation.js"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AACH,sFALa,OAAO,CAAC,eAAe,CAAC,CAOpC;AAED;;;;;;;;;;GAUG;AACH,+FAPW,MAAM,aACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAOzB;AAED;;;;;;;;;;GAUG;AACH,wFALa,OAAO,CAAC,IAAI,CAAC,CAOzB;;;;;;cAjDa,MAAM,GAAC,IAAI;;;;;eAGX,MAAM,GAAC,IAAI;;6BAiDZ,OAAO,WAAW,EAAE,cAAc"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /**
3
+ * @typedef {Object} GeolocationInfo
4
+ * @property {number|null} latitude Measurement of distance north or south of the Equator, or
5
+ * `null` if {@linkcode XCUITestDriver.mobileSetSimulatedLocation} has not been called or {@linkcode
6
+ * resetSimulatedLocation} has been called.
7
+ * @property {number|null} longitude Measurement of distance east or west of the prime meridian, or
8
+ * `null` if {@linkcode XCUITestDriver.mobileSetSimulatedLocation} has not been called or {@linkcode
9
+ * resetSimulatedLocation} has been called.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.mobileGetSimulatedLocation = mobileGetSimulatedLocation;
13
+ exports.mobileSetSimulatedLocation = mobileSetSimulatedLocation;
14
+ exports.mobileResetSimulatedLocation = mobileResetSimulatedLocation;
15
+ /**
16
+ * Retrieves the simulated geolocation value.
17
+ * Only works since Xcode 14.3/iOS 16.4
18
+ *
19
+ * @returns {Promise<GeolocationInfo>}
20
+ * @throws {Error} If the device under test does not support gelolocation simulation.
21
+ * @since 4.18
22
+ * @this {XCUITestDriver}
23
+ */
24
+ async function mobileGetSimulatedLocation() {
25
+ return await this.proxyCommand('/wda/simulatedLocation', 'GET');
26
+ }
27
+ /**
28
+ * Sets simulated geolocation value.
29
+ * Only works since Xcode 14.3/iOS 16.4
30
+ *
31
+ * @param {number} latitude
32
+ * @param {number} longitude
33
+ * @returns {Promise<void>}
34
+ * @throws {Error} If the device under test does not support gelolocation simulation.
35
+ * @since 4.18
36
+ * @this {XCUITestDriver}
37
+ */
38
+ async function mobileSetSimulatedLocation(latitude, longitude) {
39
+ return await this.proxyCommand('/wda/simulatedLocation', 'POST', { latitude, longitude });
40
+ }
41
+ /**
42
+ * Resets simulated geolocation value.
43
+ * Only works since Xcode 14.3/iOS 16.4.
44
+ * ! Do not forget to reset the simulated geolocation value after your automated test is finished.
45
+ * ! If the value is not reset explicitly then the simulated one will remain until the next device restart.
46
+ *
47
+ * @returns {Promise<void>}
48
+ * @throws {Error} If the device under test does not support gelolocation simulation.
49
+ * @since 4.18
50
+ * @this {XCUITestDriver}
51
+ */
52
+ async function mobileResetSimulatedLocation() {
53
+ return await this.proxyCommand('/wda/simulatedLocation', 'DELETE');
54
+ }
55
+ /**
56
+ * @typedef {import('../driver').XCUITestDriver} XCUITestDriver
57
+ */
58
+ //# sourceMappingURL=geolocation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geolocation.js","sourceRoot":"","sources":["../../../lib/commands/geolocation.js"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;AAWH,gEAEC;AAaD,gEAEC;AAaD,oEAEC;AAzCD;;;;;;;;GAQG;AACI,KAAK,UAAU,0BAA0B;IAC9C,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,0BAA0B,CAAC,QAAQ,EAAE,SAAS;IAClE,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,wBAAwB,EAAE,MAAM,EAAE,EAAC,QAAQ,EAAE,SAAS,EAAC,CAAC,CAAC;AAC1F,CAAC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,4BAA4B;IAChD,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AACrE,CAAC;AAED;;GAEG"}
@@ -0,0 +1,283 @@
1
+ /**
2
+ *
3
+ * @param {any[]} gestures
4
+ * @param {string[]|null} keysToInclude
5
+ * @returns {string}
6
+ */
7
+ export function gesturesChainToString(gestures: any[], keysToInclude?: string[] | null): string;
8
+ /**
9
+ * Shake the device
10
+ * @this {XCUITestDriver}
11
+ * @group Simulator Only
12
+ */
13
+ export function mobileShake(this: import("../driver").XCUITestDriver): Promise<void>;
14
+ /**
15
+ * @this {XCUITestDriver}
16
+ */
17
+ export function click(this: import("../driver").XCUITestDriver, el: any): Promise<any>;
18
+ /**
19
+ * @this {XCUITestDriver}
20
+ */
21
+ export function releaseActions(this: import("../driver").XCUITestDriver): Promise<void>;
22
+ /**
23
+ * @param {import('@appium/types').ActionSequence[]} actions
24
+ * @returns {Promise<void>}
25
+ * @this {XCUITestDriver}
26
+ */
27
+ export function performActions(this: import("../driver").XCUITestDriver, actions: import("@appium/types").ActionSequence[]): Promise<void>;
28
+ /**
29
+ * @param {import('@appium/types').Element|string} el
30
+ * @this {XCUITestDriver}
31
+ * @group Native Only
32
+ */
33
+ export function nativeClick(this: import("../driver").XCUITestDriver, el: import("@appium/types").Element | string): Promise<unknown>;
34
+ /**
35
+ * Scrolls the current viewport to the given element.
36
+ *
37
+ * This command expects the destination element to be inside a scrollable container and is hittable. The scroll direction is detected automatically.
38
+ *
39
+ * This API uses native XCTest calls, so it is performant. The same native call is implicitly performed by a `click` command if the destination element is outside the current viewport.
40
+ *
41
+ * @since 4.7.0
42
+ * @throws If the scrolling action cannot be performed
43
+ * @privateRemarks See https://github.com/facebook/WebDriverAgent/blob/master/WebDriverAgentLib/Commands/FBElementCommands.m for details on WDA gestures API
44
+ * @param {Element|string} elementId - The internal element identifier (as hexadecimal hash string) to scroll to. The destination element must be located in a scrollable container and must be hittable. If the element is already present in the current viewport then no action is performed.
45
+ * @returns {Promise<void>}
46
+ * @this {XCUITestDriver}
47
+ */
48
+ export function mobileScrollToElement(this: import("../driver").XCUITestDriver, elementId: Element | string): Promise<void>;
49
+ /**
50
+ * Scrolls an element or the entire screen.
51
+ *
52
+ * Use this command to emulate precise scrolling in tables or collection views where it is already known to which element the scrolling should be performed.
53
+ *
54
+ * The arguments define the chosen strategy: one of `name`, `direction`, `predicateString` or `toVisible`.
55
+ *
56
+ * **All strategies are exclusive**; only one strategy can be used at one time.
57
+ *
58
+ * **Known Limitations:**
59
+ *
60
+ * - If it is necessary to perform many scroll gestures on parent container to reach the necessary child element (tens of them), then the method call may fail. *
61
+ * - The implementation of this extension relies on several undocumented XCTest features, which might not always be reliable.
62
+ *
63
+ * @param {string} [name] - The internal element identifier (as hexadecimal hash string) to scroll on (e.g. the container). The Application element will be used if this argument is not provided.
64
+ * @param {import('./types').Direction} [direction] - The main difference between this command and a `mobile: swipe` command using the same direction is that `mobile: scroll` will attempt to move the current viewport exactly to the next or previous page (the term "page" means the content, which fits into a single device screen).
65
+ * @param {string} [predicateString] - The `NSPredicate` locator of the child element, to which the scrolling should be performed. Has no effect if `elementId` is not a container.
66
+ * @param {boolean} [toVisible] - If `true`, scrolls to the first visible `elementId` in the parent container. Has no effect if `elementId` is unset.
67
+ * @param {number} [distance] - A ratio of the screen height; `1.0` means a full-screen-worth of scrolling.
68
+ * @param {Element|string} [elementId] - Element ID or Element used in various strategies.
69
+ * @returns {Promise<void>}
70
+ * @this {XCUITestDriver}
71
+ * @example
72
+ * ```python
73
+ * driver.execute_script('mobile: scroll', {'direction': 'down'})
74
+ * ```
75
+ */
76
+ export function mobileScroll(this: import("../driver").XCUITestDriver, name?: string, direction?: import("./types").Direction, predicateString?: string, toVisible?: boolean, distance?: number, elementId?: Element | string): Promise<void>;
77
+ /**
78
+ * @param {import('./types').Direction} direction
79
+ * @param {number} [velocity]
80
+ * @param {Element|string} [elementId]
81
+ * @this {XCUITestDriver}
82
+ */
83
+ export function mobileSwipe(this: import("../driver").XCUITestDriver, direction: import("./types").Direction, velocity?: number, elementId?: Element | string): Promise<void>;
84
+ /**
85
+ * Performs a pinch gesture on the given element or on the Application element.
86
+ *
87
+ * @param {number} scale - Pinch scale (float value). A value between `0` and `1` performs a "pinch close" (or "zoom out"); a value greater than `1` performs a "pinch open" ("zoom in").
88
+ * @param {number} velocity - The velocity of the pinch in scale factor per second (float value).
89
+ * @param {Element|string} [elementId] The internal element identifier (as hexadecimal hash string) to pinch on. The Application element will be used if this parameter is not provided.
90
+ * @returns {Promise<void>}
91
+ * @this {XCUITestDriver}
92
+ * @see https://developer.apple.com/documentation/xctest/xcuielement/1618669-pinchwithscale?language=objc
93
+ * @example
94
+ *
95
+ * ```ruby
96
+ * execute_script 'mobile: pinch', scale: 0.5, velocity: 1.1, element: element.ref
97
+ * ```
98
+ */
99
+ export function mobilePinch(this: import("../driver").XCUITestDriver, scale: number, velocity: number, elementId?: Element | string): Promise<void>;
100
+ /**
101
+ * Performs double tap gesture on the given element or on the screen.
102
+ *
103
+ * @param {Element|string} [elementId] - The internal element identifier (as hexadecimal hash string) to double tap on. The Application element will be used if this parameter is not provided.
104
+ * @param {number} [x] - The _x_ coordinate (float value) to double tap on.
105
+ * @param {number} [y] - The _y_ coordinate (float value) to double tap on.
106
+ * @returns {Promise<void>}
107
+ * @this {XCUITestDriver}
108
+ * @example
109
+ * ```javascript
110
+ * // using WebdriverIO
111
+ * await driver.execute('mobile: doubleTap', {element: element.value.ELEMENT});
112
+ * ```
113
+ */
114
+ export function mobileDoubleTap(this: import("../driver").XCUITestDriver, elementId?: Element | string, x?: number, y?: number): Promise<void>;
115
+ /**
116
+ * Performs two finger tap gesture on the given element or on the application element.
117
+ *
118
+ * @param {Element|string} [elementId] - The internal element identifier (as hexadecimal hash string) to double tap on. The Application element will be used if this parameter is not provided.
119
+ * @returns {Promise<void>}
120
+ * @this {XCUITestDriver}
121
+ * @see https://developer.apple.com/documentation/xctest/xcuielement/1618675-twofingertap?language=objc
122
+ * @example
123
+ * ```csharp
124
+ * Dictionary<string, object> tfTap = new Dictionary<string, object>();
125
+ * tfTap.Add("element", element.Id);
126
+ * ((IJavaScriptExecutor)driver).ExecuteScript("mobile: twoFingerTap", tfTap);
127
+ * ```
128
+ */
129
+ export function mobileTwoFingerTap(this: import("../driver").XCUITestDriver, elementId?: Element | string): Promise<void>;
130
+ /**
131
+ * Performs a "long press" gesture on the given element or on the screen.
132
+ *
133
+ * @param {number} duration - The duration (in seconds) of the gesture.
134
+ * @param {number} [y] - The _y_ coordinate (float value) to hold on.
135
+ * @param {number} [x] - The _x_ coordinate (float value) to hold on.
136
+ * @param {Element|string} [elementId] - The internal element identifier (as hexadecimal hash string) to double tap on. The Application element will be used if this parameter is not provided.
137
+ * @this {XCUITestDriver}
138
+ * @see https://developer.apple.com/documentation/xctest/xcuielement/1618663-pressforduration?language=objc
139
+ * @example
140
+ * ```csharp
141
+ * Dictionary<string, object> tfLongTap = new Dictionary<string, object>();
142
+ * tfLongTap.Add("element", element.Id);
143
+ * tfLongTap.Add("duration", 2.0);
144
+ * ((IJavaScriptExecutor)driver).ExecuteScript("mobile: touchAndHold", tfLongTap);
145
+ * ```
146
+ */
147
+ export function mobileTouchAndHold(this: import("../driver").XCUITestDriver, duration: number, x?: number, y?: number, elementId?: Element | string): Promise<void>;
148
+ /**
149
+ * Performs tap gesture by coordinates on the given element or on the screen.
150
+ *
151
+ * @param {number} x - The _x_ coordinate (float value) to tap on. If `elementId` is provided, this is computed relative to the element; otherwise it is computed relative to the active Application element.
152
+ * @param {number} y - The _y_ coordinate (float value) to tap on. If `elementId` is provided, this is computed relative to the element; otherwise it is computed relative to the active Application element.
153
+ * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to tap on. The Application element will be used if this parameter is not provided.
154
+ * @this {XCUITestDriver}
155
+ * @returns {Promise<void>}
156
+ */
157
+ export function mobileTap(this: import("../driver").XCUITestDriver, x: number, y: number, elementId?: string | Element): Promise<void>;
158
+ /**
159
+ * Performs drag and drop gesture by coordinates on the given element or on the screen.
160
+ *
161
+ * @param {number} duration - The duration (in seconds) of the gesture. Must be between `0.5` and `60.0`, inclusive.
162
+ * @param {number} fromX - The _x_ coordinate (float value) of the starting drag point.
163
+ * @param {number} fromY - The _y_ coordinate (float value) of the starting drag point.
164
+ * @param {number} toX - The _x_ coordinate (float value) of the ending drag point.
165
+ * @param {number} toY - The _y_ coordinate (float value) of the ending drag point.
166
+ * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to drag. If provided, all coordinates will be calculated relative to this element; otherwise they will be calculated relative to the active Application element.
167
+ * @returns {Promise<void>}
168
+ * @see https://developer.apple.com/documentation/xctest/xcuielement/1500989-clickforduration?language=objc
169
+ * @this {XCUITestDriver}
170
+ * @example
171
+ * ```java
172
+ * JavascriptExecutor js = (JavascriptExecutor) driver;
173
+ * Map<String, Object> params = new HashMap<>();
174
+ * params.put("duration", 1.0);
175
+ * params.put("fromX", 100);
176
+ * params.put("fromY", 100);
177
+ * params.put("toX", 200);
178
+ * params.put("toY", 200);
179
+ * params.put("element", ((RemoteWebElement) element).getId());
180
+ * js.executeScript("mobile: dragFromToForDuration", params);
181
+ * ```
182
+ */
183
+ export function mobileDragFromToForDuration(this: import("../driver").XCUITestDriver, duration: number, fromX: number, fromY: number, toX: number, toY: number, elementId?: string | Element): Promise<void>;
184
+ /**
185
+ * Initiates a press-and-hold gesture, drags to another coordinate or an element with a given velocity, and holds for a given duration.
186
+ *
187
+ * @param {number} pressDuration - The duration (in seconds) of the press-and-hold gesture at the starting point. Must be between `0.5` and `60.0`, inclusive.
188
+ * @param {number} holdDuration - The duration (in seconds) of the hold gesture at the ending point (after dragging). Must be between `0.5` and `60.0`, inclusive.
189
+ * @param {number} velocity - The speed (in pixels-per-second) which to move from the initial position to the end position.
190
+ * @param {string|Element} [fromElementId] - The internal element identifier (as hexadecimal hash string) to drag from. Absolute screen coordinates are expected if this argument is not provided.
191
+ * @param {string|Element} [toElementId] - The internal element identifier (as hexadecimal hash string) to drag to. Absolute screen coordinates are expected if this argument is not provided.
192
+ * @param {number} [fromX] - The _x_ coordinate (float value) of the starting drag point.
193
+ * @param {number} [fromY] - The _y_ coordinate (float value) of the starting drag point.
194
+ * @param {number} [toX] - The _x_ coordinate (float value) of the ending drag point.
195
+ * @param {number} [toY] - The _y_ coordinate (float value) of the ending drag point.
196
+ * @returns {Promise<void>}
197
+ * @see https://developer.apple.com/documentation/xctest/xcuielement/3551693-pressforduration?language=objc
198
+ * @see https://developer.apple.com/documentation/xctest/xcuicoordinate/3551692-pressforduration?language=objc
199
+ * @this {XCUITestDriver}
200
+ */
201
+ export function mobileDragFromToWithVelocity(this: import("../driver").XCUITestDriver, pressDuration: number, holdDuration: number, velocity: number, fromElementId?: string | Element, toElementId?: string | Element, fromX?: number, fromY?: number, toX?: number, toY?: number): Promise<void>;
202
+ /**
203
+ * Sends one or more taps with one or more touch points.
204
+ *
205
+ * @since 1.17.1
206
+ * @param {number} [numberOfTaps=1] - Number of taps to perform.
207
+ * @param {number} [numberOfTouches=1] - Number of touch points to use.
208
+ * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to perform one or more taps.
209
+ * The Application element will be used if this parameter is not provided.
210
+ * @returns {Promise<void>}
211
+ * @this {XCUITestDriver}
212
+ * @see https://developer.apple.com/documentation/xctest/xcuielement/1618671-tapwithnumberoftaps?language=objc
213
+ * @example
214
+ * ```ruby
215
+ * e = @driver.find_element :id, 'target element'
216
+ * # Taps the element with a single touch point twice
217
+ * @driver.execute_script 'mobile: tapWithNumberOfTaps', {element: e.ref, numberOfTaps: 2, numberOfTouches: 1}
218
+ * ```
219
+ */
220
+ export function mobileTapWithNumberOfTaps(this: import("../driver").XCUITestDriver, numberOfTouches?: number, numberOfTaps?: number, elementId?: string | Element): Promise<void>;
221
+ /**
222
+ * Performs a "force press" on the given element or coordinates.
223
+ *
224
+ * @throws If the target device does not support the "force press" gesture.
225
+ * @param {number} [x] - The _x_ coordinate of the gesture. If `elementId` is set, this is calculated relative to its position; otherwise it's calculated relative to the active Application.
226
+ * @param {number} [y] - The _y_ coordinate of the gesture. If `elementId` is set, this is calculated relative to its position; otherwise it's calculated relative to the active Application.
227
+ * @param {number} [duration] - The duration (in seconds) of the force press. If this is provided, `pressure` must also be provided.
228
+ * @param {number} [pressure] - A float value defining the pressure of the force press. If this is provided, `duration` must also be provided.
229
+ * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to perform one or more taps.
230
+ * The Application element will be used if this parameter is not provided.
231
+ * @returns {Promise<void>}
232
+ * @this {XCUITestDriver}
233
+ */
234
+ export function mobileForcePress(this: import("../driver").XCUITestDriver, x?: number, y?: number, duration?: number, pressure?: number, elementId?: string | Element): Promise<void>;
235
+ /**
236
+ * Performs selection of the next or previous picker wheel value.
237
+ *
238
+ * This might be useful if these values are populated dynamically; you don't know which one to select, or the value selection using the `sendKeys` API does not work (for whatever reason).
239
+ *
240
+ * @throws Upon failure to change the current picker value.
241
+ * @param {string|Element} elementId - `PickerWheel`'s internal element ID as hexadecimal hash string. Value selection will be performed on this element. This element must be of type `XCUIElementTypePickerWheel`.
242
+ * @param {'next'|'previous'} order - Either `next` to select the value _next_ to the current from the target picker wheel, or `previous` to select the _previous_ value.
243
+ * @param {number} [offset=0.2] - The value in range `[0.01, 0.5]`. It defines how far from picker wheel's center the click should happen. The actual distance is calculated by multiplying this value to the actual picker wheel height. Too small an offset value may not change the picker wheel value at all, and too high a value may cause the wheel to switch two or more values at once. Usually the optimal value is located in range `[0.15, 0.3]`.
244
+ * @param {string?} [value=undefined] - If provided WDA will try to automatically scroll in the given direction until the actual picker value reaches the expected one or the amount of scrolling attempts is exceeded.
245
+ * @param {number} [maxAttempts=25] - The maximum number of scrolling attempts to reach `value` before an error will be thrown. Only makes sense in combination with `value`.
246
+ * @this {XCUITestDriver}
247
+ * @example
248
+ * ```java
249
+ * JavascriptExecutor js = (JavascriptExecutor) driver;
250
+ * Map<String, Object> params = new HashMap<>();
251
+ * params.put("order", "next");
252
+ * params.put("offset", 0.15);
253
+ * params.put("element", ((RemoteWebElement) element).getId());
254
+ * js.executeScript("mobile: selectPickerWheelValue", params);
255
+ * ```
256
+ */
257
+ export function mobileSelectPickerWheelValue(this: import("../driver").XCUITestDriver, elementId: string | Element, order: "next" | "previous", offset?: number, value?: string | null, maxAttempts?: number): Promise<unknown>;
258
+ /**
259
+ * Performs a rotate gesture on the given element.
260
+ *
261
+ * @see https://developer.apple.com/documentation/xctest/xcuielement/1618665-rotate?language=objc
262
+ * @param {number} rotation - The rotation gesture (in radians)
263
+ * @param {number} velocity - The velocity (in radians-per-second) of the gesture.
264
+ * @param {string|Element} [elementId] - The internal element identifier (as hexadecimal hash string) to perform the gesture on.
265
+ * The Application element will be used if this parameter is not provided.
266
+ * @returns {Promise<void>}
267
+ * @this {XCUITestDriver}
268
+ * @example
269
+ * ```java
270
+ * JavascriptExecutor js = (JavascriptExecutor) driver;
271
+ * js.executeScript("mobile: rotateElement", ImmutableMap.of(
272
+ * // rotate clockwise, 90 degrees
273
+ * "rotation", -Math.PI / 2,
274
+ * // in approximately two seconds
275
+ * "velocity", Math.PI / 4,
276
+ * "element", ((RemoteWebElement) element).getId()
277
+ * ));
278
+ * ```
279
+ */
280
+ export function mobileRotateElement(this: import("../driver").XCUITestDriver, rotation: number, velocity: number, elementId?: string | Element): Promise<void>;
281
+ export type XCUITestDriver = import("../driver").XCUITestDriver;
282
+ export type Element = import("@appium/types").Element;
283
+ //# sourceMappingURL=gesture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gesture.d.ts","sourceRoot":"","sources":["../../../lib/commands/gesture.js"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,gDAJW,GAAG,EAAE,kBACL,MAAM,EAAE,GAAC,IAAI,GACX,MAAM,CAmBlB;AAED;;;;GAIG;AACH,qFAKC;AAED;;GAEG;AACH,uFA2BC;AAED;;GAEG;AACH,wFAEC;AAED;;;;GAIG;AACH,kFAJW,OAAO,eAAe,EAAE,cAAc,EAAE,GACtC,OAAO,CAAC,IAAI,CAAC,CA6BzB;AAED;;;;GAIG;AACH,0EAJW,OAAO,eAAe,EAAE,OAAO,GAAC,MAAM,oBAQhD;AAED;;;;;;;;;;;;;GAaG;AACH,2FAJW,OAAO,GAAC,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAQzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,8EAbW,MAAM,cACN,OAAO,SAAS,EAAE,SAAS,oBAC3B,MAAM,cACN,OAAO,aACP,MAAM,cACN,OAAO,GAAC,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CA8CzB;AAED;;;;;GAKG;AACH,iFALW,OAAO,SAAS,EAAE,SAAS,aAC3B,MAAM,cACN,OAAO,GAAC,MAAM,iBAexB;AAED;;;;;;;;;;;;;;GAcG;AACH,6EAZW,MAAM,YACN,MAAM,cACN,OAAO,GAAC,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAgBzB;AAED;;;;;;;;;;;;;GAaG;AACH,sFAXW,OAAO,GAAC,MAAM,MACd,MAAM,MACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAWzB;AAED;;;;;;;;;;;;;GAaG;AACH,yFAXW,OAAO,GAAC,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAazB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,uFAdW,MAAM,MAEN,MAAM,MADN,MAAM,cAEN,OAAO,GAAC,MAAM,iBAiBxB;AAED;;;;;;;;GAQG;AACH,uEANW,MAAM,KACN,MAAM,cACN,MAAM,GAAC,OAAO,GAEZ,OAAO,CAAC,IAAI,CAAC,CAKzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,gGAtBW,MAAM,SACN,MAAM,SACN,MAAM,OACN,MAAM,OACN,MAAM,cACN,MAAM,GAAC,OAAO,GACZ,OAAO,CAAC,IAAI,CAAC,CA6BzB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,sGAdW,MAAM,gBACN,MAAM,YACN,MAAM,kBACN,MAAM,GAAC,OAAO,gBACd,MAAM,GAAC,OAAO,UACd,MAAM,UACN,MAAM,QACN,MAAM,QACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAyCzB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,sGAbW,MAAM,iBADN,MAAM,cAEN,MAAM,GAAC,OAAO,GAEZ,OAAO,CAAC,IAAI,CAAC,CAkBzB;AAED;;;;;;;;;;;;GAYG;AACH,+EATW,MAAM,MACN,MAAM,aACN,MAAM,aACN,MAAM,cACN,MAAM,GAAC,OAAO,GAEZ,OAAO,CAAC,IAAI,CAAC,CAMzB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,kGAhBW,MAAM,GAAC,OAAO,SACd,MAAM,GAAC,UAAU,WACjB,MAAM,UACN,MAAM,OAAC,gBACP,MAAM,oBAmChB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wFAlBW,MAAM,YACN,MAAM,cACN,MAAM,GAAC,OAAO,GAEZ,OAAO,CAAC,IAAI,CAAC,CAqBzB;6BAwCY,OAAO,WAAW,EAAE,cAAc;sBAClC,OAAO,eAAe,EAAE,OAAO"}