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.
- package/CHANGELOG.md +12 -0
- package/build/lib/commands/active-app-info.d.ts +9 -0
- package/build/lib/commands/active-app-info.d.ts.map +1 -0
- package/build/lib/commands/active-app-info.js +14 -0
- package/build/lib/commands/active-app-info.js.map +1 -0
- package/build/lib/commands/alert.d.ts +42 -45
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js +66 -62
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +150 -153
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +300 -286
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/app-strings.d.ts +14 -17
- package/build/lib/commands/app-strings.d.ts.map +1 -1
- package/build/lib/commands/app-strings.js +23 -24
- package/build/lib/commands/app-strings.js.map +1 -1
- package/build/lib/commands/appearance.d.ts +19 -22
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js +56 -56
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/audit.d.ts +22 -17
- package/build/lib/commands/audit.d.ts.map +1 -1
- package/build/lib/commands/audit.js +17 -18
- package/build/lib/commands/audit.js.map +1 -1
- package/build/lib/commands/battery.d.ts +11 -14
- package/build/lib/commands/battery.d.ts.map +1 -1
- package/build/lib/commands/battery.js +36 -37
- package/build/lib/commands/battery.js.map +1 -1
- package/build/lib/commands/biometric.d.ts +30 -33
- package/build/lib/commands/biometric.d.ts.map +1 -1
- package/build/lib/commands/biometric.js +42 -41
- package/build/lib/commands/biometric.js.map +1 -1
- package/build/lib/commands/certificate.d.ts +48 -45
- package/build/lib/commands/certificate.d.ts.map +1 -1
- package/build/lib/commands/certificate.js +218 -205
- package/build/lib/commands/certificate.js.map +1 -1
- package/build/lib/commands/clipboard.d.ts +19 -22
- package/build/lib/commands/clipboard.d.ts.map +1 -1
- package/build/lib/commands/clipboard.js +30 -30
- package/build/lib/commands/clipboard.js.map +1 -1
- package/build/lib/commands/condition.d.ts +49 -26
- package/build/lib/commands/condition.d.ts.map +1 -1
- package/build/lib/commands/condition.js +87 -86
- package/build/lib/commands/condition.js.map +1 -1
- package/build/lib/commands/content-size.d.ts +26 -29
- package/build/lib/commands/content-size.d.ts.map +1 -1
- package/build/lib/commands/content-size.js +36 -36
- package/build/lib/commands/content-size.js.map +1 -1
- package/build/lib/commands/context.d.ts +161 -108
- package/build/lib/commands/context.d.ts.map +1 -1
- package/build/lib/commands/context.js +530 -517
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/deviceInfo.d.ts +9 -12
- package/build/lib/commands/deviceInfo.d.ts.map +1 -1
- package/build/lib/commands/deviceInfo.js +17 -18
- package/build/lib/commands/deviceInfo.js.map +1 -1
- package/build/lib/commands/element.d.ts +102 -105
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +337 -323
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts +24 -19
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +63 -62
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-movement.d.ts +77 -80
- package/build/lib/commands/file-movement.d.ts.map +1 -1
- package/build/lib/commands/file-movement.js +130 -124
- package/build/lib/commands/file-movement.js.map +1 -1
- package/build/lib/commands/find.d.ts +18 -21
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +158 -156
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +124 -116
- package/build/lib/commands/general.d.ts.map +1 -1
- package/build/lib/commands/general.js +248 -232
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +43 -46
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +10 -11
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/gesture.d.ts +273 -276
- package/build/lib/commands/gesture.d.ts.map +1 -1
- package/build/lib/commands/gesture.js +506 -492
- package/build/lib/commands/gesture.js.map +1 -1
- package/build/lib/commands/increase-contrast.d.ts +20 -23
- package/build/lib/commands/increase-contrast.d.ts.map +1 -1
- package/build/lib/commands/increase-contrast.js +30 -30
- package/build/lib/commands/increase-contrast.js.map +1 -1
- package/build/lib/commands/iohid.d.ts +1370 -1373
- package/build/lib/commands/iohid.d.ts.map +1 -1
- package/build/lib/commands/iohid.js +30 -31
- package/build/lib/commands/iohid.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +29 -32
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +53 -51
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/keychains.d.ts +9 -12
- package/build/lib/commands/keychains.d.ts.map +1 -1
- package/build/lib/commands/keychains.js +13 -14
- package/build/lib/commands/keychains.js.map +1 -1
- package/build/lib/commands/localization.d.ts +16 -19
- package/build/lib/commands/localization.d.ts.map +1 -1
- package/build/lib/commands/localization.js +25 -26
- package/build/lib/commands/localization.js.map +1 -1
- package/build/lib/commands/location.d.ts +36 -39
- package/build/lib/commands/location.d.ts.map +1 -1
- package/build/lib/commands/location.js +99 -98
- package/build/lib/commands/location.js.map +1 -1
- package/build/lib/commands/lock.d.ts +21 -24
- package/build/lib/commands/lock.d.ts.map +1 -1
- package/build/lib/commands/lock.js +39 -38
- package/build/lib/commands/lock.js.map +1 -1
- package/build/lib/commands/log.d.ts +43 -37
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +174 -171
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/memory.d.ts +9 -12
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js +37 -39
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/navigation.d.ts +30 -33
- package/build/lib/commands/navigation.d.ts.map +1 -1
- package/build/lib/commands/navigation.js +92 -92
- package/build/lib/commands/navigation.js.map +1 -1
- package/build/lib/commands/notifications.d.ts +26 -29
- package/build/lib/commands/notifications.d.ts.map +1 -1
- package/build/lib/commands/notifications.js +53 -53
- package/build/lib/commands/notifications.js.map +1 -1
- package/build/lib/commands/pasteboard.d.ts +21 -24
- package/build/lib/commands/pasteboard.d.ts.map +1 -1
- package/build/lib/commands/pasteboard.js +37 -37
- package/build/lib/commands/pasteboard.js.map +1 -1
- package/build/lib/commands/pcap.d.ts +39 -26
- package/build/lib/commands/pcap.d.ts.map +1 -1
- package/build/lib/commands/pcap.js +81 -81
- package/build/lib/commands/pcap.js.map +1 -1
- package/build/lib/commands/performance.d.ts +63 -44
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +105 -105
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +33 -36
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +66 -65
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/proxy-helper.d.ts +12 -15
- package/build/lib/commands/proxy-helper.d.ts.map +1 -1
- package/build/lib/commands/proxy-helper.js +53 -54
- package/build/lib/commands/proxy-helper.js.map +1 -1
- package/build/lib/commands/record-audio.d.ts +49 -29
- package/build/lib/commands/record-audio.d.ts.map +1 -1
- package/build/lib/commands/record-audio.js +100 -104
- package/build/lib/commands/record-audio.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +54 -18
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +127 -129
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/screenshots.d.ts +14 -17
- package/build/lib/commands/screenshots.d.ts.map +1 -1
- package/build/lib/commands/screenshots.js +108 -107
- package/build/lib/commands/screenshots.js.map +1 -1
- package/build/lib/commands/simctl.d.ts +11 -14
- package/build/lib/commands/simctl.d.ts.map +1 -1
- package/build/lib/commands/simctl.js +23 -26
- package/build/lib/commands/simctl.js.map +1 -1
- package/build/lib/commands/source.d.ts +14 -17
- package/build/lib/commands/source.d.ts.map +1 -1
- package/build/lib/commands/source.js +40 -43
- package/build/lib/commands/source.js.map +1 -1
- package/build/lib/commands/timeouts.d.ts +44 -33
- package/build/lib/commands/timeouts.d.ts.map +1 -1
- package/build/lib/commands/timeouts.js +65 -63
- package/build/lib/commands/timeouts.js.map +1 -1
- package/build/lib/commands/web.d.ts +247 -197
- package/build/lib/commands/web.d.ts.map +1 -1
- package/build/lib/commands/web.js +815 -786
- package/build/lib/commands/web.js.map +1 -1
- package/build/lib/commands/xctest-record-screen.d.ts +63 -66
- package/build/lib/commands/xctest-record-screen.d.ts.map +1 -1
- package/build/lib/commands/xctest-record-screen.js +103 -102
- package/build/lib/commands/xctest-record-screen.js.map +1 -1
- package/build/lib/commands/xctest.d.ts +55 -51
- package/build/lib/commands/xctest.d.ts.map +1 -1
- package/build/lib/commands/xctest.js +116 -117
- package/build/lib/commands/xctest.js.map +1 -1
- package/build/lib/driver.d.ts +278 -1597
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +320 -236
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/execute-method-map.js +9 -0
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/real-device.d.ts +1 -1
- package/build/lib/real-device.d.ts.map +1 -1
- package/build/lib/real-device.js +2 -2
- package/build/lib/real-device.js.map +1 -1
- package/lib/commands/active-app-info.js +12 -0
- package/lib/commands/alert.js +68 -65
- package/lib/commands/app-management.js +308 -301
- package/lib/commands/app-strings.js +24 -26
- package/lib/commands/appearance.js +54 -56
- package/lib/commands/audit.js +18 -20
- package/lib/commands/battery.js +35 -37
- package/lib/commands/biometric.js +44 -46
- package/lib/commands/certificate.js +226 -215
- package/lib/commands/clipboard.js +30 -32
- package/lib/commands/condition.js +98 -100
- package/lib/commands/content-size.js +36 -38
- package/lib/commands/context.js +495 -490
- package/lib/commands/deviceInfo.js +19 -20
- package/lib/commands/element.js +367 -357
- package/lib/commands/execute.js +72 -72
- package/lib/commands/file-movement.js +132 -134
- package/lib/commands/find.js +160 -159
- package/lib/commands/general.js +238 -231
- package/lib/commands/geolocation.js +6 -14
- package/lib/commands/gesture.js +525 -515
- package/lib/commands/increase-contrast.js +30 -32
- package/lib/commands/iohid.js +32 -34
- package/lib/commands/keyboard.js +49 -51
- package/lib/commands/keychains.js +12 -14
- package/lib/commands/localization.js +24 -26
- package/lib/commands/location.js +102 -104
- package/lib/commands/lock.js +38 -38
- package/lib/commands/log.js +197 -198
- package/lib/commands/memory.js +40 -43
- package/lib/commands/navigation.js +96 -100
- package/lib/commands/notifications.js +57 -59
- package/lib/commands/pasteboard.js +37 -39
- package/lib/commands/pcap.js +84 -86
- package/lib/commands/performance.js +132 -133
- package/lib/commands/permissions.js +67 -69
- package/lib/commands/proxy-helper.js +60 -61
- package/lib/commands/record-audio.js +115 -120
- package/lib/commands/recordscreen.js +145 -149
- package/lib/commands/screenshots.js +116 -116
- package/lib/commands/simctl.js +25 -29
- package/lib/commands/source.js +42 -46
- package/lib/commands/timeouts.js +59 -63
- package/lib/commands/web.js +878 -858
- package/lib/commands/xctest-record-screen.js +103 -105
- package/lib/commands/xctest.js +134 -139
- package/lib/driver.js +288 -236
- package/lib/execute-method-map.ts +9 -0
- package/lib/real-device.js +2 -2
- package/npm-shrinkwrap.json +440 -76
- package/package.json +2 -1
- package/build/lib/commands/activeAppInfo.d.ts +0 -12
- package/build/lib/commands/activeAppInfo.d.ts.map +0 -1
- package/build/lib/commands/activeAppInfo.js +0 -15
- package/build/lib/commands/activeAppInfo.js.map +0 -1
- package/build/lib/commands/index.d.ts +0 -96
- package/build/lib/commands/index.d.ts.map +0 -1
- package/build/lib/commands/index.js +0 -100
- package/build/lib/commands/index.js.map +0 -1
- package/build/lib/real-device-clients/devicectl.d.ts +0 -204
- package/build/lib/real-device-clients/devicectl.d.ts.map +0 -1
- package/build/lib/real-device-clients/devicectl.js +0 -264
- package/build/lib/real-device-clients/devicectl.js.map +0 -1
- package/lib/commands/activeAppInfo.js +0 -14
- package/lib/commands/index.js +0 -95
- 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
|
|
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 =
|
|
1839
|
+
mobileGetActiveAppInfo = activeAppInfoCommands.mobileGetActiveAppInfo;
|
|
1792
1840
|
|
|
1793
1841
|
/*-------+
|
|
1794
1842
|
| ALERT |
|
|
1795
1843
|
+-------+*/
|
|
1796
|
-
getAlertText =
|
|
1797
|
-
setAlertText =
|
|
1798
|
-
postAcceptAlert =
|
|
1799
|
-
postDismissAlert =
|
|
1800
|
-
getAlertButtons =
|
|
1801
|
-
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 =
|
|
1808
|
-
mobileIsAppInstalled =
|
|
1809
|
-
mobileRemoveApp =
|
|
1810
|
-
mobileLaunchApp =
|
|
1811
|
-
mobileTerminateApp =
|
|
1812
|
-
mobileActivateApp =
|
|
1813
|
-
mobileKillApp =
|
|
1814
|
-
mobileQueryAppState =
|
|
1815
|
-
installApp =
|
|
1816
|
-
activateApp =
|
|
1817
|
-
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 =
|
|
1820
|
-
queryAppState =
|
|
1821
|
-
mobileListApps =
|
|
1822
|
-
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 =
|
|
1829
|
-
mobileGetAppearance =
|
|
1876
|
+
mobileSetAppearance = appearanceCommands.mobileSetAppearance;
|
|
1877
|
+
mobileGetAppearance = appearanceCommands.mobileGetAppearance;
|
|
1830
1878
|
|
|
1831
1879
|
/*------------+
|
|
1832
1880
|
| INCREASE CONTRAST |
|
|
1833
1881
|
+------------+*/
|
|
1834
1882
|
|
|
1835
|
-
mobileSetIncreaseContrast =
|
|
1836
|
-
mobileGetIncreaseContrast =
|
|
1883
|
+
mobileSetIncreaseContrast = increaseContrastCommands.mobileSetIncreaseContrast;
|
|
1884
|
+
mobileGetIncreaseContrast = increaseContrastCommands.mobileGetIncreaseContrast;
|
|
1837
1885
|
|
|
1838
1886
|
/*------------+
|
|
1839
1887
|
| CONTENT SIZE |
|
|
1840
1888
|
+------------+*/
|
|
1841
1889
|
|
|
1842
|
-
mobileSetContentSize =
|
|
1843
|
-
mobileGetContentSize =
|
|
1890
|
+
mobileSetContentSize = contentSizeCommands.mobileSetContentSize;
|
|
1891
|
+
mobileGetContentSize = contentSizeCommands.mobileGetContentSize;
|
|
1844
1892
|
|
|
1845
1893
|
/*------------+
|
|
1846
1894
|
| AUDIT |
|
|
1847
1895
|
+------------+*/
|
|
1848
1896
|
|
|
1849
|
-
mobilePerformAccessibilityAudit =
|
|
1897
|
+
mobilePerformAccessibilityAudit = auditCommands.mobilePerformAccessibilityAudit;
|
|
1850
1898
|
|
|
1851
1899
|
/*---------+
|
|
1852
1900
|
| BATTERY |
|
|
1853
1901
|
+---------+*/
|
|
1854
|
-
mobileGetBatteryInfo =
|
|
1902
|
+
mobileGetBatteryInfo = batteryCommands.mobileGetBatteryInfo;
|
|
1855
1903
|
|
|
1856
1904
|
/*-----------+
|
|
1857
1905
|
| BIOMETRIC |
|
|
1858
1906
|
+-----------+*/
|
|
1859
1907
|
|
|
1860
|
-
mobileEnrollBiometric =
|
|
1861
|
-
mobileSendBiometricMatch =
|
|
1862
|
-
mobileIsBiometricEnrolled =
|
|
1908
|
+
mobileEnrollBiometric = biometricCommands.mobileEnrollBiometric;
|
|
1909
|
+
mobileSendBiometricMatch = biometricCommands.mobileSendBiometricMatch;
|
|
1910
|
+
mobileIsBiometricEnrolled = biometricCommands.mobileIsBiometricEnrolled;
|
|
1863
1911
|
|
|
1864
1912
|
/*-------------+
|
|
1865
1913
|
| CERTIFICATE |
|
|
1866
1914
|
+-------------+*/
|
|
1867
|
-
mobileInstallCertificate =
|
|
1868
|
-
mobileListCertificates =
|
|
1869
|
-
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 =
|
|
1876
|
-
getClipboard =
|
|
1923
|
+
setClipboard = clipboardCommands.setClipboard;
|
|
1924
|
+
getClipboard = clipboardCommands.getClipboard;
|
|
1877
1925
|
|
|
1878
1926
|
/*-----------+
|
|
1879
1927
|
| CONDITION |
|
|
1880
1928
|
+-----------+*/
|
|
1881
1929
|
|
|
1882
|
-
listConditionInducers =
|
|
1883
|
-
enableConditionInducer =
|
|
1884
|
-
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 =
|
|
1891
|
-
getCurrentContext =
|
|
1938
|
+
getContexts = contextCommands.getContexts;
|
|
1939
|
+
getCurrentContext = contextCommands.getCurrentContext;
|
|
1892
1940
|
// @ts-ignore This is OK
|
|
1893
|
-
getWindowHandle =
|
|
1894
|
-
getWindowHandles =
|
|
1895
|
-
|
|
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 =
|
|
1898
|
-
activateRecentWebview =
|
|
1899
|
-
connectToRemoteDebugger =
|
|
1900
|
-
getContextsAndViews =
|
|
1901
|
-
listWebFrames =
|
|
1902
|
-
mobileGetContexts =
|
|
1903
|
-
onPageChange =
|
|
1904
|
-
useNewSafari =
|
|
1905
|
-
getCurrentUrl =
|
|
1906
|
-
getNewRemoteDebugger =
|
|
1907
|
-
getRecentWebviewContextId =
|
|
1908
|
-
isWebContext =
|
|
1909
|
-
isWebview =
|
|
1910
|
-
setCurrentUrl =
|
|
1911
|
-
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 =
|
|
1966
|
+
mobileGetDeviceInfo = deviceInfoCommands.mobileGetDeviceInfo;
|
|
1918
1967
|
|
|
1919
1968
|
/*---------+
|
|
1920
1969
|
| ELEMENT |
|
|
1921
1970
|
+---------+*/
|
|
1922
1971
|
|
|
1923
|
-
elementDisplayed =
|
|
1924
|
-
elementEnabled =
|
|
1925
|
-
elementSelected =
|
|
1926
|
-
getName =
|
|
1927
|
-
getNativeAttribute =
|
|
1928
|
-
getAttribute =
|
|
1929
|
-
getProperty =
|
|
1930
|
-
getText =
|
|
1931
|
-
getElementRect =
|
|
1932
|
-
getLocation =
|
|
1933
|
-
getLocationInView =
|
|
1934
|
-
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 =
|
|
1937
|
-
setValue =
|
|
1938
|
-
setValueWithWebAtom =
|
|
1939
|
-
keys =
|
|
1940
|
-
clear =
|
|
1941
|
-
getContentSize =
|
|
1942
|
-
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 =
|
|
1949
|
-
execute =
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
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 =
|
|
1959
|
-
mobilePushFile =
|
|
1960
|
-
pullFile =
|
|
1961
|
-
mobilePullFile =
|
|
1962
|
-
mobileDeleteFolder =
|
|
1963
|
-
mobileDeleteFile =
|
|
1964
|
-
pullFolder =
|
|
1965
|
-
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 =
|
|
2021
|
+
mobileSendMemoryWarning = memoryCommands.mobileSendMemoryWarning;
|
|
1972
2022
|
|
|
1973
2023
|
/*------+
|
|
1974
2024
|
| FIND |
|
|
1975
2025
|
+------+*/
|
|
1976
2026
|
|
|
1977
|
-
findElOrEls =
|
|
1978
|
-
findNativeElementOrElements =
|
|
1979
|
-
doNativeFind =
|
|
1980
|
-
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 =
|
|
1987
|
-
background =
|
|
1988
|
-
touchId =
|
|
1989
|
-
toggleEnrollTouchId =
|
|
1990
|
-
getWindowSize =
|
|
1991
|
-
getDeviceTime =
|
|
1992
|
-
mobileGetDeviceTime =
|
|
1993
|
-
getWindowRect =
|
|
1994
|
-
getStrings =
|
|
1995
|
-
removeApp =
|
|
1996
|
-
launchApp =
|
|
1997
|
-
closeApp =
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
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 =
|
|
2010
|
-
mobileSetSimulatedLocation =
|
|
2011
|
-
mobileResetSimulatedLocation =
|
|
2060
|
+
mobileGetSimulatedLocation = geolocationCommands.mobileGetSimulatedLocation;
|
|
2061
|
+
mobileSetSimulatedLocation = geolocationCommands.mobileSetSimulatedLocation;
|
|
2062
|
+
mobileResetSimulatedLocation = geolocationCommands.mobileResetSimulatedLocation;
|
|
2012
2063
|
|
|
2013
2064
|
/*---------+
|
|
2014
2065
|
| GESTURE |
|
|
2015
2066
|
+---------+*/
|
|
2016
|
-
mobileShake =
|
|
2017
|
-
click =
|
|
2018
|
-
releaseActions =
|
|
2019
|
-
performActions =
|
|
2020
|
-
nativeClick =
|
|
2021
|
-
mobileScrollToElement =
|
|
2022
|
-
mobileScroll =
|
|
2023
|
-
mobileSwipe =
|
|
2024
|
-
mobilePinch =
|
|
2025
|
-
mobileDoubleTap =
|
|
2026
|
-
mobileTwoFingerTap =
|
|
2027
|
-
mobileTouchAndHold =
|
|
2028
|
-
mobileTap =
|
|
2029
|
-
mobileDragFromToForDuration =
|
|
2030
|
-
mobileDragFromToWithVelocity =
|
|
2031
|
-
mobileTapWithNumberOfTaps =
|
|
2032
|
-
mobileForcePress =
|
|
2033
|
-
mobileSelectPickerWheelValue =
|
|
2034
|
-
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 =
|
|
2090
|
+
mobilePerformIoHidEvent = iohidCommands.mobilePerformIoHidEvent;
|
|
2040
2091
|
|
|
2041
2092
|
/*-----------+
|
|
2042
2093
|
| KEYCHAINS |
|
|
2043
2094
|
+-----------+*/
|
|
2044
2095
|
|
|
2045
|
-
mobileClearKeychains =
|
|
2096
|
+
mobileClearKeychains = keychainsCommands.mobileClearKeychains;
|
|
2046
2097
|
|
|
2047
2098
|
/*----------+
|
|
2048
2099
|
| KEYBOARD |
|
|
2049
2100
|
+----------+*/
|
|
2050
2101
|
|
|
2051
|
-
hideKeyboard =
|
|
2052
|
-
mobileHideKeyboard =
|
|
2053
|
-
isKeyboardShown =
|
|
2054
|
-
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 =
|
|
2111
|
+
mobileConfigureLocalization = localizationCommands.mobileConfigureLocalization;
|
|
2061
2112
|
|
|
2062
2113
|
/*----------+
|
|
2063
2114
|
| LOCATION |
|
|
2064
2115
|
+----------+*/
|
|
2065
2116
|
|
|
2066
|
-
getGeoLocation =
|
|
2067
|
-
setGeoLocation =
|
|
2068
|
-
mobileResetLocationService =
|
|
2117
|
+
getGeoLocation = locationCommands.getGeoLocation;
|
|
2118
|
+
setGeoLocation = locationCommands.setGeoLocation;
|
|
2119
|
+
mobileResetLocationService = locationCommands.mobileResetLocationService;
|
|
2069
2120
|
|
|
2070
2121
|
/*------+
|
|
2071
2122
|
| LOCK |
|
|
2072
2123
|
+------+*/
|
|
2073
|
-
lock =
|
|
2074
|
-
unlock =
|
|
2075
|
-
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 =
|
|
2082
|
-
supportedLogTypes =
|
|
2083
|
-
startLogCapture =
|
|
2084
|
-
mobileStartLogsBroadcast =
|
|
2085
|
-
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 =
|
|
2092
|
-
forward =
|
|
2093
|
-
closeWindow =
|
|
2094
|
-
nativeBack =
|
|
2095
|
-
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 =
|
|
2102
|
-
mobileExpectNotification =
|
|
2152
|
+
mobilePushNotification = notificationsCommands.mobilePushNotification;
|
|
2153
|
+
mobileExpectNotification = notificationsCommands.mobileExpectNotification;
|
|
2103
2154
|
|
|
2104
2155
|
/*------------+
|
|
2105
2156
|
| PASTEBOARD |
|
|
2106
2157
|
+------------+*/
|
|
2107
2158
|
|
|
2108
|
-
mobileSetPasteboard =
|
|
2109
|
-
mobileGetPasteboard =
|
|
2159
|
+
mobileSetPasteboard = pasteboardCommands.mobileSetPasteboard;
|
|
2160
|
+
mobileGetPasteboard = pasteboardCommands.mobileGetPasteboard;
|
|
2110
2161
|
|
|
2111
2162
|
/*------+
|
|
2112
2163
|
| PCAP |
|
|
2113
2164
|
+------+*/
|
|
2114
2165
|
|
|
2115
|
-
mobileStartPcap =
|
|
2116
|
-
mobileStopPcap =
|
|
2166
|
+
mobileStartPcap = pcapCommands.mobileStartPcap;
|
|
2167
|
+
mobileStopPcap = pcapCommands.mobileStopPcap;
|
|
2117
2168
|
|
|
2118
2169
|
/*-------------+
|
|
2119
2170
|
| PERFORMANCE |
|
|
2120
2171
|
+-------------+*/
|
|
2121
|
-
mobileStartPerfRecord =
|
|
2122
|
-
mobileStopPerfRecord =
|
|
2172
|
+
mobileStartPerfRecord = performanceCommands.mobileStartPerfRecord;
|
|
2173
|
+
mobileStopPerfRecord = performanceCommands.mobileStopPerfRecord;
|
|
2123
2174
|
|
|
2124
2175
|
/*-------------+
|
|
2125
2176
|
| PERMISSIONS |
|
|
2126
2177
|
+-------------+*/
|
|
2127
2178
|
|
|
2128
|
-
mobileResetPermission =
|
|
2129
|
-
mobileGetPermission =
|
|
2130
|
-
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 =
|
|
2187
|
+
proxyCommand = proxyHelperCommands.proxyCommand;
|
|
2137
2188
|
|
|
2138
2189
|
/*-------------+
|
|
2139
2190
|
| RECORDAUDIO |
|
|
2140
2191
|
+-------------+*/
|
|
2141
2192
|
|
|
2142
|
-
startAudioRecording =
|
|
2143
|
-
stopAudioRecording =
|
|
2193
|
+
startAudioRecording = recordAudioCommands.startAudioRecording;
|
|
2194
|
+
stopAudioRecording = recordAudioCommands.stopAudioRecording;
|
|
2144
2195
|
|
|
2145
2196
|
/*--------------+
|
|
2146
2197
|
| RECORDSCREEN |
|
|
2147
2198
|
+--------------+*/
|
|
2148
2199
|
|
|
2149
|
-
_recentScreenRecorder
|
|
2150
|
-
startRecordingScreen =
|
|
2151
|
-
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 =
|
|
2157
|
-
getElementScreenshot =
|
|
2158
|
-
getViewportScreenshot =
|
|
2207
|
+
getScreenshot = screenshotCommands.getScreenshot;
|
|
2208
|
+
getElementScreenshot = screenshotCommands.getElementScreenshot;
|
|
2209
|
+
getViewportScreenshot = screenshotCommands.getViewportScreenshot;
|
|
2159
2210
|
|
|
2160
2211
|
/*--------+
|
|
2161
2212
|
| SOURCE |
|
|
2162
2213
|
+--------+*/
|
|
2163
|
-
getPageSource =
|
|
2164
|
-
mobileGetSource =
|
|
2214
|
+
getPageSource = sourceCommands.getPageSource;
|
|
2215
|
+
mobileGetSource = sourceCommands.mobileGetSource;
|
|
2165
2216
|
|
|
2166
2217
|
/*----------+
|
|
2167
2218
|
| TIMEOUTS |
|
|
2168
2219
|
+----------+*/
|
|
2169
2220
|
|
|
2170
|
-
pageLoadTimeoutW3C =
|
|
2171
|
-
pageLoadTimeoutMJSONWP =
|
|
2172
|
-
scriptTimeoutW3C =
|
|
2173
|
-
scriptTimeoutMJSONWP =
|
|
2174
|
-
asyncScriptTimeout =
|
|
2175
|
-
setPageLoadTimeout =
|
|
2176
|
-
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
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
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 =
|
|
2220
|
-
mobileInstallXCTestBundle =
|
|
2221
|
-
mobileListXCTestBundles =
|
|
2222
|
-
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 =
|
|
2228
|
-
mobileGetXctestScreenRecordingInfo =
|
|
2229
|
-
mobileStopXctestScreenRecording =
|
|
2279
|
+
mobileStartXctestScreenRecording = xctestRecordScreenCommands.mobileStartXctestScreenRecording;
|
|
2280
|
+
mobileGetXctestScreenRecordingInfo = xctestRecordScreenCommands.mobileGetXctestScreenRecordingInfo;
|
|
2281
|
+
mobileStopXctestScreenRecording = xctestRecordScreenCommands.mobileStopXctestScreenRecording;
|
|
2230
2282
|
}
|
|
2231
2283
|
|
|
2232
2284
|
export default XCUITestDriver;
|