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
@@ -1,4 +1,37 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
37
  };
@@ -18,7 +51,52 @@ const node_events_1 = __importDefault(require("node:events"));
18
51
  const node_path_1 = __importDefault(require("node:path"));
19
52
  const node_url_1 = __importDefault(require("node:url"));
20
53
  const app_utils_1 = require("./app-utils");
21
- const commands_1 = __importDefault(require("./commands"));
54
+ const activeAppInfoCommands = __importStar(require("./commands/active-app-info"));
55
+ const alertCommands = __importStar(require("./commands/alert"));
56
+ const appManagementCommands = __importStar(require("./commands/app-management"));
57
+ const appearanceCommands = __importStar(require("./commands/appearance"));
58
+ const appStringsCommands = __importStar(require("./commands/app-strings"));
59
+ const auditCommands = __importStar(require("./commands/audit"));
60
+ const batteryCommands = __importStar(require("./commands/battery"));
61
+ const biometricCommands = __importStar(require("./commands/biometric"));
62
+ const certificateCommands = __importStar(require("./commands/certificate"));
63
+ const clipboardCommands = __importStar(require("./commands/clipboard"));
64
+ const conditionCommands = __importStar(require("./commands/condition"));
65
+ const contentSizeCommands = __importStar(require("./commands/content-size"));
66
+ const contextCommands = __importStar(require("./commands/context"));
67
+ const deviceInfoCommands = __importStar(require("./commands/deviceInfo"));
68
+ const elementCommands = __importStar(require("./commands/element"));
69
+ const executeCommands = __importStar(require("./commands/execute"));
70
+ const fileMovementCommands = __importStar(require("./commands/file-movement"));
71
+ const findCommands = __importStar(require("./commands/find"));
72
+ const generalCommands = __importStar(require("./commands/general"));
73
+ const geolocationCommands = __importStar(require("./commands/geolocation"));
74
+ const gestureCommands = __importStar(require("./commands/gesture"));
75
+ const iohidCommands = __importStar(require("./commands/iohid"));
76
+ const keychainsCommands = __importStar(require("./commands/keychains"));
77
+ const keyboardCommands = __importStar(require("./commands/keyboard"));
78
+ const localizationCommands = __importStar(require("./commands/localization"));
79
+ const locationCommands = __importStar(require("./commands/location"));
80
+ const lockCommands = __importStar(require("./commands/lock"));
81
+ const logCommands = __importStar(require("./commands/log"));
82
+ const memoryCommands = __importStar(require("./commands/memory"));
83
+ const navigationCommands = __importStar(require("./commands/navigation"));
84
+ const notificationsCommands = __importStar(require("./commands/notifications"));
85
+ const pasteboardCommands = __importStar(require("./commands/pasteboard"));
86
+ const pcapCommands = __importStar(require("./commands/pcap"));
87
+ const performanceCommands = __importStar(require("./commands/performance"));
88
+ const permissionsCommands = __importStar(require("./commands/permissions"));
89
+ const proxyHelperCommands = __importStar(require("./commands/proxy-helper"));
90
+ const recordAudioCommands = __importStar(require("./commands/record-audio"));
91
+ const recordScreenCommands = __importStar(require("./commands/recordscreen"));
92
+ const screenshotCommands = __importStar(require("./commands/screenshots"));
93
+ const sourceCommands = __importStar(require("./commands/source"));
94
+ const simctlCommands = __importStar(require("./commands/simctl"));
95
+ const timeoutCommands = __importStar(require("./commands/timeouts"));
96
+ const webCommands = __importStar(require("./commands/web"));
97
+ const xctestCommands = __importStar(require("./commands/xctest"));
98
+ const xctestRecordScreenCommands = __importStar(require("./commands/xctest-record-screen"));
99
+ const increaseContrastCommands = __importStar(require("./commands/increase-contrast"));
22
100
  const desired_caps_1 = require("./desired-caps");
23
101
  const device_connections_factory_1 = require("./device-connections-factory");
24
102
  const execute_method_map_1 = require("./execute-method-map");
@@ -186,6 +264,8 @@ class XCUITestDriver extends driver_1.BaseDriver {
186
264
  xcodeVersion;
187
265
  /** @type {import('./commands/pcap').TrafficCapture|null} */
188
266
  _trafficCapture;
267
+ /** @type {import('./commands/recordscreen').ScreenRecorder|null} */
268
+ _recentScreenRecorder;
189
269
  /** @type {Simulator|RealDevice} */
190
270
  _device;
191
271
  /** @type {string|null} */
@@ -494,7 +574,7 @@ class XCUITestDriver extends driver_1.BaseDriver {
494
574
  ...this.opts,
495
575
  device: this.device,
496
576
  realDevice: this.isRealDevice(),
497
- iosSdkVersion: this._iosSdkVersion,
577
+ iosSdkVersion: this._iosSdkVersion ?? undefined,
498
578
  reqBasePath: this.basePath,
499
579
  },
500
580
  // @ts-ignore this is ok
@@ -576,7 +656,7 @@ class XCUITestDriver extends driver_1.BaseDriver {
576
656
  this.log.info(`Use the 'safariInitialUrl' capability to customize it`);
577
657
  }
578
658
  ;
579
- await this.setUrl(this.getCurrentUrl());
659
+ await this.setUrl(this.getCurrentUrl() || this.getDefaultUrl());
580
660
  }
581
661
  else {
582
662
  const currentUrl = await this.getUrl();
@@ -1484,372 +1564,376 @@ class XCUITestDriver extends driver_1.BaseDriver {
1484
1564
  /*---------------+
1485
1565
  | ACTIVEAPPINFO |
1486
1566
  +---------------+*/
1487
- mobileGetActiveAppInfo = commands_1.default.activeAppInfoExtensions.mobileGetActiveAppInfo;
1567
+ mobileGetActiveAppInfo = activeAppInfoCommands.mobileGetActiveAppInfo;
1488
1568
  /*-------+
1489
1569
  | ALERT |
1490
1570
  +-------+*/
1491
- getAlertText = commands_1.default.alertExtensions.getAlertText;
1492
- setAlertText = commands_1.default.alertExtensions.setAlertText;
1493
- postAcceptAlert = commands_1.default.alertExtensions.postAcceptAlert;
1494
- postDismissAlert = commands_1.default.alertExtensions.postDismissAlert;
1495
- getAlertButtons = commands_1.default.alertExtensions.getAlertButtons;
1496
- mobileHandleAlert = commands_1.default.alertExtensions.mobileHandleAlert;
1571
+ getAlertText = alertCommands.getAlertText;
1572
+ setAlertText = alertCommands.setAlertText;
1573
+ postAcceptAlert = alertCommands.postAcceptAlert;
1574
+ postDismissAlert = alertCommands.postDismissAlert;
1575
+ getAlertButtons = alertCommands.getAlertButtons;
1576
+ mobileHandleAlert = alertCommands.mobileHandleAlert;
1497
1577
  /*---------------+
1498
1578
  | APPMANAGEMENT |
1499
1579
  +---------------+*/
1500
- mobileInstallApp = commands_1.default.appManagementExtensions.mobileInstallApp;
1501
- mobileIsAppInstalled = commands_1.default.appManagementExtensions.mobileIsAppInstalled;
1502
- mobileRemoveApp = commands_1.default.appManagementExtensions.mobileRemoveApp;
1503
- mobileLaunchApp = commands_1.default.appManagementExtensions.mobileLaunchApp;
1504
- mobileTerminateApp = commands_1.default.appManagementExtensions.mobileTerminateApp;
1505
- mobileActivateApp = commands_1.default.appManagementExtensions.mobileActivateApp;
1506
- mobileKillApp = commands_1.default.appManagementExtensions.mobileKillApp;
1507
- mobileQueryAppState = commands_1.default.appManagementExtensions.mobileQueryAppState;
1508
- installApp = commands_1.default.appManagementExtensions.installApp;
1509
- activateApp = commands_1.default.appManagementExtensions.activateApp;
1510
- isAppInstalled = commands_1.default.appManagementExtensions.isAppInstalled;
1580
+ mobileInstallApp = appManagementCommands.mobileInstallApp;
1581
+ mobileIsAppInstalled = appManagementCommands.mobileIsAppInstalled;
1582
+ mobileRemoveApp = appManagementCommands.mobileRemoveApp;
1583
+ mobileLaunchApp = appManagementCommands.mobileLaunchApp;
1584
+ mobileTerminateApp = appManagementCommands.mobileTerminateApp;
1585
+ mobileActivateApp = appManagementCommands.mobileActivateApp;
1586
+ mobileKillApp = appManagementCommands.mobileKillApp;
1587
+ mobileQueryAppState = appManagementCommands.mobileQueryAppState;
1588
+ installApp = appManagementCommands.installApp;
1589
+ activateApp = appManagementCommands.activateApp;
1590
+ isAppInstalled = appManagementCommands.isAppInstalled;
1511
1591
  // @ts-ignore it must return boolean
1512
- terminateApp = commands_1.default.appManagementExtensions.terminateApp;
1513
- queryAppState = commands_1.default.appManagementExtensions.queryAppState;
1514
- mobileListApps = commands_1.default.appManagementExtensions.mobileListApps;
1515
- mobileClearApp = commands_1.default.appManagementExtensions.mobileClearApp;
1592
+ terminateApp = appManagementCommands.terminateApp;
1593
+ queryAppState = appManagementCommands.queryAppState;
1594
+ mobileListApps = appManagementCommands.mobileListApps;
1595
+ mobileClearApp = appManagementCommands.mobileClearApp;
1516
1596
  /*------------+
1517
1597
  | APPEARANCE |
1518
1598
  +------------+*/
1519
- mobileSetAppearance = commands_1.default.appearanceExtensions.mobileSetAppearance;
1520
- mobileGetAppearance = commands_1.default.appearanceExtensions.mobileGetAppearance;
1599
+ mobileSetAppearance = appearanceCommands.mobileSetAppearance;
1600
+ mobileGetAppearance = appearanceCommands.mobileGetAppearance;
1521
1601
  /*------------+
1522
1602
  | INCREASE CONTRAST |
1523
1603
  +------------+*/
1524
- mobileSetIncreaseContrast = commands_1.default.increaseContrastExtensions.mobileSetIncreaseContrast;
1525
- mobileGetIncreaseContrast = commands_1.default.increaseContrastExtensions.mobileGetIncreaseContrast;
1604
+ mobileSetIncreaseContrast = increaseContrastCommands.mobileSetIncreaseContrast;
1605
+ mobileGetIncreaseContrast = increaseContrastCommands.mobileGetIncreaseContrast;
1526
1606
  /*------------+
1527
1607
  | CONTENT SIZE |
1528
1608
  +------------+*/
1529
- mobileSetContentSize = commands_1.default.contentSizeExtensions.mobileSetContentSize;
1530
- mobileGetContentSize = commands_1.default.contentSizeExtensions.mobileGetContentSize;
1609
+ mobileSetContentSize = contentSizeCommands.mobileSetContentSize;
1610
+ mobileGetContentSize = contentSizeCommands.mobileGetContentSize;
1531
1611
  /*------------+
1532
1612
  | AUDIT |
1533
1613
  +------------+*/
1534
- mobilePerformAccessibilityAudit = commands_1.default.auditExtensions.mobilePerformAccessibilityAudit;
1614
+ mobilePerformAccessibilityAudit = auditCommands.mobilePerformAccessibilityAudit;
1535
1615
  /*---------+
1536
1616
  | BATTERY |
1537
1617
  +---------+*/
1538
- mobileGetBatteryInfo = commands_1.default.batteryExtensions.mobileGetBatteryInfo;
1618
+ mobileGetBatteryInfo = batteryCommands.mobileGetBatteryInfo;
1539
1619
  /*-----------+
1540
1620
  | BIOMETRIC |
1541
1621
  +-----------+*/
1542
- mobileEnrollBiometric = commands_1.default.biometricExtensions.mobileEnrollBiometric;
1543
- mobileSendBiometricMatch = commands_1.default.biometricExtensions.mobileSendBiometricMatch;
1544
- mobileIsBiometricEnrolled = commands_1.default.biometricExtensions.mobileIsBiometricEnrolled;
1622
+ mobileEnrollBiometric = biometricCommands.mobileEnrollBiometric;
1623
+ mobileSendBiometricMatch = biometricCommands.mobileSendBiometricMatch;
1624
+ mobileIsBiometricEnrolled = biometricCommands.mobileIsBiometricEnrolled;
1545
1625
  /*-------------+
1546
1626
  | CERTIFICATE |
1547
1627
  +-------------+*/
1548
- mobileInstallCertificate = commands_1.default.certificateExtensions.mobileInstallCertificate;
1549
- mobileListCertificates = commands_1.default.certificateExtensions.mobileListCertificates;
1550
- mobileRemoveCertificate = commands_1.default.certificateExtensions.mobileRemoveCertificate;
1628
+ mobileInstallCertificate = certificateCommands.mobileInstallCertificate;
1629
+ mobileListCertificates = certificateCommands.mobileListCertificates;
1630
+ mobileRemoveCertificate = certificateCommands.mobileRemoveCertificate;
1551
1631
  /*-----------+
1552
1632
  | CLIPBOARD |
1553
1633
  +-----------+*/
1554
- setClipboard = commands_1.default.clipboardExtensions.setClipboard;
1555
- getClipboard = commands_1.default.clipboardExtensions.getClipboard;
1634
+ setClipboard = clipboardCommands.setClipboard;
1635
+ getClipboard = clipboardCommands.getClipboard;
1556
1636
  /*-----------+
1557
1637
  | CONDITION |
1558
1638
  +-----------+*/
1559
- listConditionInducers = commands_1.default.conditionExtensions.listConditionInducers;
1560
- enableConditionInducer = commands_1.default.conditionExtensions.enableConditionInducer;
1561
- disableConditionInducer = commands_1.default.conditionExtensions.disableConditionInducer;
1639
+ listConditionInducers = conditionCommands.listConditionInducers;
1640
+ enableConditionInducer = conditionCommands.enableConditionInducer;
1641
+ disableConditionInducer = conditionCommands.disableConditionInducer;
1562
1642
  /*---------+
1563
1643
  | CONTEXT |
1564
1644
  +---------+*/
1565
- getContexts = commands_1.default.contextExtensions.getContexts;
1566
- getCurrentContext = commands_1.default.contextExtensions.getCurrentContext;
1645
+ getContexts = contextCommands.getContexts;
1646
+ getCurrentContext = contextCommands.getCurrentContext;
1567
1647
  // @ts-ignore This is OK
1568
- getWindowHandle = commands_1.default.contextExtensions.getWindowHandle;
1569
- getWindowHandles = commands_1.default.contextExtensions.getWindowHandles;
1570
- setContext = commands_1.default.contextExtensions.setContext;
1648
+ getWindowHandle = contextCommands.getWindowHandle;
1649
+ getWindowHandles = contextCommands.getWindowHandles;
1650
+ // @ts-ignore Type mismatch: function type vs method signature
1651
+ setContext = contextCommands.setContext;
1571
1652
  // @ts-ignore This is OK
1572
- setWindow = commands_1.default.contextExtensions.setWindow;
1573
- activateRecentWebview = commands_1.default.contextExtensions.activateRecentWebview;
1574
- connectToRemoteDebugger = commands_1.default.contextExtensions.connectToRemoteDebugger;
1575
- getContextsAndViews = commands_1.default.contextExtensions.getContextsAndViews;
1576
- listWebFrames = commands_1.default.contextExtensions.listWebFrames;
1577
- mobileGetContexts = commands_1.default.contextExtensions.mobileGetContexts;
1578
- onPageChange = commands_1.default.contextExtensions.onPageChange;
1579
- useNewSafari = commands_1.default.contextExtensions.useNewSafari;
1580
- getCurrentUrl = commands_1.default.contextExtensions.getCurrentUrl;
1581
- getNewRemoteDebugger = commands_1.default.contextExtensions.getNewRemoteDebugger;
1582
- getRecentWebviewContextId = commands_1.default.contextExtensions.getRecentWebviewContextId;
1583
- isWebContext = commands_1.default.contextExtensions.isWebContext;
1584
- isWebview = commands_1.default.contextExtensions.isWebview;
1585
- setCurrentUrl = commands_1.default.contextExtensions.setCurrentUrl;
1586
- stopRemote = commands_1.default.contextExtensions.stopRemote;
1653
+ setWindow = contextCommands.setWindow;
1654
+ activateRecentWebview = contextCommands.activateRecentWebview;
1655
+ connectToRemoteDebugger = contextCommands.connectToRemoteDebugger;
1656
+ getContextsAndViews = contextCommands.getContextsAndViews;
1657
+ listWebFrames = contextCommands.listWebFrames;
1658
+ mobileGetContexts = contextCommands.mobileGetContexts;
1659
+ onPageChange = contextCommands.onPageChange;
1660
+ useNewSafari = contextCommands.useNewSafari;
1661
+ getCurrentUrl = contextCommands.getCurrentUrl;
1662
+ getNewRemoteDebugger = contextCommands.getNewRemoteDebugger;
1663
+ getRecentWebviewContextId = contextCommands.getRecentWebviewContextId;
1664
+ isWebContext = contextCommands.isWebContext;
1665
+ isWebview = contextCommands.isWebview;
1666
+ setCurrentUrl = contextCommands.setCurrentUrl;
1667
+ stopRemote = contextCommands.stopRemote;
1587
1668
  /*------------+
1588
1669
  | DEVICEINFO |
1589
1670
  +------------+*/
1590
- mobileGetDeviceInfo = commands_1.default.deviceInfoExtensions.mobileGetDeviceInfo;
1671
+ mobileGetDeviceInfo = deviceInfoCommands.mobileGetDeviceInfo;
1591
1672
  /*---------+
1592
1673
  | ELEMENT |
1593
1674
  +---------+*/
1594
- elementDisplayed = commands_1.default.elementExtensions.elementDisplayed;
1595
- elementEnabled = commands_1.default.elementExtensions.elementEnabled;
1596
- elementSelected = commands_1.default.elementExtensions.elementSelected;
1597
- getName = commands_1.default.elementExtensions.getName;
1598
- getNativeAttribute = commands_1.default.elementExtensions.getNativeAttribute;
1599
- getAttribute = commands_1.default.elementExtensions.getAttribute;
1600
- getProperty = commands_1.default.elementExtensions.getProperty;
1601
- getText = commands_1.default.elementExtensions.getText;
1602
- getElementRect = commands_1.default.elementExtensions.getElementRect;
1603
- getLocation = commands_1.default.elementExtensions.getLocation;
1604
- getLocationInView = commands_1.default.elementExtensions.getLocationInView;
1605
- getSize = commands_1.default.elementExtensions.getSize;
1675
+ elementDisplayed = elementCommands.elementDisplayed;
1676
+ elementEnabled = elementCommands.elementEnabled;
1677
+ elementSelected = elementCommands.elementSelected;
1678
+ getName = elementCommands.getName;
1679
+ getNativeAttribute = elementCommands.getNativeAttribute;
1680
+ getAttribute = elementCommands.getAttribute;
1681
+ getProperty = elementCommands.getProperty;
1682
+ getText = elementCommands.getText;
1683
+ getElementRect = elementCommands.getElementRect;
1684
+ getLocation = elementCommands.getLocation;
1685
+ getLocationInView = elementCommands.getLocationInView;
1686
+ getSize = elementCommands.getSize;
1606
1687
  /** @deprecated */
1607
- setValueImmediate = commands_1.default.elementExtensions.setValueImmediate;
1608
- setValue = commands_1.default.elementExtensions.setValue;
1609
- setValueWithWebAtom = commands_1.default.elementExtensions.setValueWithWebAtom;
1610
- keys = commands_1.default.elementExtensions.keys;
1611
- clear = commands_1.default.elementExtensions.clear;
1612
- getContentSize = commands_1.default.elementExtensions.getContentSize;
1613
- getNativeRect = commands_1.default.elementExtensions.getNativeRect;
1688
+ setValueImmediate = elementCommands.setValueImmediate;
1689
+ setValue = elementCommands.setValue;
1690
+ setValueWithWebAtom = elementCommands.setValueWithWebAtom;
1691
+ keys = elementCommands.keys;
1692
+ clear = elementCommands.clear;
1693
+ getContentSize = elementCommands.getContentSize;
1694
+ getNativeRect = elementCommands.getNativeRect;
1614
1695
  /*---------+
1615
1696
  | EXECUTE |
1616
1697
  +---------+*/
1617
- receiveAsyncResponse = commands_1.default.executeExtensions.receiveAsyncResponse;
1618
- execute = commands_1.default.executeExtensions.execute;
1619
- executeAsync = commands_1.default.executeExtensions.executeAsync;
1620
- executeMobile = commands_1.default.executeExtensions.executeMobile;
1621
- mobileSimctl = commands_1.default.simctl.mobileSimctl;
1698
+ receiveAsyncResponse = executeCommands.receiveAsyncResponse;
1699
+ execute = executeCommands.execute;
1700
+ // @ts-ignore Type mismatch: function type vs method signature
1701
+ executeAsync = executeCommands.executeAsync;
1702
+ // Note: executeMobile is handled internally via execute method
1703
+ mobileSimctl = simctlCommands.mobileSimctl;
1622
1704
  /*--------------+
1623
1705
  | FILEMOVEMENT |
1624
1706
  +--------------+*/
1625
- pushFile = commands_1.default.fileMovementExtensions.pushFile;
1626
- mobilePushFile = commands_1.default.fileMovementExtensions.mobilePushFile;
1627
- pullFile = commands_1.default.fileMovementExtensions.pullFile;
1628
- mobilePullFile = commands_1.default.fileMovementExtensions.mobilePullFile;
1629
- mobileDeleteFolder = commands_1.default.fileMovementExtensions.mobileDeleteFolder;
1630
- mobileDeleteFile = commands_1.default.fileMovementExtensions.mobileDeleteFile;
1631
- pullFolder = commands_1.default.fileMovementExtensions.pullFolder;
1632
- mobilePullFolder = commands_1.default.fileMovementExtensions.mobilePullFolder;
1707
+ pushFile = fileMovementCommands.pushFile;
1708
+ mobilePushFile = fileMovementCommands.mobilePushFile;
1709
+ pullFile = fileMovementCommands.pullFile;
1710
+ mobilePullFile = fileMovementCommands.mobilePullFile;
1711
+ mobileDeleteFolder = fileMovementCommands.mobileDeleteFolder;
1712
+ mobileDeleteFile = fileMovementCommands.mobileDeleteFile;
1713
+ pullFolder = fileMovementCommands.pullFolder;
1714
+ mobilePullFolder = fileMovementCommands.mobilePullFolder;
1633
1715
  /*--------+
1634
1716
  | MEMORY |
1635
1717
  +--------+*/
1636
- mobileSendMemoryWarning = commands_1.default.memoryExtensions.mobileSendMemoryWarning;
1718
+ mobileSendMemoryWarning = memoryCommands.mobileSendMemoryWarning;
1637
1719
  /*------+
1638
1720
  | FIND |
1639
1721
  +------+*/
1640
- findElOrEls = commands_1.default.findExtensions.findElOrEls;
1641
- findNativeElementOrElements = commands_1.default.findExtensions.findNativeElementOrElements;
1642
- doNativeFind = commands_1.default.findExtensions.doNativeFind;
1643
- getFirstVisibleChild = commands_1.default.findExtensions.getFirstVisibleChild;
1722
+ findElOrEls = findCommands.findElOrEls;
1723
+ findNativeElementOrElements = findCommands.findNativeElementOrElements;
1724
+ doNativeFind = findCommands.doNativeFind;
1725
+ getFirstVisibleChild = findCommands.getFirstVisibleChild;
1644
1726
  /*---------+
1645
1727
  | GENERAL |
1646
1728
  +---------+*/
1647
- active = commands_1.default.generalExtensions.active;
1648
- background = commands_1.default.appManagementExtensions.background;
1649
- touchId = commands_1.default.generalExtensions.touchId;
1650
- toggleEnrollTouchId = commands_1.default.generalExtensions.toggleEnrollTouchId;
1651
- getWindowSize = commands_1.default.generalExtensions.getWindowSize;
1652
- getDeviceTime = commands_1.default.generalExtensions.getDeviceTime;
1653
- mobileGetDeviceTime = commands_1.default.generalExtensions.mobileGetDeviceTime;
1654
- getWindowRect = commands_1.default.generalExtensions.getWindowRect;
1655
- getStrings = commands_1.default.appStringsExtensions.getStrings;
1656
- removeApp = commands_1.default.generalExtensions.removeApp;
1657
- launchApp = commands_1.default.generalExtensions.launchApp;
1658
- closeApp = commands_1.default.generalExtensions.closeApp;
1659
- setUrl = commands_1.default.generalExtensions.setUrl;
1660
- getViewportRect = commands_1.default.generalExtensions.getViewportRect;
1661
- getScreenInfo = commands_1.default.generalExtensions.getScreenInfo;
1662
- getStatusBarHeight = commands_1.default.generalExtensions.getStatusBarHeight;
1663
- getDevicePixelRatio = commands_1.default.generalExtensions.getDevicePixelRatio;
1664
- mobilePressButton = commands_1.default.generalExtensions.mobilePressButton;
1665
- mobileSiriCommand = commands_1.default.generalExtensions.mobileSiriCommand;
1729
+ active = generalCommands.active;
1730
+ background = appManagementCommands.background;
1731
+ touchId = generalCommands.touchId;
1732
+ toggleEnrollTouchId = generalCommands.toggleEnrollTouchId;
1733
+ getWindowSize = generalCommands.getWindowSize;
1734
+ getDeviceTime = generalCommands.getDeviceTime;
1735
+ mobileGetDeviceTime = generalCommands.mobileGetDeviceTime;
1736
+ getWindowRect = generalCommands.getWindowRect;
1737
+ getStrings = appStringsCommands.getStrings;
1738
+ removeApp = generalCommands.removeApp;
1739
+ launchApp = generalCommands.launchApp;
1740
+ closeApp = generalCommands.closeApp;
1741
+ // @ts-ignore Type mismatch: function type vs method signature
1742
+ setUrl = generalCommands.setUrl;
1743
+ getViewportRect = generalCommands.getViewportRect;
1744
+ getScreenInfo = generalCommands.getScreenInfo;
1745
+ getStatusBarHeight = generalCommands.getStatusBarHeight;
1746
+ getDevicePixelRatio = generalCommands.getDevicePixelRatio;
1747
+ mobilePressButton = generalCommands.mobilePressButton;
1748
+ mobileSiriCommand = generalCommands.mobileSiriCommand;
1666
1749
  /*-------------+
1667
1750
  | GEOLOCATION |
1668
1751
  +-------------+*/
1669
- mobileGetSimulatedLocation = commands_1.default.geolocationExtensions.mobileGetSimulatedLocation;
1670
- mobileSetSimulatedLocation = commands_1.default.geolocationExtensions.mobileSetSimulatedLocation;
1671
- mobileResetSimulatedLocation = commands_1.default.geolocationExtensions.mobileResetSimulatedLocation;
1752
+ mobileGetSimulatedLocation = geolocationCommands.mobileGetSimulatedLocation;
1753
+ mobileSetSimulatedLocation = geolocationCommands.mobileSetSimulatedLocation;
1754
+ mobileResetSimulatedLocation = geolocationCommands.mobileResetSimulatedLocation;
1672
1755
  /*---------+
1673
1756
  | GESTURE |
1674
1757
  +---------+*/
1675
- mobileShake = commands_1.default.gestureExtensions.mobileShake;
1676
- click = commands_1.default.gestureExtensions.click;
1677
- releaseActions = commands_1.default.gestureExtensions.releaseActions;
1678
- performActions = commands_1.default.gestureExtensions.performActions;
1679
- nativeClick = commands_1.default.gestureExtensions.nativeClick;
1680
- mobileScrollToElement = commands_1.default.gestureExtensions.mobileScrollToElement;
1681
- mobileScroll = commands_1.default.gestureExtensions.mobileScroll;
1682
- mobileSwipe = commands_1.default.gestureExtensions.mobileSwipe;
1683
- mobilePinch = commands_1.default.gestureExtensions.mobilePinch;
1684
- mobileDoubleTap = commands_1.default.gestureExtensions.mobileDoubleTap;
1685
- mobileTwoFingerTap = commands_1.default.gestureExtensions.mobileTwoFingerTap;
1686
- mobileTouchAndHold = commands_1.default.gestureExtensions.mobileTouchAndHold;
1687
- mobileTap = commands_1.default.gestureExtensions.mobileTap;
1688
- mobileDragFromToForDuration = commands_1.default.gestureExtensions.mobileDragFromToForDuration;
1689
- mobileDragFromToWithVelocity = commands_1.default.gestureExtensions.mobileDragFromToWithVelocity;
1690
- mobileTapWithNumberOfTaps = commands_1.default.gestureExtensions.mobileTapWithNumberOfTaps;
1691
- mobileForcePress = commands_1.default.gestureExtensions.mobileForcePress;
1692
- mobileSelectPickerWheelValue = commands_1.default.gestureExtensions.mobileSelectPickerWheelValue;
1693
- mobileRotateElement = commands_1.default.gestureExtensions.mobileRotateElement;
1758
+ mobileShake = gestureCommands.mobileShake;
1759
+ click = gestureCommands.click;
1760
+ releaseActions = gestureCommands.releaseActions;
1761
+ performActions = gestureCommands.performActions;
1762
+ nativeClick = gestureCommands.nativeClick;
1763
+ mobileScrollToElement = gestureCommands.mobileScrollToElement;
1764
+ mobileScroll = gestureCommands.mobileScroll;
1765
+ mobileSwipe = gestureCommands.mobileSwipe;
1766
+ mobilePinch = gestureCommands.mobilePinch;
1767
+ mobileDoubleTap = gestureCommands.mobileDoubleTap;
1768
+ mobileTwoFingerTap = gestureCommands.mobileTwoFingerTap;
1769
+ mobileTouchAndHold = gestureCommands.mobileTouchAndHold;
1770
+ mobileTap = gestureCommands.mobileTap;
1771
+ mobileDragFromToForDuration = gestureCommands.mobileDragFromToForDuration;
1772
+ mobileDragFromToWithVelocity = gestureCommands.mobileDragFromToWithVelocity;
1773
+ mobileTapWithNumberOfTaps = gestureCommands.mobileTapWithNumberOfTaps;
1774
+ mobileForcePress = gestureCommands.mobileForcePress;
1775
+ mobileSelectPickerWheelValue = gestureCommands.mobileSelectPickerWheelValue;
1776
+ mobileRotateElement = gestureCommands.mobileRotateElement;
1694
1777
  /*-------+
1695
1778
  | IOHID |
1696
1779
  +-------+*/
1697
- mobilePerformIoHidEvent = commands_1.default.iohidExtensions.mobilePerformIoHidEvent;
1780
+ mobilePerformIoHidEvent = iohidCommands.mobilePerformIoHidEvent;
1698
1781
  /*-----------+
1699
1782
  | KEYCHAINS |
1700
1783
  +-----------+*/
1701
- mobileClearKeychains = commands_1.default.keychainsExtensions.mobileClearKeychains;
1784
+ mobileClearKeychains = keychainsCommands.mobileClearKeychains;
1702
1785
  /*----------+
1703
1786
  | KEYBOARD |
1704
1787
  +----------+*/
1705
- hideKeyboard = commands_1.default.keyboardExtensions.hideKeyboard;
1706
- mobileHideKeyboard = commands_1.default.keyboardExtensions.mobileHideKeyboard;
1707
- isKeyboardShown = commands_1.default.keyboardExtensions.isKeyboardShown;
1708
- mobileKeys = commands_1.default.keyboardExtensions.mobileKeys;
1788
+ hideKeyboard = keyboardCommands.hideKeyboard;
1789
+ mobileHideKeyboard = keyboardCommands.mobileHideKeyboard;
1790
+ isKeyboardShown = keyboardCommands.isKeyboardShown;
1791
+ mobileKeys = keyboardCommands.mobileKeys;
1709
1792
  /*--------------+
1710
1793
  | LOCALIZATION |
1711
1794
  +--------------+*/
1712
- mobileConfigureLocalization = commands_1.default.localizationExtensions.mobileConfigureLocalization;
1795
+ mobileConfigureLocalization = localizationCommands.mobileConfigureLocalization;
1713
1796
  /*----------+
1714
1797
  | LOCATION |
1715
1798
  +----------+*/
1716
- getGeoLocation = commands_1.default.locationExtensions.getGeoLocation;
1717
- setGeoLocation = commands_1.default.locationExtensions.setGeoLocation;
1718
- mobileResetLocationService = commands_1.default.locationExtensions.mobileResetLocationService;
1799
+ getGeoLocation = locationCommands.getGeoLocation;
1800
+ setGeoLocation = locationCommands.setGeoLocation;
1801
+ mobileResetLocationService = locationCommands.mobileResetLocationService;
1719
1802
  /*------+
1720
1803
  | LOCK |
1721
1804
  +------+*/
1722
- lock = commands_1.default.lockExtensions.lock;
1723
- unlock = commands_1.default.lockExtensions.unlock;
1724
- isLocked = commands_1.default.lockExtensions.isLocked;
1805
+ lock = lockCommands.lock;
1806
+ unlock = lockCommands.unlock;
1807
+ isLocked = lockCommands.isLocked;
1725
1808
  /*-----+
1726
1809
  | LOG |
1727
1810
  +-----+*/
1728
- extractLogs = commands_1.default.logExtensions.extractLogs;
1729
- supportedLogTypes = commands_1.default.logExtensions.supportedLogTypes;
1730
- startLogCapture = commands_1.default.logExtensions.startLogCapture;
1731
- mobileStartLogsBroadcast = commands_1.default.logExtensions.mobileStartLogsBroadcast;
1732
- mobileStopLogsBroadcast = commands_1.default.logExtensions.mobileStopLogsBroadcast;
1811
+ extractLogs = logCommands.extractLogs;
1812
+ supportedLogTypes = logCommands.supportedLogTypes;
1813
+ startLogCapture = logCommands.startLogCapture;
1814
+ mobileStartLogsBroadcast = logCommands.mobileStartLogsBroadcast;
1815
+ mobileStopLogsBroadcast = logCommands.mobileStopLogsBroadcast;
1733
1816
  /*------------+
1734
1817
  | NAVIGATION |
1735
1818
  +------------+*/
1736
- back = commands_1.default.navigationExtensions.back;
1737
- forward = commands_1.default.navigationExtensions.forward;
1738
- closeWindow = commands_1.default.navigationExtensions.closeWindow;
1739
- nativeBack = commands_1.default.navigationExtensions.nativeBack;
1740
- mobileDeepLink = commands_1.default.navigationExtensions.mobileDeepLink;
1819
+ back = navigationCommands.back;
1820
+ forward = navigationCommands.forward;
1821
+ closeWindow = navigationCommands.closeWindow;
1822
+ nativeBack = navigationCommands.nativeBack;
1823
+ mobileDeepLink = navigationCommands.mobileDeepLink;
1741
1824
  /*---------------+
1742
1825
  | NOTIFICATIONS |
1743
1826
  +---------------+*/
1744
- mobilePushNotification = commands_1.default.notificationsExtensions.mobilePushNotification;
1745
- mobileExpectNotification = commands_1.default.notificationsExtensions.mobileExpectNotification;
1827
+ mobilePushNotification = notificationsCommands.mobilePushNotification;
1828
+ mobileExpectNotification = notificationsCommands.mobileExpectNotification;
1746
1829
  /*------------+
1747
1830
  | PASTEBOARD |
1748
1831
  +------------+*/
1749
- mobileSetPasteboard = commands_1.default.pasteboardExtensions.mobileSetPasteboard;
1750
- mobileGetPasteboard = commands_1.default.pasteboardExtensions.mobileGetPasteboard;
1832
+ mobileSetPasteboard = pasteboardCommands.mobileSetPasteboard;
1833
+ mobileGetPasteboard = pasteboardCommands.mobileGetPasteboard;
1751
1834
  /*------+
1752
1835
  | PCAP |
1753
1836
  +------+*/
1754
- mobileStartPcap = commands_1.default.pcapExtensions.mobileStartPcap;
1755
- mobileStopPcap = commands_1.default.pcapExtensions.mobileStopPcap;
1837
+ mobileStartPcap = pcapCommands.mobileStartPcap;
1838
+ mobileStopPcap = pcapCommands.mobileStopPcap;
1756
1839
  /*-------------+
1757
1840
  | PERFORMANCE |
1758
1841
  +-------------+*/
1759
- mobileStartPerfRecord = commands_1.default.performanceExtensions.mobileStartPerfRecord;
1760
- mobileStopPerfRecord = commands_1.default.performanceExtensions.mobileStopPerfRecord;
1842
+ mobileStartPerfRecord = performanceCommands.mobileStartPerfRecord;
1843
+ mobileStopPerfRecord = performanceCommands.mobileStopPerfRecord;
1761
1844
  /*-------------+
1762
1845
  | PERMISSIONS |
1763
1846
  +-------------+*/
1764
- mobileResetPermission = commands_1.default.permissionsExtensions.mobileResetPermission;
1765
- mobileGetPermission = commands_1.default.permissionsExtensions.mobileGetPermission;
1766
- mobileSetPermissions = commands_1.default.permissionsExtensions.mobileSetPermissions;
1847
+ mobileResetPermission = permissionsCommands.mobileResetPermission;
1848
+ mobileGetPermission = permissionsCommands.mobileGetPermission;
1849
+ mobileSetPermissions = permissionsCommands.mobileSetPermissions;
1767
1850
  /*-------------+
1768
1851
  | PROXYHELPER |
1769
1852
  +-------------+*/
1770
- proxyCommand = commands_1.default.proxyHelperExtensions.proxyCommand;
1853
+ proxyCommand = proxyHelperCommands.proxyCommand;
1771
1854
  /*-------------+
1772
1855
  | RECORDAUDIO |
1773
1856
  +-------------+*/
1774
- startAudioRecording = commands_1.default.recordAudioExtensions.startAudioRecording;
1775
- stopAudioRecording = commands_1.default.recordAudioExtensions.stopAudioRecording;
1857
+ startAudioRecording = recordAudioCommands.startAudioRecording;
1858
+ stopAudioRecording = recordAudioCommands.stopAudioRecording;
1776
1859
  /*--------------+
1777
1860
  | RECORDSCREEN |
1778
1861
  +--------------+*/
1779
- _recentScreenRecorder = commands_1.default.recordScreenExtensions._recentScreenRecorder;
1780
- startRecordingScreen = commands_1.default.recordScreenExtensions.startRecordingScreen;
1781
- stopRecordingScreen = commands_1.default.recordScreenExtensions.stopRecordingScreen;
1862
+ // Note: _recentScreenRecorder is a property, not a function, so it's handled internally in recordscreen.js
1863
+ startRecordingScreen = recordScreenCommands.startRecordingScreen;
1864
+ stopRecordingScreen = recordScreenCommands.stopRecordingScreen;
1782
1865
  /*-------------+
1783
1866
  | SCREENSHOTS |
1784
1867
  +-------------+*/
1785
- getScreenshot = commands_1.default.screenshotExtensions.getScreenshot;
1786
- getElementScreenshot = commands_1.default.screenshotExtensions.getElementScreenshot;
1787
- getViewportScreenshot = commands_1.default.screenshotExtensions.getViewportScreenshot;
1868
+ getScreenshot = screenshotCommands.getScreenshot;
1869
+ getElementScreenshot = screenshotCommands.getElementScreenshot;
1870
+ getViewportScreenshot = screenshotCommands.getViewportScreenshot;
1788
1871
  /*--------+
1789
1872
  | SOURCE |
1790
1873
  +--------+*/
1791
- getPageSource = commands_1.default.sourceExtensions.getPageSource;
1792
- mobileGetSource = commands_1.default.sourceExtensions.mobileGetSource;
1874
+ getPageSource = sourceCommands.getPageSource;
1875
+ mobileGetSource = sourceCommands.mobileGetSource;
1793
1876
  /*----------+
1794
1877
  | TIMEOUTS |
1795
1878
  +----------+*/
1796
- pageLoadTimeoutW3C = commands_1.default.timeoutExtensions.pageLoadTimeoutW3C;
1797
- pageLoadTimeoutMJSONWP = commands_1.default.timeoutExtensions.pageLoadTimeoutMJSONWP;
1798
- scriptTimeoutW3C = commands_1.default.timeoutExtensions.scriptTimeoutW3C;
1799
- scriptTimeoutMJSONWP = commands_1.default.timeoutExtensions.scriptTimeoutMJSONWP;
1800
- asyncScriptTimeout = commands_1.default.timeoutExtensions.asyncScriptTimeout;
1801
- setPageLoadTimeout = commands_1.default.timeoutExtensions.setPageLoadTimeout;
1802
- setAsyncScriptTimeout = commands_1.default.timeoutExtensions.setAsyncScriptTimeout;
1879
+ pageLoadTimeoutW3C = timeoutCommands.pageLoadTimeoutW3C;
1880
+ pageLoadTimeoutMJSONWP = timeoutCommands.pageLoadTimeoutMJSONWP;
1881
+ scriptTimeoutW3C = timeoutCommands.scriptTimeoutW3C;
1882
+ scriptTimeoutMJSONWP = timeoutCommands.scriptTimeoutMJSONWP;
1883
+ asyncScriptTimeout = timeoutCommands.asyncScriptTimeout;
1884
+ setPageLoadTimeout = timeoutCommands.setPageLoadTimeout;
1885
+ setAsyncScriptTimeout = timeoutCommands.setAsyncScriptTimeout;
1803
1886
  /*-----+
1804
1887
  | WEB |
1805
1888
  +-----+*/
1806
- setFrame = commands_1.default.webExtensions.setFrame;
1807
- getCssProperty = commands_1.default.webExtensions.getCssProperty;
1808
- submit = commands_1.default.webExtensions.submit;
1809
- refresh = commands_1.default.webExtensions.refresh;
1810
- getUrl = commands_1.default.webExtensions.getUrl;
1811
- title = commands_1.default.webExtensions.title;
1812
- getCookies = commands_1.default.webExtensions.getCookies;
1813
- setCookie = commands_1.default.webExtensions.setCookie;
1814
- deleteCookie = commands_1.default.webExtensions.deleteCookie;
1815
- deleteCookies = commands_1.default.webExtensions.deleteCookies;
1816
- _deleteCookie = commands_1.default.webExtensions._deleteCookie;
1817
- cacheWebElement = commands_1.default.webExtensions.cacheWebElement;
1818
- cacheWebElements = commands_1.default.webExtensions.cacheWebElements;
1819
- executeAtom = commands_1.default.webExtensions.executeAtom;
1820
- executeAtomAsync = commands_1.default.webExtensions.executeAtomAsync;
1821
- getAtomsElement = commands_1.default.webExtensions.getAtomsElement;
1822
- convertElementsForAtoms = commands_1.default.webExtensions.convertElementsForAtoms;
1823
- getElementId = commands_1.default.webExtensions.getElementId;
1824
- hasElementId = commands_1.default.webExtensions.hasElementId;
1825
- findWebElementOrElements = commands_1.default.webExtensions.findWebElementOrElements;
1826
- clickWebCoords = commands_1.default.webExtensions.clickWebCoords;
1827
- getSafariIsIphone = commands_1.default.webExtensions.getSafariIsIphone;
1828
- getSafariDeviceSize = commands_1.default.webExtensions.getSafariDeviceSize;
1829
- getSafariIsNotched = commands_1.default.webExtensions.getSafariIsNotched;
1830
- getExtraTranslateWebCoordsOffset = commands_1.default.webExtensions.getExtraTranslateWebCoordsOffset;
1831
- getExtraNativeWebTapOffset = commands_1.default.webExtensions.getExtraNativeWebTapOffset;
1832
- nativeWebTap = commands_1.default.webExtensions.nativeWebTap;
1833
- translateWebCoords = commands_1.default.webExtensions.translateWebCoords;
1834
- checkForAlert = commands_1.default.webExtensions.checkForAlert;
1835
- waitForAtom = commands_1.default.webExtensions.waitForAtom;
1836
- mobileWebNav = commands_1.default.webExtensions.mobileWebNav;
1837
- getWdaLocalhostRoot = commands_1.default.webExtensions.getWdaLocalhostRoot;
1838
- mobileCalibrateWebToRealCoordinatesTranslation = commands_1.default.webExtensions.mobileCalibrateWebToRealCoordinatesTranslation;
1839
- mobileUpdateSafariPreferences = commands_1.default.webExtensions.mobileUpdateSafariPreferences;
1889
+ // @ts-ignore Type mismatch: function type vs method signature
1890
+ setFrame = webCommands.setFrame;
1891
+ getCssProperty = webCommands.getCssProperty;
1892
+ submit = webCommands.submit;
1893
+ refresh = webCommands.refresh;
1894
+ getUrl = webCommands.getUrl;
1895
+ title = webCommands.title;
1896
+ getCookies = webCommands.getCookies;
1897
+ setCookie = webCommands.setCookie;
1898
+ deleteCookie = webCommands.deleteCookie;
1899
+ deleteCookies = webCommands.deleteCookies;
1900
+ _deleteCookie = webCommands._deleteCookie;
1901
+ cacheWebElement = webCommands.cacheWebElement;
1902
+ cacheWebElements = webCommands.cacheWebElements;
1903
+ executeAtom = webCommands.executeAtom;
1904
+ executeAtomAsync = webCommands.executeAtomAsync;
1905
+ getAtomsElement = webCommands.getAtomsElement;
1906
+ convertElementsForAtoms = webCommands.convertElementsForAtoms;
1907
+ getElementId = webCommands.getElementId;
1908
+ hasElementId = webCommands.hasElementId;
1909
+ findWebElementOrElements = webCommands.findWebElementOrElements;
1910
+ clickWebCoords = webCommands.clickWebCoords;
1911
+ getSafariIsIphone = webCommands.getSafariIsIphone;
1912
+ getSafariDeviceSize = webCommands.getSafariDeviceSize;
1913
+ getSafariIsNotched = webCommands.getSafariIsNotched;
1914
+ getExtraTranslateWebCoordsOffset = webCommands.getExtraTranslateWebCoordsOffset;
1915
+ getExtraNativeWebTapOffset = webCommands.getExtraNativeWebTapOffset;
1916
+ nativeWebTap = webCommands.nativeWebTap;
1917
+ translateWebCoords = webCommands.translateWebCoords;
1918
+ checkForAlert = webCommands.checkForAlert;
1919
+ waitForAtom = webCommands.waitForAtom;
1920
+ mobileWebNav = webCommands.mobileWebNav;
1921
+ getWdaLocalhostRoot = webCommands.getWdaLocalhostRoot;
1922
+ mobileCalibrateWebToRealCoordinatesTranslation = webCommands.mobileCalibrateWebToRealCoordinatesTranslation;
1923
+ mobileUpdateSafariPreferences = webCommands.mobileUpdateSafariPreferences;
1840
1924
  /*--------+
1841
1925
  | XCTEST |
1842
1926
  +--------+*/
1843
- mobileRunXCTest = commands_1.default.xctestExtensions.mobileRunXCTest;
1844
- mobileInstallXCTestBundle = commands_1.default.xctestExtensions.mobileInstallXCTestBundle;
1845
- mobileListXCTestBundles = commands_1.default.xctestExtensions.mobileListXCTestBundles;
1846
- mobileListXCTestsInTestBundle = commands_1.default.xctestExtensions.mobileListXCTestsInTestBundle;
1927
+ mobileRunXCTest = xctestCommands.mobileRunXCTest;
1928
+ mobileInstallXCTestBundle = xctestCommands.mobileInstallXCTestBundle;
1929
+ mobileListXCTestBundles = xctestCommands.mobileListXCTestBundles;
1930
+ mobileListXCTestsInTestBundle = xctestCommands.mobileListXCTestsInTestBundle;
1847
1931
  /*----------------------+
1848
1932
  | XCTEST SCREEN RECORD |
1849
1933
  +---------------------+*/
1850
- mobileStartXctestScreenRecording = commands_1.default.xctestRecordScreenExtensions.mobileStartXctestScreenRecording;
1851
- mobileGetXctestScreenRecordingInfo = commands_1.default.xctestRecordScreenExtensions.mobileGetXctestScreenRecordingInfo;
1852
- mobileStopXctestScreenRecording = commands_1.default.xctestRecordScreenExtensions.mobileStopXctestScreenRecording;
1934
+ mobileStartXctestScreenRecording = xctestRecordScreenCommands.mobileStartXctestScreenRecording;
1935
+ mobileGetXctestScreenRecordingInfo = xctestRecordScreenCommands.mobileGetXctestScreenRecordingInfo;
1936
+ mobileStopXctestScreenRecording = xctestRecordScreenCommands.mobileStopXctestScreenRecording;
1853
1937
  }
1854
1938
  exports.XCUITestDriver = XCUITestDriver;
1855
1939
  exports.default = XCUITestDriver;