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/lib/driver.js CHANGED
@@ -18,7 +18,52 @@ import {
18
18
  onDownloadApp,
19
19
  verifyApplicationPlatform,
20
20
  } from './app-utils';
21
- import commands from './commands';
21
+ import * as activeAppInfoCommands from './commands/active-app-info';
22
+ import * as alertCommands from './commands/alert';
23
+ import * as appManagementCommands from './commands/app-management';
24
+ import * as appearanceCommands from './commands/appearance';
25
+ import * as appStringsCommands from './commands/app-strings';
26
+ import * as auditCommands from './commands/audit';
27
+ import * as batteryCommands from './commands/battery';
28
+ import * as biometricCommands from './commands/biometric';
29
+ import * as certificateCommands from './commands/certificate';
30
+ import * as clipboardCommands from './commands/clipboard';
31
+ import * as conditionCommands from './commands/condition';
32
+ import * as contentSizeCommands from './commands/content-size';
33
+ import * as contextCommands from './commands/context';
34
+ import * as deviceInfoCommands from './commands/deviceInfo';
35
+ import * as elementCommands from './commands/element';
36
+ import * as executeCommands from './commands/execute';
37
+ import * as fileMovementCommands from './commands/file-movement';
38
+ import * as findCommands from './commands/find';
39
+ import * as generalCommands from './commands/general';
40
+ import * as geolocationCommands from './commands/geolocation';
41
+ import * as gestureCommands from './commands/gesture';
42
+ import * as iohidCommands from './commands/iohid';
43
+ import * as keychainsCommands from './commands/keychains';
44
+ import * as keyboardCommands from './commands/keyboard';
45
+ import * as localizationCommands from './commands/localization';
46
+ import * as locationCommands from './commands/location';
47
+ import * as lockCommands from './commands/lock';
48
+ import * as logCommands from './commands/log';
49
+ import * as memoryCommands from './commands/memory';
50
+ import * as navigationCommands from './commands/navigation';
51
+ import * as notificationsCommands from './commands/notifications';
52
+ import * as pasteboardCommands from './commands/pasteboard';
53
+ import * as pcapCommands from './commands/pcap';
54
+ import * as performanceCommands from './commands/performance';
55
+ import * as permissionsCommands from './commands/permissions';
56
+ import * as proxyHelperCommands from './commands/proxy-helper';
57
+ import * as recordAudioCommands from './commands/record-audio';
58
+ import * as recordScreenCommands from './commands/recordscreen';
59
+ import * as screenshotCommands from './commands/screenshots';
60
+ import * as sourceCommands from './commands/source';
61
+ import * as simctlCommands from './commands/simctl';
62
+ import * as timeoutCommands from './commands/timeouts';
63
+ import * as webCommands from './commands/web';
64
+ import * as xctestCommands from './commands/xctest';
65
+ import * as xctestRecordScreenCommands from './commands/xctest-record-screen';
66
+ import * as increaseContrastCommands from './commands/increase-contrast';
22
67
  import {desiredCapConstraints} from './desired-caps';
23
68
  import {DEVICE_CONNECTIONS_FACTORY} from './device-connections-factory';
24
69
  import {executeMethodMap} from './execute-method-map';
@@ -249,6 +294,9 @@ export class XCUITestDriver extends BaseDriver {
249
294
  /** @type {import('./commands/pcap').TrafficCapture|null} */
250
295
  _trafficCapture;
251
296
 
297
+ /** @type {import('./commands/recordscreen').ScreenRecorder|null} */
298
+ _recentScreenRecorder;
299
+
252
300
  /** @type {Simulator|RealDevice} */
253
301
  _device;
254
302
 
@@ -610,7 +658,7 @@ export class XCUITestDriver extends BaseDriver {
610
658
  ...this.opts,
611
659
  device: this.device,
612
660
  realDevice: this.isRealDevice(),
613
- iosSdkVersion: this._iosSdkVersion,
661
+ iosSdkVersion: this._iosSdkVersion ?? undefined,
614
662
  reqBasePath: this.basePath,
615
663
  },
616
664
  // @ts-ignore this is ok
@@ -709,7 +757,7 @@ export class XCUITestDriver extends BaseDriver {
709
757
  if (_.isNil(this.opts.safariInitialUrl) && _.isNil(this.opts.initialDeeplinkUrl)) {
710
758
  this.log.info(`Use the 'safariInitialUrl' capability to customize it`);
711
759
  };
712
- await this.setUrl(this.getCurrentUrl());
760
+ await this.setUrl(this.getCurrentUrl() || this.getDefaultUrl());
713
761
  } else {
714
762
  const currentUrl = await this.getUrl();
715
763
  this.log.info(`Current URL: ${currentUrl}`);
@@ -1788,445 +1836,449 @@ export class XCUITestDriver extends BaseDriver {
1788
1836
  | ACTIVEAPPINFO |
1789
1837
  +---------------+*/
1790
1838
 
1791
- mobileGetActiveAppInfo = commands.activeAppInfoExtensions.mobileGetActiveAppInfo;
1839
+ mobileGetActiveAppInfo = activeAppInfoCommands.mobileGetActiveAppInfo;
1792
1840
 
1793
1841
  /*-------+
1794
1842
  | ALERT |
1795
1843
  +-------+*/
1796
- getAlertText = commands.alertExtensions.getAlertText;
1797
- setAlertText = commands.alertExtensions.setAlertText;
1798
- postAcceptAlert = commands.alertExtensions.postAcceptAlert;
1799
- postDismissAlert = commands.alertExtensions.postDismissAlert;
1800
- getAlertButtons = commands.alertExtensions.getAlertButtons;
1801
- mobileHandleAlert = commands.alertExtensions.mobileHandleAlert;
1844
+ getAlertText = alertCommands.getAlertText;
1845
+ setAlertText = alertCommands.setAlertText;
1846
+ postAcceptAlert = alertCommands.postAcceptAlert;
1847
+ postDismissAlert = alertCommands.postDismissAlert;
1848
+ getAlertButtons = alertCommands.getAlertButtons;
1849
+ mobileHandleAlert = alertCommands.mobileHandleAlert;
1802
1850
 
1803
1851
  /*---------------+
1804
1852
  | APPMANAGEMENT |
1805
1853
  +---------------+*/
1806
1854
 
1807
- mobileInstallApp = commands.appManagementExtensions.mobileInstallApp;
1808
- mobileIsAppInstalled = commands.appManagementExtensions.mobileIsAppInstalled;
1809
- mobileRemoveApp = commands.appManagementExtensions.mobileRemoveApp;
1810
- mobileLaunchApp = commands.appManagementExtensions.mobileLaunchApp;
1811
- mobileTerminateApp = commands.appManagementExtensions.mobileTerminateApp;
1812
- mobileActivateApp = commands.appManagementExtensions.mobileActivateApp;
1813
- mobileKillApp = commands.appManagementExtensions.mobileKillApp;
1814
- mobileQueryAppState = commands.appManagementExtensions.mobileQueryAppState;
1815
- installApp = commands.appManagementExtensions.installApp;
1816
- activateApp = commands.appManagementExtensions.activateApp;
1817
- isAppInstalled = commands.appManagementExtensions.isAppInstalled;
1855
+ mobileInstallApp = appManagementCommands.mobileInstallApp;
1856
+ mobileIsAppInstalled = appManagementCommands.mobileIsAppInstalled;
1857
+ mobileRemoveApp = appManagementCommands.mobileRemoveApp;
1858
+ mobileLaunchApp = appManagementCommands.mobileLaunchApp;
1859
+ mobileTerminateApp = appManagementCommands.mobileTerminateApp;
1860
+ mobileActivateApp = appManagementCommands.mobileActivateApp;
1861
+ mobileKillApp = appManagementCommands.mobileKillApp;
1862
+ mobileQueryAppState = appManagementCommands.mobileQueryAppState;
1863
+ installApp = appManagementCommands.installApp;
1864
+ activateApp = appManagementCommands.activateApp;
1865
+ isAppInstalled = appManagementCommands.isAppInstalled;
1818
1866
  // @ts-ignore it must return boolean
1819
- terminateApp = commands.appManagementExtensions.terminateApp;
1820
- queryAppState = commands.appManagementExtensions.queryAppState;
1821
- mobileListApps = commands.appManagementExtensions.mobileListApps;
1822
- mobileClearApp = commands.appManagementExtensions.mobileClearApp;
1867
+ terminateApp = appManagementCommands.terminateApp;
1868
+ queryAppState = appManagementCommands.queryAppState;
1869
+ mobileListApps = appManagementCommands.mobileListApps;
1870
+ mobileClearApp = appManagementCommands.mobileClearApp;
1823
1871
 
1824
1872
  /*------------+
1825
1873
  | APPEARANCE |
1826
1874
  +------------+*/
1827
1875
 
1828
- mobileSetAppearance = commands.appearanceExtensions.mobileSetAppearance;
1829
- mobileGetAppearance = commands.appearanceExtensions.mobileGetAppearance;
1876
+ mobileSetAppearance = appearanceCommands.mobileSetAppearance;
1877
+ mobileGetAppearance = appearanceCommands.mobileGetAppearance;
1830
1878
 
1831
1879
  /*------------+
1832
1880
  | INCREASE CONTRAST |
1833
1881
  +------------+*/
1834
1882
 
1835
- mobileSetIncreaseContrast = commands.increaseContrastExtensions.mobileSetIncreaseContrast;
1836
- mobileGetIncreaseContrast = commands.increaseContrastExtensions.mobileGetIncreaseContrast;
1883
+ mobileSetIncreaseContrast = increaseContrastCommands.mobileSetIncreaseContrast;
1884
+ mobileGetIncreaseContrast = increaseContrastCommands.mobileGetIncreaseContrast;
1837
1885
 
1838
1886
  /*------------+
1839
1887
  | CONTENT SIZE |
1840
1888
  +------------+*/
1841
1889
 
1842
- mobileSetContentSize = commands.contentSizeExtensions.mobileSetContentSize;
1843
- mobileGetContentSize = commands.contentSizeExtensions.mobileGetContentSize;
1890
+ mobileSetContentSize = contentSizeCommands.mobileSetContentSize;
1891
+ mobileGetContentSize = contentSizeCommands.mobileGetContentSize;
1844
1892
 
1845
1893
  /*------------+
1846
1894
  | AUDIT |
1847
1895
  +------------+*/
1848
1896
 
1849
- mobilePerformAccessibilityAudit = commands.auditExtensions.mobilePerformAccessibilityAudit;
1897
+ mobilePerformAccessibilityAudit = auditCommands.mobilePerformAccessibilityAudit;
1850
1898
 
1851
1899
  /*---------+
1852
1900
  | BATTERY |
1853
1901
  +---------+*/
1854
- mobileGetBatteryInfo = commands.batteryExtensions.mobileGetBatteryInfo;
1902
+ mobileGetBatteryInfo = batteryCommands.mobileGetBatteryInfo;
1855
1903
 
1856
1904
  /*-----------+
1857
1905
  | BIOMETRIC |
1858
1906
  +-----------+*/
1859
1907
 
1860
- mobileEnrollBiometric = commands.biometricExtensions.mobileEnrollBiometric;
1861
- mobileSendBiometricMatch = commands.biometricExtensions.mobileSendBiometricMatch;
1862
- mobileIsBiometricEnrolled = commands.biometricExtensions.mobileIsBiometricEnrolled;
1908
+ mobileEnrollBiometric = biometricCommands.mobileEnrollBiometric;
1909
+ mobileSendBiometricMatch = biometricCommands.mobileSendBiometricMatch;
1910
+ mobileIsBiometricEnrolled = biometricCommands.mobileIsBiometricEnrolled;
1863
1911
 
1864
1912
  /*-------------+
1865
1913
  | CERTIFICATE |
1866
1914
  +-------------+*/
1867
- mobileInstallCertificate = commands.certificateExtensions.mobileInstallCertificate;
1868
- mobileListCertificates = commands.certificateExtensions.mobileListCertificates;
1869
- mobileRemoveCertificate = commands.certificateExtensions.mobileRemoveCertificate;
1915
+ mobileInstallCertificate = certificateCommands.mobileInstallCertificate;
1916
+ mobileListCertificates = certificateCommands.mobileListCertificates;
1917
+ mobileRemoveCertificate = certificateCommands.mobileRemoveCertificate;
1870
1918
 
1871
1919
  /*-----------+
1872
1920
  | CLIPBOARD |
1873
1921
  +-----------+*/
1874
1922
 
1875
- setClipboard = commands.clipboardExtensions.setClipboard;
1876
- getClipboard = commands.clipboardExtensions.getClipboard;
1923
+ setClipboard = clipboardCommands.setClipboard;
1924
+ getClipboard = clipboardCommands.getClipboard;
1877
1925
 
1878
1926
  /*-----------+
1879
1927
  | CONDITION |
1880
1928
  +-----------+*/
1881
1929
 
1882
- listConditionInducers = commands.conditionExtensions.listConditionInducers;
1883
- enableConditionInducer = commands.conditionExtensions.enableConditionInducer;
1884
- disableConditionInducer = commands.conditionExtensions.disableConditionInducer;
1930
+ listConditionInducers = conditionCommands.listConditionInducers;
1931
+ enableConditionInducer = conditionCommands.enableConditionInducer;
1932
+ disableConditionInducer = conditionCommands.disableConditionInducer;
1885
1933
 
1886
1934
  /*---------+
1887
1935
  | CONTEXT |
1888
1936
  +---------+*/
1889
1937
 
1890
- getContexts = commands.contextExtensions.getContexts;
1891
- getCurrentContext = commands.contextExtensions.getCurrentContext;
1938
+ getContexts = contextCommands.getContexts;
1939
+ getCurrentContext = contextCommands.getCurrentContext;
1892
1940
  // @ts-ignore This is OK
1893
- getWindowHandle = commands.contextExtensions.getWindowHandle;
1894
- getWindowHandles = commands.contextExtensions.getWindowHandles;
1895
- setContext = commands.contextExtensions.setContext;
1941
+ getWindowHandle = contextCommands.getWindowHandle;
1942
+ getWindowHandles = contextCommands.getWindowHandles;
1943
+ // @ts-ignore Type mismatch: function type vs method signature
1944
+ setContext = contextCommands.setContext;
1896
1945
  // @ts-ignore This is OK
1897
- setWindow = commands.contextExtensions.setWindow;
1898
- activateRecentWebview = commands.contextExtensions.activateRecentWebview;
1899
- connectToRemoteDebugger = commands.contextExtensions.connectToRemoteDebugger;
1900
- getContextsAndViews = commands.contextExtensions.getContextsAndViews;
1901
- listWebFrames = commands.contextExtensions.listWebFrames;
1902
- mobileGetContexts = commands.contextExtensions.mobileGetContexts;
1903
- onPageChange = commands.contextExtensions.onPageChange;
1904
- useNewSafari = commands.contextExtensions.useNewSafari;
1905
- getCurrentUrl = commands.contextExtensions.getCurrentUrl;
1906
- getNewRemoteDebugger = commands.contextExtensions.getNewRemoteDebugger;
1907
- getRecentWebviewContextId = commands.contextExtensions.getRecentWebviewContextId;
1908
- isWebContext = commands.contextExtensions.isWebContext;
1909
- isWebview = commands.contextExtensions.isWebview;
1910
- setCurrentUrl = commands.contextExtensions.setCurrentUrl;
1911
- stopRemote = commands.contextExtensions.stopRemote;
1946
+ setWindow = contextCommands.setWindow;
1947
+ activateRecentWebview = contextCommands.activateRecentWebview;
1948
+ connectToRemoteDebugger = contextCommands.connectToRemoteDebugger;
1949
+ getContextsAndViews = contextCommands.getContextsAndViews;
1950
+ listWebFrames = contextCommands.listWebFrames;
1951
+ mobileGetContexts = contextCommands.mobileGetContexts;
1952
+ onPageChange = contextCommands.onPageChange;
1953
+ useNewSafari = contextCommands.useNewSafari;
1954
+ getCurrentUrl = contextCommands.getCurrentUrl;
1955
+ getNewRemoteDebugger = contextCommands.getNewRemoteDebugger;
1956
+ getRecentWebviewContextId = contextCommands.getRecentWebviewContextId;
1957
+ isWebContext = contextCommands.isWebContext;
1958
+ isWebview = contextCommands.isWebview;
1959
+ setCurrentUrl = contextCommands.setCurrentUrl;
1960
+ stopRemote = contextCommands.stopRemote;
1912
1961
 
1913
1962
  /*------------+
1914
1963
  | DEVICEINFO |
1915
1964
  +------------+*/
1916
1965
 
1917
- mobileGetDeviceInfo = commands.deviceInfoExtensions.mobileGetDeviceInfo;
1966
+ mobileGetDeviceInfo = deviceInfoCommands.mobileGetDeviceInfo;
1918
1967
 
1919
1968
  /*---------+
1920
1969
  | ELEMENT |
1921
1970
  +---------+*/
1922
1971
 
1923
- elementDisplayed = commands.elementExtensions.elementDisplayed;
1924
- elementEnabled = commands.elementExtensions.elementEnabled;
1925
- elementSelected = commands.elementExtensions.elementSelected;
1926
- getName = commands.elementExtensions.getName;
1927
- getNativeAttribute = commands.elementExtensions.getNativeAttribute;
1928
- getAttribute = commands.elementExtensions.getAttribute;
1929
- getProperty = commands.elementExtensions.getProperty;
1930
- getText = commands.elementExtensions.getText;
1931
- getElementRect = commands.elementExtensions.getElementRect;
1932
- getLocation = commands.elementExtensions.getLocation;
1933
- getLocationInView = commands.elementExtensions.getLocationInView;
1934
- getSize = commands.elementExtensions.getSize;
1972
+ elementDisplayed = elementCommands.elementDisplayed;
1973
+ elementEnabled = elementCommands.elementEnabled;
1974
+ elementSelected = elementCommands.elementSelected;
1975
+ getName = elementCommands.getName;
1976
+ getNativeAttribute = elementCommands.getNativeAttribute;
1977
+ getAttribute = elementCommands.getAttribute;
1978
+ getProperty = elementCommands.getProperty;
1979
+ getText = elementCommands.getText;
1980
+ getElementRect = elementCommands.getElementRect;
1981
+ getLocation = elementCommands.getLocation;
1982
+ getLocationInView = elementCommands.getLocationInView;
1983
+ getSize = elementCommands.getSize;
1935
1984
  /** @deprecated */
1936
- setValueImmediate = commands.elementExtensions.setValueImmediate;
1937
- setValue = commands.elementExtensions.setValue;
1938
- setValueWithWebAtom = commands.elementExtensions.setValueWithWebAtom;
1939
- keys = commands.elementExtensions.keys;
1940
- clear = commands.elementExtensions.clear;
1941
- getContentSize = commands.elementExtensions.getContentSize;
1942
- getNativeRect = commands.elementExtensions.getNativeRect;
1985
+ setValueImmediate = elementCommands.setValueImmediate;
1986
+ setValue = elementCommands.setValue;
1987
+ setValueWithWebAtom = elementCommands.setValueWithWebAtom;
1988
+ keys = elementCommands.keys;
1989
+ clear = elementCommands.clear;
1990
+ getContentSize = elementCommands.getContentSize;
1991
+ getNativeRect = elementCommands.getNativeRect;
1943
1992
 
1944
1993
  /*---------+
1945
1994
  | EXECUTE |
1946
1995
  +---------+*/
1947
1996
 
1948
- receiveAsyncResponse = commands.executeExtensions.receiveAsyncResponse;
1949
- execute = commands.executeExtensions.execute;
1950
- executeAsync = commands.executeExtensions.executeAsync;
1951
- executeMobile = commands.executeExtensions.executeMobile;
1952
- mobileSimctl = commands.simctl.mobileSimctl;
1997
+ receiveAsyncResponse = executeCommands.receiveAsyncResponse;
1998
+ execute = executeCommands.execute;
1999
+ // @ts-ignore Type mismatch: function type vs method signature
2000
+ executeAsync = executeCommands.executeAsync;
2001
+ // Note: executeMobile is handled internally via execute method
2002
+ mobileSimctl = simctlCommands.mobileSimctl;
1953
2003
 
1954
2004
  /*--------------+
1955
2005
  | FILEMOVEMENT |
1956
2006
  +--------------+*/
1957
2007
 
1958
- pushFile = commands.fileMovementExtensions.pushFile;
1959
- mobilePushFile = commands.fileMovementExtensions.mobilePushFile;
1960
- pullFile = commands.fileMovementExtensions.pullFile;
1961
- mobilePullFile = commands.fileMovementExtensions.mobilePullFile;
1962
- mobileDeleteFolder = commands.fileMovementExtensions.mobileDeleteFolder;
1963
- mobileDeleteFile = commands.fileMovementExtensions.mobileDeleteFile;
1964
- pullFolder = commands.fileMovementExtensions.pullFolder;
1965
- mobilePullFolder = commands.fileMovementExtensions.mobilePullFolder;
2008
+ pushFile = fileMovementCommands.pushFile;
2009
+ mobilePushFile = fileMovementCommands.mobilePushFile;
2010
+ pullFile = fileMovementCommands.pullFile;
2011
+ mobilePullFile = fileMovementCommands.mobilePullFile;
2012
+ mobileDeleteFolder = fileMovementCommands.mobileDeleteFolder;
2013
+ mobileDeleteFile = fileMovementCommands.mobileDeleteFile;
2014
+ pullFolder = fileMovementCommands.pullFolder;
2015
+ mobilePullFolder = fileMovementCommands.mobilePullFolder;
1966
2016
 
1967
2017
  /*--------+
1968
2018
  | MEMORY |
1969
2019
  +--------+*/
1970
2020
 
1971
- mobileSendMemoryWarning = commands.memoryExtensions.mobileSendMemoryWarning;
2021
+ mobileSendMemoryWarning = memoryCommands.mobileSendMemoryWarning;
1972
2022
 
1973
2023
  /*------+
1974
2024
  | FIND |
1975
2025
  +------+*/
1976
2026
 
1977
- findElOrEls = commands.findExtensions.findElOrEls;
1978
- findNativeElementOrElements = commands.findExtensions.findNativeElementOrElements;
1979
- doNativeFind = commands.findExtensions.doNativeFind;
1980
- getFirstVisibleChild = commands.findExtensions.getFirstVisibleChild;
2027
+ findElOrEls = findCommands.findElOrEls;
2028
+ findNativeElementOrElements = findCommands.findNativeElementOrElements;
2029
+ doNativeFind = findCommands.doNativeFind;
2030
+ getFirstVisibleChild = findCommands.getFirstVisibleChild;
1981
2031
 
1982
2032
  /*---------+
1983
2033
  | GENERAL |
1984
2034
  +---------+*/
1985
2035
 
1986
- active = commands.generalExtensions.active;
1987
- background = commands.appManagementExtensions.background;
1988
- touchId = commands.generalExtensions.touchId;
1989
- toggleEnrollTouchId = commands.generalExtensions.toggleEnrollTouchId;
1990
- getWindowSize = commands.generalExtensions.getWindowSize;
1991
- getDeviceTime = commands.generalExtensions.getDeviceTime;
1992
- mobileGetDeviceTime = commands.generalExtensions.mobileGetDeviceTime;
1993
- getWindowRect = commands.generalExtensions.getWindowRect;
1994
- getStrings = commands.appStringsExtensions.getStrings;
1995
- removeApp = commands.generalExtensions.removeApp;
1996
- launchApp = commands.generalExtensions.launchApp;
1997
- closeApp = commands.generalExtensions.closeApp;
1998
- setUrl = commands.generalExtensions.setUrl;
1999
- getViewportRect = commands.generalExtensions.getViewportRect;
2000
- getScreenInfo = commands.generalExtensions.getScreenInfo;
2001
- getStatusBarHeight = commands.generalExtensions.getStatusBarHeight;
2002
- getDevicePixelRatio = commands.generalExtensions.getDevicePixelRatio;
2003
- mobilePressButton = commands.generalExtensions.mobilePressButton;
2004
- mobileSiriCommand = commands.generalExtensions.mobileSiriCommand;
2036
+ active = generalCommands.active;
2037
+ background = appManagementCommands.background;
2038
+ touchId = generalCommands.touchId;
2039
+ toggleEnrollTouchId = generalCommands.toggleEnrollTouchId;
2040
+ getWindowSize = generalCommands.getWindowSize;
2041
+ getDeviceTime = generalCommands.getDeviceTime;
2042
+ mobileGetDeviceTime = generalCommands.mobileGetDeviceTime;
2043
+ getWindowRect = generalCommands.getWindowRect;
2044
+ getStrings = appStringsCommands.getStrings;
2045
+ removeApp = generalCommands.removeApp;
2046
+ launchApp = generalCommands.launchApp;
2047
+ closeApp = generalCommands.closeApp;
2048
+ // @ts-ignore Type mismatch: function type vs method signature
2049
+ setUrl = generalCommands.setUrl;
2050
+ getViewportRect = generalCommands.getViewportRect;
2051
+ getScreenInfo = generalCommands.getScreenInfo;
2052
+ getStatusBarHeight = generalCommands.getStatusBarHeight;
2053
+ getDevicePixelRatio = generalCommands.getDevicePixelRatio;
2054
+ mobilePressButton = generalCommands.mobilePressButton;
2055
+ mobileSiriCommand = generalCommands.mobileSiriCommand;
2005
2056
 
2006
2057
  /*-------------+
2007
2058
  | GEOLOCATION |
2008
2059
  +-------------+*/
2009
- mobileGetSimulatedLocation = commands.geolocationExtensions.mobileGetSimulatedLocation;
2010
- mobileSetSimulatedLocation = commands.geolocationExtensions.mobileSetSimulatedLocation;
2011
- mobileResetSimulatedLocation = commands.geolocationExtensions.mobileResetSimulatedLocation;
2060
+ mobileGetSimulatedLocation = geolocationCommands.mobileGetSimulatedLocation;
2061
+ mobileSetSimulatedLocation = geolocationCommands.mobileSetSimulatedLocation;
2062
+ mobileResetSimulatedLocation = geolocationCommands.mobileResetSimulatedLocation;
2012
2063
 
2013
2064
  /*---------+
2014
2065
  | GESTURE |
2015
2066
  +---------+*/
2016
- mobileShake = commands.gestureExtensions.mobileShake;
2017
- click = commands.gestureExtensions.click;
2018
- releaseActions = commands.gestureExtensions.releaseActions;
2019
- performActions = commands.gestureExtensions.performActions;
2020
- nativeClick = commands.gestureExtensions.nativeClick;
2021
- mobileScrollToElement = commands.gestureExtensions.mobileScrollToElement;
2022
- mobileScroll = commands.gestureExtensions.mobileScroll;
2023
- mobileSwipe = commands.gestureExtensions.mobileSwipe;
2024
- mobilePinch = commands.gestureExtensions.mobilePinch;
2025
- mobileDoubleTap = commands.gestureExtensions.mobileDoubleTap;
2026
- mobileTwoFingerTap = commands.gestureExtensions.mobileTwoFingerTap;
2027
- mobileTouchAndHold = commands.gestureExtensions.mobileTouchAndHold;
2028
- mobileTap = commands.gestureExtensions.mobileTap;
2029
- mobileDragFromToForDuration = commands.gestureExtensions.mobileDragFromToForDuration;
2030
- mobileDragFromToWithVelocity = commands.gestureExtensions.mobileDragFromToWithVelocity;
2031
- mobileTapWithNumberOfTaps = commands.gestureExtensions.mobileTapWithNumberOfTaps;
2032
- mobileForcePress = commands.gestureExtensions.mobileForcePress;
2033
- mobileSelectPickerWheelValue = commands.gestureExtensions.mobileSelectPickerWheelValue;
2034
- mobileRotateElement = commands.gestureExtensions.mobileRotateElement;
2067
+ mobileShake = gestureCommands.mobileShake;
2068
+ click = gestureCommands.click;
2069
+ releaseActions = gestureCommands.releaseActions;
2070
+ performActions = gestureCommands.performActions;
2071
+ nativeClick = gestureCommands.nativeClick;
2072
+ mobileScrollToElement = gestureCommands.mobileScrollToElement;
2073
+ mobileScroll = gestureCommands.mobileScroll;
2074
+ mobileSwipe = gestureCommands.mobileSwipe;
2075
+ mobilePinch = gestureCommands.mobilePinch;
2076
+ mobileDoubleTap = gestureCommands.mobileDoubleTap;
2077
+ mobileTwoFingerTap = gestureCommands.mobileTwoFingerTap;
2078
+ mobileTouchAndHold = gestureCommands.mobileTouchAndHold;
2079
+ mobileTap = gestureCommands.mobileTap;
2080
+ mobileDragFromToForDuration = gestureCommands.mobileDragFromToForDuration;
2081
+ mobileDragFromToWithVelocity = gestureCommands.mobileDragFromToWithVelocity;
2082
+ mobileTapWithNumberOfTaps = gestureCommands.mobileTapWithNumberOfTaps;
2083
+ mobileForcePress = gestureCommands.mobileForcePress;
2084
+ mobileSelectPickerWheelValue = gestureCommands.mobileSelectPickerWheelValue;
2085
+ mobileRotateElement = gestureCommands.mobileRotateElement;
2035
2086
 
2036
2087
  /*-------+
2037
2088
  | IOHID |
2038
2089
  +-------+*/
2039
- mobilePerformIoHidEvent = commands.iohidExtensions.mobilePerformIoHidEvent;
2090
+ mobilePerformIoHidEvent = iohidCommands.mobilePerformIoHidEvent;
2040
2091
 
2041
2092
  /*-----------+
2042
2093
  | KEYCHAINS |
2043
2094
  +-----------+*/
2044
2095
 
2045
- mobileClearKeychains = commands.keychainsExtensions.mobileClearKeychains;
2096
+ mobileClearKeychains = keychainsCommands.mobileClearKeychains;
2046
2097
 
2047
2098
  /*----------+
2048
2099
  | KEYBOARD |
2049
2100
  +----------+*/
2050
2101
 
2051
- hideKeyboard = commands.keyboardExtensions.hideKeyboard;
2052
- mobileHideKeyboard = commands.keyboardExtensions.mobileHideKeyboard;
2053
- isKeyboardShown = commands.keyboardExtensions.isKeyboardShown;
2054
- mobileKeys = commands.keyboardExtensions.mobileKeys;
2102
+ hideKeyboard = keyboardCommands.hideKeyboard;
2103
+ mobileHideKeyboard = keyboardCommands.mobileHideKeyboard;
2104
+ isKeyboardShown = keyboardCommands.isKeyboardShown;
2105
+ mobileKeys = keyboardCommands.mobileKeys;
2055
2106
 
2056
2107
  /*--------------+
2057
2108
  | LOCALIZATION |
2058
2109
  +--------------+*/
2059
2110
 
2060
- mobileConfigureLocalization = commands.localizationExtensions.mobileConfigureLocalization;
2111
+ mobileConfigureLocalization = localizationCommands.mobileConfigureLocalization;
2061
2112
 
2062
2113
  /*----------+
2063
2114
  | LOCATION |
2064
2115
  +----------+*/
2065
2116
 
2066
- getGeoLocation = commands.locationExtensions.getGeoLocation;
2067
- setGeoLocation = commands.locationExtensions.setGeoLocation;
2068
- mobileResetLocationService = commands.locationExtensions.mobileResetLocationService;
2117
+ getGeoLocation = locationCommands.getGeoLocation;
2118
+ setGeoLocation = locationCommands.setGeoLocation;
2119
+ mobileResetLocationService = locationCommands.mobileResetLocationService;
2069
2120
 
2070
2121
  /*------+
2071
2122
  | LOCK |
2072
2123
  +------+*/
2073
- lock = commands.lockExtensions.lock;
2074
- unlock = commands.lockExtensions.unlock;
2075
- isLocked = commands.lockExtensions.isLocked;
2124
+ lock = lockCommands.lock;
2125
+ unlock = lockCommands.unlock;
2126
+ isLocked = lockCommands.isLocked;
2076
2127
 
2077
2128
  /*-----+
2078
2129
  | LOG |
2079
2130
  +-----+*/
2080
2131
 
2081
- extractLogs = commands.logExtensions.extractLogs;
2082
- supportedLogTypes = commands.logExtensions.supportedLogTypes;
2083
- startLogCapture = commands.logExtensions.startLogCapture;
2084
- mobileStartLogsBroadcast = commands.logExtensions.mobileStartLogsBroadcast;
2085
- mobileStopLogsBroadcast = commands.logExtensions.mobileStopLogsBroadcast;
2132
+ extractLogs = logCommands.extractLogs;
2133
+ supportedLogTypes = logCommands.supportedLogTypes;
2134
+ startLogCapture = logCommands.startLogCapture;
2135
+ mobileStartLogsBroadcast = logCommands.mobileStartLogsBroadcast;
2136
+ mobileStopLogsBroadcast = logCommands.mobileStopLogsBroadcast;
2086
2137
 
2087
2138
  /*------------+
2088
2139
  | NAVIGATION |
2089
2140
  +------------+*/
2090
2141
 
2091
- back = commands.navigationExtensions.back;
2092
- forward = commands.navigationExtensions.forward;
2093
- closeWindow = commands.navigationExtensions.closeWindow;
2094
- nativeBack = commands.navigationExtensions.nativeBack;
2095
- mobileDeepLink = commands.navigationExtensions.mobileDeepLink;
2142
+ back = navigationCommands.back;
2143
+ forward = navigationCommands.forward;
2144
+ closeWindow = navigationCommands.closeWindow;
2145
+ nativeBack = navigationCommands.nativeBack;
2146
+ mobileDeepLink = navigationCommands.mobileDeepLink;
2096
2147
 
2097
2148
  /*---------------+
2098
2149
  | NOTIFICATIONS |
2099
2150
  +---------------+*/
2100
2151
 
2101
- mobilePushNotification = commands.notificationsExtensions.mobilePushNotification;
2102
- mobileExpectNotification = commands.notificationsExtensions.mobileExpectNotification;
2152
+ mobilePushNotification = notificationsCommands.mobilePushNotification;
2153
+ mobileExpectNotification = notificationsCommands.mobileExpectNotification;
2103
2154
 
2104
2155
  /*------------+
2105
2156
  | PASTEBOARD |
2106
2157
  +------------+*/
2107
2158
 
2108
- mobileSetPasteboard = commands.pasteboardExtensions.mobileSetPasteboard;
2109
- mobileGetPasteboard = commands.pasteboardExtensions.mobileGetPasteboard;
2159
+ mobileSetPasteboard = pasteboardCommands.mobileSetPasteboard;
2160
+ mobileGetPasteboard = pasteboardCommands.mobileGetPasteboard;
2110
2161
 
2111
2162
  /*------+
2112
2163
  | PCAP |
2113
2164
  +------+*/
2114
2165
 
2115
- mobileStartPcap = commands.pcapExtensions.mobileStartPcap;
2116
- mobileStopPcap = commands.pcapExtensions.mobileStopPcap;
2166
+ mobileStartPcap = pcapCommands.mobileStartPcap;
2167
+ mobileStopPcap = pcapCommands.mobileStopPcap;
2117
2168
 
2118
2169
  /*-------------+
2119
2170
  | PERFORMANCE |
2120
2171
  +-------------+*/
2121
- mobileStartPerfRecord = commands.performanceExtensions.mobileStartPerfRecord;
2122
- mobileStopPerfRecord = commands.performanceExtensions.mobileStopPerfRecord;
2172
+ mobileStartPerfRecord = performanceCommands.mobileStartPerfRecord;
2173
+ mobileStopPerfRecord = performanceCommands.mobileStopPerfRecord;
2123
2174
 
2124
2175
  /*-------------+
2125
2176
  | PERMISSIONS |
2126
2177
  +-------------+*/
2127
2178
 
2128
- mobileResetPermission = commands.permissionsExtensions.mobileResetPermission;
2129
- mobileGetPermission = commands.permissionsExtensions.mobileGetPermission;
2130
- mobileSetPermissions = commands.permissionsExtensions.mobileSetPermissions;
2179
+ mobileResetPermission = permissionsCommands.mobileResetPermission;
2180
+ mobileGetPermission = permissionsCommands.mobileGetPermission;
2181
+ mobileSetPermissions = permissionsCommands.mobileSetPermissions;
2131
2182
 
2132
2183
  /*-------------+
2133
2184
  | PROXYHELPER |
2134
2185
  +-------------+*/
2135
2186
 
2136
- proxyCommand = commands.proxyHelperExtensions.proxyCommand;
2187
+ proxyCommand = proxyHelperCommands.proxyCommand;
2137
2188
 
2138
2189
  /*-------------+
2139
2190
  | RECORDAUDIO |
2140
2191
  +-------------+*/
2141
2192
 
2142
- startAudioRecording = commands.recordAudioExtensions.startAudioRecording;
2143
- stopAudioRecording = commands.recordAudioExtensions.stopAudioRecording;
2193
+ startAudioRecording = recordAudioCommands.startAudioRecording;
2194
+ stopAudioRecording = recordAudioCommands.stopAudioRecording;
2144
2195
 
2145
2196
  /*--------------+
2146
2197
  | RECORDSCREEN |
2147
2198
  +--------------+*/
2148
2199
 
2149
- _recentScreenRecorder = commands.recordScreenExtensions._recentScreenRecorder;
2150
- startRecordingScreen = commands.recordScreenExtensions.startRecordingScreen;
2151
- stopRecordingScreen = commands.recordScreenExtensions.stopRecordingScreen;
2200
+ // Note: _recentScreenRecorder is a property, not a function, so it's handled internally in recordscreen.js
2201
+ startRecordingScreen = recordScreenCommands.startRecordingScreen;
2202
+ stopRecordingScreen = recordScreenCommands.stopRecordingScreen;
2152
2203
 
2153
2204
  /*-------------+
2154
2205
  | SCREENSHOTS |
2155
2206
  +-------------+*/
2156
- getScreenshot = commands.screenshotExtensions.getScreenshot;
2157
- getElementScreenshot = commands.screenshotExtensions.getElementScreenshot;
2158
- getViewportScreenshot = commands.screenshotExtensions.getViewportScreenshot;
2207
+ getScreenshot = screenshotCommands.getScreenshot;
2208
+ getElementScreenshot = screenshotCommands.getElementScreenshot;
2209
+ getViewportScreenshot = screenshotCommands.getViewportScreenshot;
2159
2210
 
2160
2211
  /*--------+
2161
2212
  | SOURCE |
2162
2213
  +--------+*/
2163
- getPageSource = commands.sourceExtensions.getPageSource;
2164
- mobileGetSource = commands.sourceExtensions.mobileGetSource;
2214
+ getPageSource = sourceCommands.getPageSource;
2215
+ mobileGetSource = sourceCommands.mobileGetSource;
2165
2216
 
2166
2217
  /*----------+
2167
2218
  | TIMEOUTS |
2168
2219
  +----------+*/
2169
2220
 
2170
- pageLoadTimeoutW3C = commands.timeoutExtensions.pageLoadTimeoutW3C;
2171
- pageLoadTimeoutMJSONWP = commands.timeoutExtensions.pageLoadTimeoutMJSONWP;
2172
- scriptTimeoutW3C = commands.timeoutExtensions.scriptTimeoutW3C;
2173
- scriptTimeoutMJSONWP = commands.timeoutExtensions.scriptTimeoutMJSONWP;
2174
- asyncScriptTimeout = commands.timeoutExtensions.asyncScriptTimeout;
2175
- setPageLoadTimeout = commands.timeoutExtensions.setPageLoadTimeout;
2176
- setAsyncScriptTimeout = commands.timeoutExtensions.setAsyncScriptTimeout;
2221
+ pageLoadTimeoutW3C = timeoutCommands.pageLoadTimeoutW3C;
2222
+ pageLoadTimeoutMJSONWP = timeoutCommands.pageLoadTimeoutMJSONWP;
2223
+ scriptTimeoutW3C = timeoutCommands.scriptTimeoutW3C;
2224
+ scriptTimeoutMJSONWP = timeoutCommands.scriptTimeoutMJSONWP;
2225
+ asyncScriptTimeout = timeoutCommands.asyncScriptTimeout;
2226
+ setPageLoadTimeout = timeoutCommands.setPageLoadTimeout;
2227
+ setAsyncScriptTimeout = timeoutCommands.setAsyncScriptTimeout;
2177
2228
 
2178
2229
  /*-----+
2179
2230
  | WEB |
2180
2231
  +-----+*/
2181
- setFrame = commands.webExtensions.setFrame;
2182
- getCssProperty = commands.webExtensions.getCssProperty;
2183
- submit = commands.webExtensions.submit;
2184
- refresh = commands.webExtensions.refresh;
2185
- getUrl = commands.webExtensions.getUrl;
2186
- title = commands.webExtensions.title;
2187
- getCookies = commands.webExtensions.getCookies;
2188
- setCookie = commands.webExtensions.setCookie;
2189
- deleteCookie = commands.webExtensions.deleteCookie;
2190
- deleteCookies = commands.webExtensions.deleteCookies;
2191
- _deleteCookie = commands.webExtensions._deleteCookie;
2192
- cacheWebElement = commands.webExtensions.cacheWebElement;
2193
- cacheWebElements = commands.webExtensions.cacheWebElements;
2194
- executeAtom = commands.webExtensions.executeAtom;
2195
- executeAtomAsync = commands.webExtensions.executeAtomAsync;
2196
- getAtomsElement = commands.webExtensions.getAtomsElement;
2197
- convertElementsForAtoms = commands.webExtensions.convertElementsForAtoms;
2198
- getElementId = commands.webExtensions.getElementId;
2199
- hasElementId = commands.webExtensions.hasElementId;
2200
- findWebElementOrElements = commands.webExtensions.findWebElementOrElements;
2201
- clickWebCoords = commands.webExtensions.clickWebCoords;
2202
- getSafariIsIphone = commands.webExtensions.getSafariIsIphone;
2203
- getSafariDeviceSize = commands.webExtensions.getSafariDeviceSize;
2204
- getSafariIsNotched = commands.webExtensions.getSafariIsNotched;
2205
- getExtraTranslateWebCoordsOffset = commands.webExtensions.getExtraTranslateWebCoordsOffset;
2206
- getExtraNativeWebTapOffset = commands.webExtensions.getExtraNativeWebTapOffset;
2207
- nativeWebTap = commands.webExtensions.nativeWebTap;
2208
- translateWebCoords = commands.webExtensions.translateWebCoords;
2209
- checkForAlert = commands.webExtensions.checkForAlert;
2210
- waitForAtom = commands.webExtensions.waitForAtom;
2211
- mobileWebNav = commands.webExtensions.mobileWebNav;
2212
- getWdaLocalhostRoot = commands.webExtensions.getWdaLocalhostRoot;
2213
- mobileCalibrateWebToRealCoordinatesTranslation = commands.webExtensions.mobileCalibrateWebToRealCoordinatesTranslation;
2214
- mobileUpdateSafariPreferences = commands.webExtensions.mobileUpdateSafariPreferences;
2232
+ // @ts-ignore Type mismatch: function type vs method signature
2233
+ setFrame = webCommands.setFrame;
2234
+ getCssProperty = webCommands.getCssProperty;
2235
+ submit = webCommands.submit;
2236
+ refresh = webCommands.refresh;
2237
+ getUrl = webCommands.getUrl;
2238
+ title = webCommands.title;
2239
+ getCookies = webCommands.getCookies;
2240
+ setCookie = webCommands.setCookie;
2241
+ deleteCookie = webCommands.deleteCookie;
2242
+ deleteCookies = webCommands.deleteCookies;
2243
+ _deleteCookie = webCommands._deleteCookie;
2244
+ cacheWebElement = webCommands.cacheWebElement;
2245
+ cacheWebElements = webCommands.cacheWebElements;
2246
+ executeAtom = webCommands.executeAtom;
2247
+ executeAtomAsync = webCommands.executeAtomAsync;
2248
+ getAtomsElement = webCommands.getAtomsElement;
2249
+ convertElementsForAtoms = webCommands.convertElementsForAtoms;
2250
+ getElementId = webCommands.getElementId;
2251
+ hasElementId = webCommands.hasElementId;
2252
+ findWebElementOrElements = webCommands.findWebElementOrElements;
2253
+ clickWebCoords = webCommands.clickWebCoords;
2254
+ getSafariIsIphone = webCommands.getSafariIsIphone;
2255
+ getSafariDeviceSize = webCommands.getSafariDeviceSize;
2256
+ getSafariIsNotched = webCommands.getSafariIsNotched;
2257
+ getExtraTranslateWebCoordsOffset = webCommands.getExtraTranslateWebCoordsOffset;
2258
+ getExtraNativeWebTapOffset = webCommands.getExtraNativeWebTapOffset;
2259
+ nativeWebTap = webCommands.nativeWebTap;
2260
+ translateWebCoords = webCommands.translateWebCoords;
2261
+ checkForAlert = webCommands.checkForAlert;
2262
+ waitForAtom = webCommands.waitForAtom;
2263
+ mobileWebNav = webCommands.mobileWebNav;
2264
+ getWdaLocalhostRoot = webCommands.getWdaLocalhostRoot;
2265
+ mobileCalibrateWebToRealCoordinatesTranslation = webCommands.mobileCalibrateWebToRealCoordinatesTranslation;
2266
+ mobileUpdateSafariPreferences = webCommands.mobileUpdateSafariPreferences;
2215
2267
 
2216
2268
  /*--------+
2217
2269
  | XCTEST |
2218
2270
  +--------+*/
2219
- mobileRunXCTest = commands.xctestExtensions.mobileRunXCTest;
2220
- mobileInstallXCTestBundle = commands.xctestExtensions.mobileInstallXCTestBundle;
2221
- mobileListXCTestBundles = commands.xctestExtensions.mobileListXCTestBundles;
2222
- mobileListXCTestsInTestBundle = commands.xctestExtensions.mobileListXCTestsInTestBundle;
2271
+ mobileRunXCTest = xctestCommands.mobileRunXCTest;
2272
+ mobileInstallXCTestBundle = xctestCommands.mobileInstallXCTestBundle;
2273
+ mobileListXCTestBundles = xctestCommands.mobileListXCTestBundles;
2274
+ mobileListXCTestsInTestBundle = xctestCommands.mobileListXCTestsInTestBundle;
2223
2275
 
2224
2276
  /*----------------------+
2225
2277
  | XCTEST SCREEN RECORD |
2226
2278
  +---------------------+*/
2227
- mobileStartXctestScreenRecording = commands.xctestRecordScreenExtensions.mobileStartXctestScreenRecording;
2228
- mobileGetXctestScreenRecordingInfo = commands.xctestRecordScreenExtensions.mobileGetXctestScreenRecordingInfo;
2229
- mobileStopXctestScreenRecording = commands.xctestRecordScreenExtensions.mobileStopXctestScreenRecording;
2279
+ mobileStartXctestScreenRecording = xctestRecordScreenCommands.mobileStartXctestScreenRecording;
2280
+ mobileGetXctestScreenRecordingInfo = xctestRecordScreenCommands.mobileGetXctestScreenRecordingInfo;
2281
+ mobileStopXctestScreenRecording = xctestRecordScreenCommands.mobileStopXctestScreenRecording;
2230
2282
  }
2231
2283
 
2232
2284
  export default XCUITestDriver;