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