appium-xcuitest-driver 10.2.2 → 10.4.0

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 (262) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/active-app-info.d.ts +9 -0
  3. package/build/lib/commands/active-app-info.d.ts.map +1 -0
  4. package/build/lib/commands/active-app-info.js +14 -0
  5. package/build/lib/commands/active-app-info.js.map +1 -0
  6. package/build/lib/commands/alert.d.ts +42 -45
  7. package/build/lib/commands/alert.d.ts.map +1 -1
  8. package/build/lib/commands/alert.js +66 -62
  9. package/build/lib/commands/alert.js.map +1 -1
  10. package/build/lib/commands/app-management.d.ts +150 -153
  11. package/build/lib/commands/app-management.d.ts.map +1 -1
  12. package/build/lib/commands/app-management.js +300 -286
  13. package/build/lib/commands/app-management.js.map +1 -1
  14. package/build/lib/commands/app-strings.d.ts +14 -17
  15. package/build/lib/commands/app-strings.d.ts.map +1 -1
  16. package/build/lib/commands/app-strings.js +23 -24
  17. package/build/lib/commands/app-strings.js.map +1 -1
  18. package/build/lib/commands/appearance.d.ts +19 -22
  19. package/build/lib/commands/appearance.d.ts.map +1 -1
  20. package/build/lib/commands/appearance.js +56 -56
  21. package/build/lib/commands/appearance.js.map +1 -1
  22. package/build/lib/commands/audit.d.ts +22 -17
  23. package/build/lib/commands/audit.d.ts.map +1 -1
  24. package/build/lib/commands/audit.js +17 -18
  25. package/build/lib/commands/audit.js.map +1 -1
  26. package/build/lib/commands/battery.d.ts +11 -14
  27. package/build/lib/commands/battery.d.ts.map +1 -1
  28. package/build/lib/commands/battery.js +36 -37
  29. package/build/lib/commands/battery.js.map +1 -1
  30. package/build/lib/commands/biometric.d.ts +30 -33
  31. package/build/lib/commands/biometric.d.ts.map +1 -1
  32. package/build/lib/commands/biometric.js +42 -41
  33. package/build/lib/commands/biometric.js.map +1 -1
  34. package/build/lib/commands/certificate.d.ts +48 -45
  35. package/build/lib/commands/certificate.d.ts.map +1 -1
  36. package/build/lib/commands/certificate.js +218 -205
  37. package/build/lib/commands/certificate.js.map +1 -1
  38. package/build/lib/commands/clipboard.d.ts +19 -22
  39. package/build/lib/commands/clipboard.d.ts.map +1 -1
  40. package/build/lib/commands/clipboard.js +30 -30
  41. package/build/lib/commands/clipboard.js.map +1 -1
  42. package/build/lib/commands/condition.d.ts +49 -26
  43. package/build/lib/commands/condition.d.ts.map +1 -1
  44. package/build/lib/commands/condition.js +87 -86
  45. package/build/lib/commands/condition.js.map +1 -1
  46. package/build/lib/commands/content-size.d.ts +26 -29
  47. package/build/lib/commands/content-size.d.ts.map +1 -1
  48. package/build/lib/commands/content-size.js +36 -36
  49. package/build/lib/commands/content-size.js.map +1 -1
  50. package/build/lib/commands/context.d.ts +161 -108
  51. package/build/lib/commands/context.d.ts.map +1 -1
  52. package/build/lib/commands/context.js +530 -517
  53. package/build/lib/commands/context.js.map +1 -1
  54. package/build/lib/commands/deviceInfo.d.ts +9 -12
  55. package/build/lib/commands/deviceInfo.d.ts.map +1 -1
  56. package/build/lib/commands/deviceInfo.js +17 -18
  57. package/build/lib/commands/deviceInfo.js.map +1 -1
  58. package/build/lib/commands/element.d.ts +102 -105
  59. package/build/lib/commands/element.d.ts.map +1 -1
  60. package/build/lib/commands/element.js +337 -323
  61. package/build/lib/commands/element.js.map +1 -1
  62. package/build/lib/commands/execute.d.ts +24 -19
  63. package/build/lib/commands/execute.d.ts.map +1 -1
  64. package/build/lib/commands/execute.js +63 -62
  65. package/build/lib/commands/execute.js.map +1 -1
  66. package/build/lib/commands/file-movement.d.ts +77 -80
  67. package/build/lib/commands/file-movement.d.ts.map +1 -1
  68. package/build/lib/commands/file-movement.js +130 -124
  69. package/build/lib/commands/file-movement.js.map +1 -1
  70. package/build/lib/commands/find.d.ts +18 -21
  71. package/build/lib/commands/find.d.ts.map +1 -1
  72. package/build/lib/commands/find.js +158 -156
  73. package/build/lib/commands/find.js.map +1 -1
  74. package/build/lib/commands/general.d.ts +124 -116
  75. package/build/lib/commands/general.d.ts.map +1 -1
  76. package/build/lib/commands/general.js +248 -232
  77. package/build/lib/commands/general.js.map +1 -1
  78. package/build/lib/commands/geolocation.d.ts +43 -46
  79. package/build/lib/commands/geolocation.d.ts.map +1 -1
  80. package/build/lib/commands/geolocation.js +10 -11
  81. package/build/lib/commands/geolocation.js.map +1 -1
  82. package/build/lib/commands/gesture.d.ts +273 -276
  83. package/build/lib/commands/gesture.d.ts.map +1 -1
  84. package/build/lib/commands/gesture.js +506 -492
  85. package/build/lib/commands/gesture.js.map +1 -1
  86. package/build/lib/commands/increase-contrast.d.ts +20 -23
  87. package/build/lib/commands/increase-contrast.d.ts.map +1 -1
  88. package/build/lib/commands/increase-contrast.js +30 -30
  89. package/build/lib/commands/increase-contrast.js.map +1 -1
  90. package/build/lib/commands/iohid.d.ts +1370 -1373
  91. package/build/lib/commands/iohid.d.ts.map +1 -1
  92. package/build/lib/commands/iohid.js +30 -31
  93. package/build/lib/commands/iohid.js.map +1 -1
  94. package/build/lib/commands/keyboard.d.ts +29 -32
  95. package/build/lib/commands/keyboard.d.ts.map +1 -1
  96. package/build/lib/commands/keyboard.js +53 -51
  97. package/build/lib/commands/keyboard.js.map +1 -1
  98. package/build/lib/commands/keychains.d.ts +9 -12
  99. package/build/lib/commands/keychains.d.ts.map +1 -1
  100. package/build/lib/commands/keychains.js +13 -14
  101. package/build/lib/commands/keychains.js.map +1 -1
  102. package/build/lib/commands/localization.d.ts +16 -19
  103. package/build/lib/commands/localization.d.ts.map +1 -1
  104. package/build/lib/commands/localization.js +25 -26
  105. package/build/lib/commands/localization.js.map +1 -1
  106. package/build/lib/commands/location.d.ts +36 -39
  107. package/build/lib/commands/location.d.ts.map +1 -1
  108. package/build/lib/commands/location.js +99 -98
  109. package/build/lib/commands/location.js.map +1 -1
  110. package/build/lib/commands/lock.d.ts +21 -24
  111. package/build/lib/commands/lock.d.ts.map +1 -1
  112. package/build/lib/commands/lock.js +39 -38
  113. package/build/lib/commands/lock.js.map +1 -1
  114. package/build/lib/commands/log.d.ts +43 -37
  115. package/build/lib/commands/log.d.ts.map +1 -1
  116. package/build/lib/commands/log.js +174 -171
  117. package/build/lib/commands/log.js.map +1 -1
  118. package/build/lib/commands/memory.d.ts +9 -12
  119. package/build/lib/commands/memory.d.ts.map +1 -1
  120. package/build/lib/commands/memory.js +37 -39
  121. package/build/lib/commands/memory.js.map +1 -1
  122. package/build/lib/commands/navigation.d.ts +30 -33
  123. package/build/lib/commands/navigation.d.ts.map +1 -1
  124. package/build/lib/commands/navigation.js +92 -92
  125. package/build/lib/commands/navigation.js.map +1 -1
  126. package/build/lib/commands/notifications.d.ts +26 -29
  127. package/build/lib/commands/notifications.d.ts.map +1 -1
  128. package/build/lib/commands/notifications.js +53 -53
  129. package/build/lib/commands/notifications.js.map +1 -1
  130. package/build/lib/commands/pasteboard.d.ts +21 -24
  131. package/build/lib/commands/pasteboard.d.ts.map +1 -1
  132. package/build/lib/commands/pasteboard.js +37 -37
  133. package/build/lib/commands/pasteboard.js.map +1 -1
  134. package/build/lib/commands/pcap.d.ts +39 -26
  135. package/build/lib/commands/pcap.d.ts.map +1 -1
  136. package/build/lib/commands/pcap.js +81 -81
  137. package/build/lib/commands/pcap.js.map +1 -1
  138. package/build/lib/commands/performance.d.ts +63 -44
  139. package/build/lib/commands/performance.d.ts.map +1 -1
  140. package/build/lib/commands/performance.js +105 -105
  141. package/build/lib/commands/performance.js.map +1 -1
  142. package/build/lib/commands/permissions.d.ts +33 -36
  143. package/build/lib/commands/permissions.d.ts.map +1 -1
  144. package/build/lib/commands/permissions.js +66 -65
  145. package/build/lib/commands/permissions.js.map +1 -1
  146. package/build/lib/commands/proxy-helper.d.ts +12 -15
  147. package/build/lib/commands/proxy-helper.d.ts.map +1 -1
  148. package/build/lib/commands/proxy-helper.js +53 -54
  149. package/build/lib/commands/proxy-helper.js.map +1 -1
  150. package/build/lib/commands/record-audio.d.ts +49 -29
  151. package/build/lib/commands/record-audio.d.ts.map +1 -1
  152. package/build/lib/commands/record-audio.js +100 -104
  153. package/build/lib/commands/record-audio.js.map +1 -1
  154. package/build/lib/commands/recordscreen.d.ts +54 -18
  155. package/build/lib/commands/recordscreen.d.ts.map +1 -1
  156. package/build/lib/commands/recordscreen.js +127 -129
  157. package/build/lib/commands/recordscreen.js.map +1 -1
  158. package/build/lib/commands/screenshots.d.ts +14 -17
  159. package/build/lib/commands/screenshots.d.ts.map +1 -1
  160. package/build/lib/commands/screenshots.js +108 -107
  161. package/build/lib/commands/screenshots.js.map +1 -1
  162. package/build/lib/commands/simctl.d.ts +11 -14
  163. package/build/lib/commands/simctl.d.ts.map +1 -1
  164. package/build/lib/commands/simctl.js +23 -26
  165. package/build/lib/commands/simctl.js.map +1 -1
  166. package/build/lib/commands/source.d.ts +14 -17
  167. package/build/lib/commands/source.d.ts.map +1 -1
  168. package/build/lib/commands/source.js +40 -43
  169. package/build/lib/commands/source.js.map +1 -1
  170. package/build/lib/commands/timeouts.d.ts +44 -33
  171. package/build/lib/commands/timeouts.d.ts.map +1 -1
  172. package/build/lib/commands/timeouts.js +65 -63
  173. package/build/lib/commands/timeouts.js.map +1 -1
  174. package/build/lib/commands/web.d.ts +247 -197
  175. package/build/lib/commands/web.d.ts.map +1 -1
  176. package/build/lib/commands/web.js +815 -786
  177. package/build/lib/commands/web.js.map +1 -1
  178. package/build/lib/commands/xctest-record-screen.d.ts +63 -66
  179. package/build/lib/commands/xctest-record-screen.d.ts.map +1 -1
  180. package/build/lib/commands/xctest-record-screen.js +103 -102
  181. package/build/lib/commands/xctest-record-screen.js.map +1 -1
  182. package/build/lib/commands/xctest.d.ts +55 -51
  183. package/build/lib/commands/xctest.d.ts.map +1 -1
  184. package/build/lib/commands/xctest.js +116 -117
  185. package/build/lib/commands/xctest.js.map +1 -1
  186. package/build/lib/driver.d.ts +278 -1597
  187. package/build/lib/driver.d.ts.map +1 -1
  188. package/build/lib/driver.js +320 -236
  189. package/build/lib/driver.js.map +1 -1
  190. package/build/lib/execute-method-map.d.ts.map +1 -1
  191. package/build/lib/execute-method-map.js +9 -0
  192. package/build/lib/execute-method-map.js.map +1 -1
  193. package/build/lib/real-device.d.ts +1 -1
  194. package/build/lib/real-device.d.ts.map +1 -1
  195. package/build/lib/real-device.js +2 -2
  196. package/build/lib/real-device.js.map +1 -1
  197. package/lib/commands/active-app-info.js +12 -0
  198. package/lib/commands/alert.js +68 -65
  199. package/lib/commands/app-management.js +308 -301
  200. package/lib/commands/app-strings.js +24 -26
  201. package/lib/commands/appearance.js +54 -56
  202. package/lib/commands/audit.js +18 -20
  203. package/lib/commands/battery.js +35 -37
  204. package/lib/commands/biometric.js +44 -46
  205. package/lib/commands/certificate.js +226 -215
  206. package/lib/commands/clipboard.js +30 -32
  207. package/lib/commands/condition.js +98 -100
  208. package/lib/commands/content-size.js +36 -38
  209. package/lib/commands/context.js +495 -490
  210. package/lib/commands/deviceInfo.js +19 -20
  211. package/lib/commands/element.js +367 -357
  212. package/lib/commands/execute.js +72 -72
  213. package/lib/commands/file-movement.js +132 -134
  214. package/lib/commands/find.js +160 -159
  215. package/lib/commands/general.js +238 -231
  216. package/lib/commands/geolocation.js +6 -14
  217. package/lib/commands/gesture.js +525 -515
  218. package/lib/commands/increase-contrast.js +30 -32
  219. package/lib/commands/iohid.js +32 -34
  220. package/lib/commands/keyboard.js +49 -51
  221. package/lib/commands/keychains.js +12 -14
  222. package/lib/commands/localization.js +24 -26
  223. package/lib/commands/location.js +102 -104
  224. package/lib/commands/lock.js +38 -38
  225. package/lib/commands/log.js +197 -198
  226. package/lib/commands/memory.js +40 -43
  227. package/lib/commands/navigation.js +96 -100
  228. package/lib/commands/notifications.js +57 -59
  229. package/lib/commands/pasteboard.js +37 -39
  230. package/lib/commands/pcap.js +84 -86
  231. package/lib/commands/performance.js +132 -133
  232. package/lib/commands/permissions.js +67 -69
  233. package/lib/commands/proxy-helper.js +60 -61
  234. package/lib/commands/record-audio.js +115 -120
  235. package/lib/commands/recordscreen.js +145 -149
  236. package/lib/commands/screenshots.js +116 -116
  237. package/lib/commands/simctl.js +25 -29
  238. package/lib/commands/source.js +42 -46
  239. package/lib/commands/timeouts.js +59 -63
  240. package/lib/commands/web.js +878 -858
  241. package/lib/commands/xctest-record-screen.js +103 -105
  242. package/lib/commands/xctest.js +134 -139
  243. package/lib/driver.js +288 -236
  244. package/lib/execute-method-map.ts +9 -0
  245. package/lib/real-device.js +2 -2
  246. package/npm-shrinkwrap.json +440 -76
  247. package/package.json +2 -1
  248. package/build/lib/commands/activeAppInfo.d.ts +0 -12
  249. package/build/lib/commands/activeAppInfo.d.ts.map +0 -1
  250. package/build/lib/commands/activeAppInfo.js +0 -15
  251. package/build/lib/commands/activeAppInfo.js.map +0 -1
  252. package/build/lib/commands/index.d.ts +0 -96
  253. package/build/lib/commands/index.d.ts.map +0 -1
  254. package/build/lib/commands/index.js +0 -100
  255. package/build/lib/commands/index.js.map +0 -1
  256. package/build/lib/real-device-clients/devicectl.d.ts +0 -204
  257. package/build/lib/real-device-clients/devicectl.d.ts.map +0 -1
  258. package/build/lib/real-device-clients/devicectl.js +0 -264
  259. package/build/lib/real-device-clients/devicectl.js.map +0 -1
  260. package/lib/commands/activeAppInfo.js +0 -14
  261. package/lib/commands/index.js +0 -95
  262. package/lib/real-device-clients/devicectl.js +0 -291
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "xcuitest",
9
9
  "xctest"
10
10
  ],
11
- "version": "10.2.2",
11
+ "version": "10.4.0",
12
12
  "author": "Appium Contributors",
13
13
  "license": "Apache-2.0",
14
14
  "repository": {
@@ -98,6 +98,7 @@
98
98
  "lru-cache": "^11.1.0",
99
99
  "moment": "^2.29.4",
100
100
  "moment-timezone": "^0.x",
101
+ "node-devicectl": "^1.0.1",
101
102
  "node-simctl": "^8.0.0",
102
103
  "portscanner": "^2.2.0",
103
104
  "semver": "^7.5.4",
@@ -1,12 +0,0 @@
1
- declare namespace _default {
2
- /**
3
- * Returns information about the active application.
4
- *
5
- * @returns {Promise<import('./types').ActiveAppInfo>} Active app information
6
- * @throws {Error} if an error raised by command
7
- * @this {import('../driver').XCUITestDriver}
8
- */
9
- function mobileGetActiveAppInfo(this: import("../driver").XCUITestDriver): Promise<import("./types").ActiveAppInfo>;
10
- }
11
- export default _default;
12
- //# sourceMappingURL=activeAppInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"activeAppInfo.d.ts","sourceRoot":"","sources":["../../../lib/commands/activeAppInfo.js"],"names":[],"mappings":";IACE;;;;;;OAMG;IACH,2EAJa,OAAO,CAAC,OAAO,SAAS,EAAE,aAAa,CAAC,CAQpD"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- /**
5
- * Returns information about the active application.
6
- *
7
- * @returns {Promise<import('./types').ActiveAppInfo>} Active app information
8
- * @throws {Error} if an error raised by command
9
- * @this {import('../driver').XCUITestDriver}
10
- */
11
- async mobileGetActiveAppInfo() {
12
- return /** @type {import('./types').ActiveAppInfo} */ (await this.proxyCommand('/wda/activeAppInfo', 'GET'));
13
- },
14
- };
15
- //# sourceMappingURL=activeAppInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"activeAppInfo.js","sourceRoot":"","sources":["../../../lib/commands/activeAppInfo.js"],"names":[],"mappings":";;AAAA,kBAAe;IACb;;;;;;OAMG;IACH,KAAK,CAAC,sBAAsB;QAC1B,OAAO,8CAA8C,CAAC,CACpD,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,KAAK,CAAC,CACrD,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -1,96 +0,0 @@
1
- declare namespace _default {
2
- export { activeAppInfoExtensions };
3
- export { alertExtensions };
4
- export { appearanceExtensions };
5
- export { appManagementExtensions };
6
- export { appStringsExtensions };
7
- export { auditExtensions };
8
- export { batteryExtensions };
9
- export { biometricExtensions };
10
- export { certificateExtensions };
11
- export { clipboardExtensions };
12
- export { conditionExtensions };
13
- export { contentSizeExtensions };
14
- export { contextExtensions };
15
- export { deviceInfoExtensions };
16
- export { elementExtensions };
17
- export { executeExtensions };
18
- export { fileMovementExtensions };
19
- export { findExtensions };
20
- export { generalExtensions };
21
- export { geolocationExtensions };
22
- export { gestureExtensions };
23
- export { increaseContrastExtensions };
24
- export { iohidExtensions };
25
- export { keychainsExtensions };
26
- export { keyboardExtensions };
27
- export { localizationExtensions };
28
- export { locationExtensions };
29
- export { lockExtensions };
30
- export { logExtensions };
31
- export { memoryExtensions };
32
- export { navigationExtensions };
33
- export { notificationsExtensions };
34
- export { pasteboardExtensions };
35
- export { pcapExtensions };
36
- export { performanceExtensions };
37
- export { permissionsExtensions };
38
- export { proxyHelperExtensions };
39
- export { recordAudioExtensions };
40
- export { recordScreenExtensions };
41
- export { simctl };
42
- export { screenshotExtensions };
43
- export { sourceExtensions };
44
- export { timeoutExtensions };
45
- export { webExtensions };
46
- export { xctestExtensions };
47
- export { xctestRecordScreenExtensions };
48
- }
49
- export default _default;
50
- import activeAppInfoExtensions from './activeAppInfo';
51
- import alertExtensions from './alert';
52
- import appearanceExtensions from './appearance';
53
- import appManagementExtensions from './app-management';
54
- import appStringsExtensions from './app-strings';
55
- import auditExtensions from './audit';
56
- import batteryExtensions from './battery';
57
- import biometricExtensions from './biometric';
58
- import certificateExtensions from './certificate';
59
- import clipboardExtensions from './clipboard';
60
- import conditionExtensions from './condition';
61
- import contentSizeExtensions from './content-size';
62
- import contextExtensions from './context';
63
- import deviceInfoExtensions from './deviceInfo';
64
- import elementExtensions from './element';
65
- import executeExtensions from './execute';
66
- import fileMovementExtensions from './file-movement';
67
- import findExtensions from './find';
68
- import generalExtensions from './general';
69
- import geolocationExtensions from './geolocation';
70
- import gestureExtensions from './gesture';
71
- import increaseContrastExtensions from './increase-contrast';
72
- import iohidExtensions from './iohid';
73
- import keychainsExtensions from './keychains';
74
- import keyboardExtensions from './keyboard';
75
- import localizationExtensions from './localization';
76
- import locationExtensions from './location';
77
- import lockExtensions from './lock';
78
- import logExtensions from './log';
79
- import memoryExtensions from './memory';
80
- import navigationExtensions from './navigation';
81
- import notificationsExtensions from './notifications';
82
- import pasteboardExtensions from './pasteboard';
83
- import pcapExtensions from './pcap';
84
- import performanceExtensions from './performance';
85
- import permissionsExtensions from './permissions';
86
- import proxyHelperExtensions from './proxy-helper';
87
- import recordAudioExtensions from './record-audio';
88
- import recordScreenExtensions from './recordscreen';
89
- import simctl from './simctl';
90
- import screenshotExtensions from './screenshots';
91
- import sourceExtensions from './source';
92
- import timeoutExtensions from './timeouts';
93
- import webExtensions from './web';
94
- import xctestExtensions from './xctest';
95
- import xctestRecordScreenExtensions from './xctest-record-screen';
96
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAoC,iBAAiB;4BACzB,SAAS;iCAEJ,cAAc;oCADX,kBAAkB;iCAErB,eAAe;4BACpB,SAAS;8BACP,WAAW;gCACT,aAAa;kCACX,eAAe;gCACjB,aAAa;gCACb,aAAa;kCACX,gBAAgB;8BACpB,WAAW;iCACR,cAAc;8BACjB,WAAW;8BACX,WAAW;mCACN,iBAAiB;2BACzB,QAAQ;8BACL,WAAW;kCACP,eAAe;8BACnB,WAAW;uCACF,qBAAqB;4BAChC,SAAS;gCACL,aAAa;+BACd,YAAY;mCACR,gBAAgB;+BACpB,YAAY;2BAChB,QAAQ;0BACT,OAAO;6BACJ,UAAU;iCACN,cAAc;oCACX,iBAAiB;iCACpB,cAAc;2BACpB,QAAQ;kCACD,eAAe;kCACf,eAAe;kCACf,gBAAgB;kCAChB,gBAAgB;mCACf,gBAAgB;mBAGhC,UAAU;iCAFI,eAAe;6BACnB,UAAU;8BAET,YAAY;0BAChB,OAAO;6BACJ,UAAU;yCACE,wBAAwB"}
@@ -1,100 +0,0 @@
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
- const activeAppInfo_1 = __importDefault(require("./activeAppInfo"));
7
- const alert_1 = __importDefault(require("./alert"));
8
- const app_management_1 = __importDefault(require("./app-management"));
9
- const appearance_1 = __importDefault(require("./appearance"));
10
- const app_strings_1 = __importDefault(require("./app-strings"));
11
- const audit_1 = __importDefault(require("./audit"));
12
- const battery_1 = __importDefault(require("./battery"));
13
- const biometric_1 = __importDefault(require("./biometric"));
14
- const certificate_1 = __importDefault(require("./certificate"));
15
- const clipboard_1 = __importDefault(require("./clipboard"));
16
- const condition_1 = __importDefault(require("./condition"));
17
- const content_size_1 = __importDefault(require("./content-size"));
18
- const context_1 = __importDefault(require("./context"));
19
- const deviceInfo_1 = __importDefault(require("./deviceInfo"));
20
- const element_1 = __importDefault(require("./element"));
21
- const execute_1 = __importDefault(require("./execute"));
22
- const file_movement_1 = __importDefault(require("./file-movement"));
23
- const find_1 = __importDefault(require("./find"));
24
- const general_1 = __importDefault(require("./general"));
25
- const geolocation_1 = __importDefault(require("./geolocation"));
26
- const gesture_1 = __importDefault(require("./gesture"));
27
- const increase_contrast_1 = __importDefault(require("./increase-contrast"));
28
- const iohid_1 = __importDefault(require("./iohid"));
29
- const keychains_1 = __importDefault(require("./keychains"));
30
- const keyboard_1 = __importDefault(require("./keyboard"));
31
- const localization_1 = __importDefault(require("./localization"));
32
- const location_1 = __importDefault(require("./location"));
33
- const lock_1 = __importDefault(require("./lock"));
34
- const log_1 = __importDefault(require("./log"));
35
- const memory_1 = __importDefault(require("./memory"));
36
- const navigation_1 = __importDefault(require("./navigation"));
37
- const notifications_1 = __importDefault(require("./notifications"));
38
- const pasteboard_1 = __importDefault(require("./pasteboard"));
39
- const pcap_1 = __importDefault(require("./pcap"));
40
- const performance_1 = __importDefault(require("./performance"));
41
- const permissions_1 = __importDefault(require("./permissions"));
42
- const proxy_helper_1 = __importDefault(require("./proxy-helper"));
43
- const record_audio_1 = __importDefault(require("./record-audio"));
44
- const recordscreen_1 = __importDefault(require("./recordscreen"));
45
- const screenshots_1 = __importDefault(require("./screenshots"));
46
- const source_1 = __importDefault(require("./source"));
47
- const simctl_1 = __importDefault(require("./simctl"));
48
- const timeouts_1 = __importDefault(require("./timeouts"));
49
- const web_1 = __importDefault(require("./web"));
50
- const xctest_1 = __importDefault(require("./xctest"));
51
- const xctest_record_screen_1 = __importDefault(require("./xctest-record-screen"));
52
- exports.default = {
53
- activeAppInfoExtensions: activeAppInfo_1.default,
54
- alertExtensions: alert_1.default,
55
- appearanceExtensions: appearance_1.default,
56
- appManagementExtensions: app_management_1.default,
57
- appStringsExtensions: app_strings_1.default,
58
- auditExtensions: audit_1.default,
59
- batteryExtensions: battery_1.default,
60
- biometricExtensions: biometric_1.default,
61
- certificateExtensions: certificate_1.default,
62
- clipboardExtensions: clipboard_1.default,
63
- conditionExtensions: condition_1.default,
64
- contentSizeExtensions: content_size_1.default,
65
- contextExtensions: context_1.default,
66
- deviceInfoExtensions: deviceInfo_1.default,
67
- elementExtensions: element_1.default,
68
- executeExtensions: execute_1.default,
69
- fileMovementExtensions: file_movement_1.default,
70
- findExtensions: find_1.default,
71
- generalExtensions: general_1.default,
72
- geolocationExtensions: geolocation_1.default,
73
- gestureExtensions: gesture_1.default,
74
- increaseContrastExtensions: increase_contrast_1.default,
75
- iohidExtensions: iohid_1.default,
76
- keychainsExtensions: keychains_1.default,
77
- keyboardExtensions: keyboard_1.default,
78
- localizationExtensions: localization_1.default,
79
- locationExtensions: location_1.default,
80
- lockExtensions: lock_1.default,
81
- logExtensions: log_1.default,
82
- memoryExtensions: memory_1.default,
83
- navigationExtensions: navigation_1.default,
84
- notificationsExtensions: notifications_1.default,
85
- pasteboardExtensions: pasteboard_1.default,
86
- pcapExtensions: pcap_1.default,
87
- performanceExtensions: performance_1.default,
88
- permissionsExtensions: permissions_1.default,
89
- proxyHelperExtensions: proxy_helper_1.default,
90
- recordAudioExtensions: record_audio_1.default,
91
- recordScreenExtensions: recordscreen_1.default,
92
- simctl: simctl_1.default,
93
- screenshotExtensions: screenshots_1.default,
94
- sourceExtensions: source_1.default,
95
- timeoutExtensions: timeouts_1.default,
96
- webExtensions: web_1.default,
97
- xctestExtensions: xctest_1.default,
98
- xctestRecordScreenExtensions: xctest_record_screen_1.default,
99
- };
100
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/commands/index.js"],"names":[],"mappings":";;;;;AAAA,oEAAsD;AACtD,oDAAsC;AACtC,sEAAuD;AACvD,8DAAgD;AAChD,gEAAiD;AACjD,oDAAsC;AACtC,wDAA0C;AAC1C,4DAA8C;AAC9C,gEAAkD;AAClD,4DAA8C;AAC9C,4DAA8C;AAC9C,kEAAmD;AACnD,wDAA0C;AAC1C,8DAAgD;AAChD,wDAA0C;AAC1C,wDAA0C;AAC1C,oEAAqD;AACrD,kDAAoC;AACpC,wDAA0C;AAC1C,gEAAkD;AAClD,wDAA0C;AAC1C,4EAA6D;AAC7D,oDAAsC;AACtC,4DAA8C;AAC9C,0DAA4C;AAC5C,kEAAoD;AACpD,0DAA4C;AAC5C,kDAAoC;AACpC,gDAAkC;AAClC,sDAAwC;AACxC,8DAAgD;AAChD,oEAAsD;AACtD,8DAAgD;AAChD,kDAAoC;AACpC,gEAAkD;AAClD,gEAAkD;AAClD,kEAAmD;AACnD,kEAAmD;AACnD,kEAAoD;AACpD,gEAAiD;AACjD,sDAAwC;AACxC,sDAA8B;AAC9B,0DAA2C;AAC3C,gDAAkC;AAClC,sDAAwC;AACxC,kFAAkE;AAElE,kBAAe;IACb,uBAAuB,EAAvB,uBAAuB;IACvB,eAAe,EAAf,eAAe;IACf,oBAAoB,EAApB,oBAAoB;IACpB,uBAAuB,EAAvB,wBAAuB;IACvB,oBAAoB,EAApB,qBAAoB;IACpB,eAAe,EAAf,eAAe;IACf,iBAAiB,EAAjB,iBAAiB;IACjB,mBAAmB,EAAnB,mBAAmB;IACnB,qBAAqB,EAArB,qBAAqB;IACrB,mBAAmB,EAAnB,mBAAmB;IACnB,mBAAmB,EAAnB,mBAAmB;IACnB,qBAAqB,EAArB,sBAAqB;IACrB,iBAAiB,EAAjB,iBAAiB;IACjB,oBAAoB,EAApB,oBAAoB;IACpB,iBAAiB,EAAjB,iBAAiB;IACjB,iBAAiB,EAAjB,iBAAiB;IACjB,sBAAsB,EAAtB,uBAAsB;IACtB,cAAc,EAAd,cAAc;IACd,iBAAiB,EAAjB,iBAAiB;IACjB,qBAAqB,EAArB,qBAAqB;IACrB,iBAAiB,EAAjB,iBAAiB;IACjB,0BAA0B,EAA1B,2BAA0B;IAC1B,eAAe,EAAf,eAAe;IACf,mBAAmB,EAAnB,mBAAmB;IACnB,kBAAkB,EAAlB,kBAAkB;IAClB,sBAAsB,EAAtB,sBAAsB;IACtB,kBAAkB,EAAlB,kBAAkB;IAClB,cAAc,EAAd,cAAc;IACd,aAAa,EAAb,aAAa;IACb,gBAAgB,EAAhB,gBAAgB;IAChB,oBAAoB,EAApB,oBAAoB;IACpB,uBAAuB,EAAvB,uBAAuB;IACvB,oBAAoB,EAApB,oBAAoB;IACpB,cAAc,EAAd,cAAc;IACd,qBAAqB,EAArB,qBAAqB;IACrB,qBAAqB,EAArB,qBAAqB;IACrB,qBAAqB,EAArB,sBAAqB;IACrB,qBAAqB,EAArB,sBAAqB;IACrB,sBAAsB,EAAtB,sBAAsB;IACtB,MAAM,EAAN,gBAAM;IACN,oBAAoB,EAApB,qBAAoB;IACpB,gBAAgB,EAAhB,gBAAgB;IAChB,iBAAiB,EAAjB,kBAAiB;IACjB,aAAa,EAAb,aAAa;IACb,gBAAgB,EAAhB,gBAAgB;IAChB,4BAA4B,EAA5B,8BAA4B;CAC7B,CAAC"}
@@ -1,204 +0,0 @@
1
- /**
2
- * @typedef {Object} ProcessInfo
3
- * @property {number} processIdentifier
4
- * @property {string} executable
5
- */
6
- /**
7
- * @typedef {Object} AppInfo
8
- * @property {boolean} appClip
9
- * @property {boolean} builtByDeveloper
10
- * @property {string} bundleIdentifier
11
- * @property {string} bundleVersion
12
- * @property {boolean} defaultApp
13
- * @property {boolean} hidden
14
- * @property {boolean} internalApp
15
- * @property {string} name
16
- * @property {boolean} removable
17
- * @property {string} url
18
- * @property {string} version
19
- */
20
- /**
21
- * @typedef {Object} ExecuteOptions
22
- * @property {boolean} [logStdout=false]
23
- * @property {boolean} [asJson=true]
24
- * @property {boolean} [asynchronous=false]
25
- * @property {string[]|string} [subcommandOptions]
26
- * @property {number} [timeout]
27
- */
28
- /**
29
- * @typedef {{asynchronous: true}} TAsyncOpts
30
- */
31
- /**
32
- * @typedef {Object} ListFilesOptions
33
- * @property {string} [username] The username of the user we should target. Only relevant for certain domains.
34
- * @property {string} [subdirectory] A subdirectory within the domain. If not specified, defaults to the root.
35
- */
36
- /**
37
- * @typedef {Object} PullFileOptions
38
- * @property {string} [username] The username of the user we should target. Only relevant for certain domains.
39
- * @property {string} domainType The file service domain. Valid values are: temporary, rootStaging, appDataContainer, appGroupDataContainer,
40
- * systemCrashLogs. You must specify a valid domain and identifier pair. Each domain is accompanied by an identifier
41
- * that provides additional context. For example, if the domain is an app data container, the identifier is the bundle
42
- * ID of the app. For temporary directories and root staging areas, the identifier is a unique client-provided string
43
- * which is used to get your own space, separate from those of other clients.
44
- * @property {string} domainIdentifier A unique string used to provide additional context to the domain.
45
- * @property {number} [timeout=120000] The timeout for pulling a file in milliseconds.
46
- */
47
- /**
48
- * An option for launchApp method by devicectl.
49
- * @typedef {Object} LaunchAppOptions
50
- * @property {import('@appium/types').StringRecord<string|number>} [env] Bundle id to Environment variables for the launching app process.
51
- * @property {boolean} [terminateExisting=false] Whether terminating the already running app.
52
- */
53
- export class Devicectl {
54
- /**
55
- * @since Xcode 15, iOS 17
56
- * @param {string} udid
57
- * @param {import('@appium/types').AppiumLogger} log
58
- */
59
- constructor(udid: string, log: import("@appium/types").AppiumLogger);
60
- udid: string;
61
- log: import("@appium/types").AppiumLogger;
62
- /**
63
- * @template {ExecuteOptions} TExecOpts
64
- * @param {string[]} subcommand
65
- * @param {TExecOpts} [opts]
66
- * @return {Promise<TExecOpts extends TAsyncOpts ? import('teen_process').SubProcess : import('teen_process').TeenProcessExecResult>}
67
- */
68
- execute<TExecOpts extends ExecuteOptions>(subcommand: string[], opts?: TExecOpts): Promise<TExecOpts extends TAsyncOpts ? any : any>;
69
- /**
70
- * Simulates memory warning for the process with the given PID
71
- *
72
- * @param {number|string} pid The process identifier to simulate the Low Memory warning for
73
- * @return {Promise<void>}
74
- */
75
- sendMemoryWarning(pid: number | string): Promise<void>;
76
- /**
77
- * Lists running processes on the device
78
- *
79
- * @returns {Promise<ProcessInfo[]>}
80
- */
81
- listProcesses(): Promise<ProcessInfo[]>;
82
- /**
83
- * Lists files at a specified path on the device
84
- *
85
- * @param {string} domainType The file service domain. Valid values are: temporary, rootStaging, appDataContainer, appGroupDataContainer,
86
- * systemCrashLogs. You must specify a valid domain and identifier pair. Each domain is accompanied by an identifier
87
- * that provides additional context. For example, if the domain is an app data container, the identifier is the bundle
88
- * ID of the app. For temporary directories and root staging areas, the identifier is a unique client-provided string
89
- * which is used to get your own space, separate from those of other clients.
90
- * @param {string} domainIdentifier A unique string used to provide additional context to the domain.
91
- * @param {ListFilesOptions} [opts={}]
92
- * @returns {Promise<string[]>} List of file names (could be empty)
93
- */
94
- listFiles(domainType: string, domainIdentifier: string, opts?: ListFilesOptions): Promise<string[]>;
95
- /**
96
- * Pulls a file from the specified path on the device to a local file system
97
- *
98
- * @param {string} from The item which should be copied.
99
- * @param {string} to The location to which the item should be copied.
100
- * @param {PullFileOptions} opts
101
- * @returns {Promise<string>} The destination path (same as `to`)
102
- */
103
- pullFile(from: string, to: string, opts: PullFileOptions): Promise<string>;
104
- /**
105
- * Send POSIX signal to the running process
106
- *
107
- * @param {number|string} pid The process identifier to send a signal to
108
- * @param {number|string} signal The signal to send to a process. See 'man signal' for a list of signals
109
- * @returns {Promise<void>}
110
- */
111
- sendSignalToProcess(pid: number | string, signal: number | string): Promise<void>;
112
- /**
113
- * Retrieves the list of installed apps from the device
114
- *
115
- * @param {string?} [bundleId=null] Provide the target bundle identifier
116
- * to speed up the lookup.
117
- * @returns {Promise<AppInfo[]>} Empty array is returned if no matching apps are found
118
- */
119
- listApps(bundleId?: string | null): Promise<AppInfo[]>;
120
- /**
121
- * Launch the given bundle id application with the given environment variable.
122
- * This method is over devicectl command, this it may take additional seconds to launch the app.
123
- * Please use via WDA or via appium-ios-device as primary method to launch app if possible.
124
- *
125
- * @param {string} bundleId Bundle id to launch.
126
- * @param {LaunchAppOptions} opts launching app with devicectl command options.
127
- * @returns {Promise<void>}
128
- * @throws {Error} If the launching app command fails. For example, the given bundle id did not exist.
129
- */
130
- launchApp(bundleId: string, opts: LaunchAppOptions): Promise<void>;
131
- }
132
- export type ProcessInfo = {
133
- processIdentifier: number;
134
- executable: string;
135
- };
136
- export type AppInfo = {
137
- appClip: boolean;
138
- builtByDeveloper: boolean;
139
- bundleIdentifier: string;
140
- bundleVersion: string;
141
- defaultApp: boolean;
142
- hidden: boolean;
143
- internalApp: boolean;
144
- name: string;
145
- removable: boolean;
146
- url: string;
147
- version: string;
148
- };
149
- export type ExecuteOptions = {
150
- logStdout?: boolean | undefined;
151
- asJson?: boolean | undefined;
152
- asynchronous?: boolean | undefined;
153
- subcommandOptions?: string | string[] | undefined;
154
- timeout?: number | undefined;
155
- };
156
- export type TAsyncOpts = {
157
- asynchronous: true;
158
- };
159
- export type ListFilesOptions = {
160
- /**
161
- * The username of the user we should target. Only relevant for certain domains.
162
- */
163
- username?: string | undefined;
164
- /**
165
- * A subdirectory within the domain. If not specified, defaults to the root.
166
- */
167
- subdirectory?: string | undefined;
168
- };
169
- export type PullFileOptions = {
170
- /**
171
- * The username of the user we should target. Only relevant for certain domains.
172
- */
173
- username?: string | undefined;
174
- /**
175
- * The file service domain. Valid values are: temporary, rootStaging, appDataContainer, appGroupDataContainer,
176
- * systemCrashLogs. You must specify a valid domain and identifier pair. Each domain is accompanied by an identifier
177
- * that provides additional context. For example, if the domain is an app data container, the identifier is the bundle
178
- * ID of the app. For temporary directories and root staging areas, the identifier is a unique client-provided string
179
- * which is used to get your own space, separate from those of other clients.
180
- */
181
- domainType: string;
182
- /**
183
- * A unique string used to provide additional context to the domain.
184
- */
185
- domainIdentifier: string;
186
- /**
187
- * The timeout for pulling a file in milliseconds.
188
- */
189
- timeout?: number | undefined;
190
- };
191
- /**
192
- * An option for launchApp method by devicectl.
193
- */
194
- export type LaunchAppOptions = {
195
- /**
196
- * Bundle id to Environment variables for the launching app process.
197
- */
198
- env?: import("@appium/types").StringRecord<string | number> | undefined;
199
- /**
200
- * Whether terminating the already running app.
201
- */
202
- terminateExisting?: boolean | undefined;
203
- };
204
- //# sourceMappingURL=devicectl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devicectl.d.ts","sourceRoot":"","sources":["../../../lib/real-device-clients/devicectl.js"],"names":[],"mappings":"AAMA;;;;GAIG;AAUH;;;;;;;;;;;;;GAaG;AAmBH;;;;;;;GAOG;AAEH;;GAEG;AAEH;;;;GAIG;AAEH;;;;;;;;;;GAUG;AAGH;;;;;GAKG;AAEH;IACE;;;;OAIG;IACH,kBAHW,MAAM,OACN,OAAO,eAAe,EAAE,YAAY,EAK9C;IAFC,aAAgB;IAChB,0CAAc;IAGhB;;;;;OAKG;IACH,QAL8B,SAAS,SAAzB,cAAe,cAClB,MAAM,EAAE,SACR,SAAS,GACR,OAAO,CAAC,SAAS,SAAS,UAAU,GAAG,GAAiC,GAAG,GAA4C,CAAC,CA6CnI;IAED;;;;;OAKG;IACH,uBAHW,MAAM,GAAC,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAMxB;IAED;;;;OAIG;IACH,iBAFa,OAAO,CAAC,WAAW,EAAE,CAAC,CAKlC;IAED;;;;;;;;;;;OAWG;IACH,sBATW,MAAM,oBAKN,MAAM,SACN,gBAAgB,GACd,OAAO,CAAC,MAAM,EAAE,CAAC,CAiB7B;IAED;;;;;;;OAOG;IACH,eALW,MAAM,MACN,MAAM,QACN,eAAe,GACb,OAAO,CAAC,MAAM,CAAC,CAkB3B;IAED;;;;;;OAMG;IACH,yBAJW,MAAM,GAAC,MAAM,UACb,MAAM,GAAC,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAMzB;IAED;;;;;;OAMG;IACH,oBAJW,MAAM,OAAC,GAEL,OAAO,CAAC,OAAO,EAAE,CAAC,CAW9B;IAED;;;;;;;;;OASG;IACH,oBALW,MAAM,QACN,gBAAgB,GACd,OAAO,CAAC,IAAI,CAAC,CAqBzB;CACF;;uBA1Ra,MAAM;gBACN,MAAM;;;aAaN,OAAO;sBACP,OAAO;sBACP,MAAM;mBACN,MAAM;gBACN,OAAO;YACP,OAAO;iBACP,OAAO;UACP,MAAM;eACN,OAAO;SACP,MAAM;aACN,MAAM;;;;;;;;;yBA8BP;IAAC,YAAY,EAAE,IAAI,CAAA;CAAC;;;;;;;;;;;;;;;;;;;;;;;gBAYnB,MAAM;;;;sBAKN,MAAM"}