appium-xcuitest-driver 4.32.9 → 4.32.11
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 +19 -0
- package/build/lib/commands/performance.d.ts +1 -1
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/device-log/rotating-log.d.ts +1 -1
- package/build/lib/device-log/rotating-log.d.ts.map +1 -1
- package/build/lib/driver.d.ts +17 -45
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +10 -25
- package/build/lib/driver.js.map +1 -1
- package/build/lib/logger.d.ts +1 -1
- package/build/lib/logger.d.ts.map +1 -1
- package/build/lib/simulator-management.d.ts +28 -6
- package/build/lib/simulator-management.d.ts.map +1 -1
- package/build/lib/simulator-management.js +56 -33
- package/build/lib/simulator-management.js.map +1 -1
- package/build/lib/utils.d.ts +15 -0
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +23 -1
- package/build/lib/utils.js.map +1 -1
- package/lib/driver.js +15 -35
- package/lib/simulator-management.js +70 -35
- package/lib/utils.js +22 -0
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## [4.32.11](https://github.com/appium/appium-xcuitest-driver/compare/v4.32.10...v4.32.11) (2023-07-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Reverts
|
|
5
|
+
|
|
6
|
+
* Revert "chore(workflows): pin dependencies (#1773)" (#1794) ([abb6de9](https://github.com/appium/appium-xcuitest-driver/commit/abb6de9e135cdc66878f61665ff9d2290e070666)), closes [#1773](https://github.com/appium/appium-xcuitest-driver/issues/1773) [#1794](https://github.com/appium/appium-xcuitest-driver/issues/1794)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* Tune temporary simulator creation logic ([#1790](https://github.com/appium/appium-xcuitest-driver/issues/1790)) ([9ac2f6a](https://github.com/appium/appium-xcuitest-driver/commit/9ac2f6a52348230f7d4c425722a4ef07c8ac4043))
|
|
12
|
+
|
|
13
|
+
## [4.32.10](https://github.com/appium/appium-xcuitest-driver/compare/v4.32.9...v4.32.10) (2023-06-27)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **deps:** update dependency css-selector-parser to v2.3.2 ([77dbcee](https://github.com/appium/appium-xcuitest-driver/commit/77dbceefbc10f44ab5bc0e9a50f5aa3c781064d4))
|
|
19
|
+
|
|
1
20
|
## [4.32.9](https://github.com/appium/appium-xcuitest-driver/compare/v4.32.8...v4.32.9) (2023-06-24)
|
|
2
21
|
|
|
3
22
|
|
|
@@ -8,7 +8,7 @@ export class PerfRecorder {
|
|
|
8
8
|
_reportPath: string;
|
|
9
9
|
_pid: any;
|
|
10
10
|
_udid: any;
|
|
11
|
-
_logger: import("@appium/types").AppiumLogger;
|
|
11
|
+
_logger: import("@appium/support/node_modules/@appium/types").AppiumLogger;
|
|
12
12
|
_archivePromise: Promise<string> | null;
|
|
13
13
|
get profileName(): any;
|
|
14
14
|
getOriginalReportPath(): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performance.d.ts","sourceRoot":"","sources":["../../../lib/commands/performance.js"],"names":[],"mappings":"AAuDA;IAGE,mDAeC;IAjBD,qDAAqD;IACrD,UADW,OAAO,cAAc,EAAE,UAAU,GAAC,IAAI,CACxC;IAGP,0BAA2B;IAC3B,cAAoF;IACpF,kBAA4D;IAC5D,oBAGC;IACD,UAAoB;IACpB,WAAiB;IACjB,
|
|
1
|
+
{"version":3,"file":"performance.d.ts","sourceRoot":"","sources":["../../../lib/commands/performance.js"],"names":[],"mappings":"AAuDA;IAGE,mDAeC;IAjBD,qDAAqD;IACrD,UADW,OAAO,cAAc,EAAE,UAAU,GAAC,IAAI,CACxC;IAGP,0BAA2B;IAC3B,cAAoF;IACpF,kBAA4D;IAC5D,oBAGC;IACD,UAAoB;IACpB,WAAiB;IACjB,2EAEC;IACD,wCAA2B;IAG7B,uBAEC;IAED,yCAEC;IAED,uCAsBC;IAED,qBAEC;IAED,uCA+BC;IAED,uBAmGC;IAED,uCAkBC;CACF;;IAGC;;;;;;;;;;;;;;;;;OAiBG;IACH,+JA2CC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,2XAiDC;;;6BAIU,OAAO,WAAW,EAAE,cAAc"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default RotatingLog;
|
|
2
2
|
export class RotatingLog {
|
|
3
3
|
constructor(showLogs?: boolean, label?: string);
|
|
4
|
-
log: import("@appium/types").AppiumLogger;
|
|
4
|
+
log: import("@appium/support/node_modules/@appium/types").AppiumLogger;
|
|
5
5
|
showLogs: boolean;
|
|
6
6
|
set logs(arg: any);
|
|
7
7
|
get logs(): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rotating-log.d.ts","sourceRoot":"","sources":["../../../lib/device-log/rotating-log.js"],"names":[],"mappings":";AAMA;IACE,gDAQC;IAPC,
|
|
1
|
+
{"version":3,"file":"rotating-log.d.ts","sourceRoot":"","sources":["../../../lib/device-log/rotating-log.js"],"names":[],"mappings":";AAMA;IACE,gDAQC;IAPC,uEAAkC;IAElC,kBAAwB;IA6C1B,mBAEC;IATD,gBAKC;IAzCC,+BAA+B;IAE/B,qBAAwB;IAG1B,8BAEC;IAED,6BAEC;IAED;;OAEG;IACH,mBAEC;IAED,wBAUC;IAED,2BAEC;IAUC,WAAiB;CAEpB;AAtDD,0CAAoC"}
|
package/build/lib/driver.d.ts
CHANGED
|
@@ -193,7 +193,6 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
193
193
|
readonly simulatorDevicesSetPath: {
|
|
194
194
|
readonly isString: true;
|
|
195
195
|
};
|
|
196
|
-
/** @type {import('@appium/types').RouteMatcher[]} */
|
|
197
196
|
readonly calendarAccessAuthorized: {
|
|
198
197
|
readonly isBoolean: true;
|
|
199
198
|
};
|
|
@@ -277,7 +276,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
277
276
|
};
|
|
278
277
|
readonly mjpegScreenshotUrl: {
|
|
279
278
|
readonly isString: true;
|
|
280
|
-
};
|
|
279
|
+
}; /** @type {import('@appium/types').RouteMatcher[]} */
|
|
281
280
|
readonly permissions: {
|
|
282
281
|
readonly isString: true;
|
|
283
282
|
};
|
|
@@ -304,12 +303,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
304
303
|
readonly isNumber: true;
|
|
305
304
|
};
|
|
306
305
|
readonly nativeWebTapStrict: {
|
|
307
|
-
readonly isBoolean: true;
|
|
308
|
-
* @implements {ExternalDriver<XCUITestDriverConstraints, FullContext|string>}
|
|
309
|
-
* @extends {BaseDriver<XCUITestDriverConstraints>}
|
|
310
|
-
* @privateRemarks **This class should be considered "final"**. It cannot be extended
|
|
311
|
-
* due to use of public class field assignments. If extending this class becomes a hard requirement, refer to the implementation of `BaseDriver` on how to do so.
|
|
312
|
-
*/
|
|
306
|
+
readonly isBoolean: true;
|
|
313
307
|
};
|
|
314
308
|
readonly safariWebInspectorMaxFrameLength: {
|
|
315
309
|
readonly isNumber: true;
|
|
@@ -337,7 +331,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
337
331
|
};
|
|
338
332
|
readonly shouldTerminateApp: {
|
|
339
333
|
readonly isBoolean: true;
|
|
340
|
-
};
|
|
334
|
+
}; /** @type {string|null|undefined} */
|
|
341
335
|
readonly forceAppLaunch: {
|
|
342
336
|
readonly isBoolean: true;
|
|
343
337
|
};
|
|
@@ -348,9 +342,6 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
348
342
|
readonly isString: true;
|
|
349
343
|
readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
|
|
350
344
|
};
|
|
351
|
-
/**
|
|
352
|
-
* @type {import('@appium/types').Position|null}
|
|
353
|
-
*/
|
|
354
345
|
readonly enforceAppInstall: {
|
|
355
346
|
readonly isBoolean: true;
|
|
356
347
|
};
|
|
@@ -744,6 +735,12 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
744
735
|
};
|
|
745
736
|
readonly 'mobile: activateApp': {
|
|
746
737
|
readonly command: "mobileActivateApp";
|
|
738
|
+
/**
|
|
739
|
+
* @implements {ExternalDriver<XCUITestDriverConstraints, FullContext|string>}
|
|
740
|
+
* @extends {BaseDriver<XCUITestDriverConstraints>}
|
|
741
|
+
* @privateRemarks **This class should be considered "final"**. It cannot be extended
|
|
742
|
+
* due to use of public class field assignments. If extending this class becomes a hard requirement, refer to the implementation of `BaseDriver` on how to do so.
|
|
743
|
+
*/
|
|
747
744
|
readonly params: {
|
|
748
745
|
readonly required: readonly ["bundleId"];
|
|
749
746
|
};
|
|
@@ -771,14 +768,9 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
771
768
|
readonly params: {
|
|
772
769
|
readonly optional: readonly ["remotePath", "user", "pass", "method", "profileName", "headers", "fileFieldName", "formFields"];
|
|
773
770
|
};
|
|
774
|
-
};
|
|
775
|
-
* @type {import('@appium/types').Position|null}
|
|
776
|
-
*/
|
|
771
|
+
};
|
|
777
772
|
readonly 'mobile: installCertificate': {
|
|
778
773
|
readonly command: "mobileInstallCertificate";
|
|
779
|
-
/**
|
|
780
|
-
* @type {import('@appium/types').Position|null}
|
|
781
|
-
*/
|
|
782
774
|
readonly params: {
|
|
783
775
|
readonly required: readonly ["content"];
|
|
784
776
|
readonly optional: readonly ["commonName", "isRoot"];
|
|
@@ -809,7 +801,6 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
809
801
|
};
|
|
810
802
|
};
|
|
811
803
|
readonly 'mobile: deviceInfo': {
|
|
812
|
-
/** @type {boolean|undefined} */
|
|
813
804
|
readonly command: "mobileGetDeviceInfo";
|
|
814
805
|
};
|
|
815
806
|
readonly 'mobile: getDeviceTime': {
|
|
@@ -1034,7 +1025,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1034
1025
|
readonly command: "lock";
|
|
1035
1026
|
readonly params: {
|
|
1036
1027
|
readonly optional: readonly ["seconds"];
|
|
1037
|
-
};
|
|
1028
|
+
}; /** @type {import('./types').WDASettings} */
|
|
1038
1029
|
};
|
|
1039
1030
|
readonly 'mobile: unlock': {
|
|
1040
1031
|
readonly command: "unlock";
|
|
@@ -1331,7 +1322,6 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1331
1322
|
readonly simulatorDevicesSetPath: {
|
|
1332
1323
|
readonly isString: true;
|
|
1333
1324
|
};
|
|
1334
|
-
/** @type {import('@appium/types').RouteMatcher[]} */
|
|
1335
1325
|
readonly calendarAccessAuthorized: {
|
|
1336
1326
|
readonly isBoolean: true;
|
|
1337
1327
|
};
|
|
@@ -1415,7 +1405,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1415
1405
|
};
|
|
1416
1406
|
readonly mjpegScreenshotUrl: {
|
|
1417
1407
|
readonly isString: true;
|
|
1418
|
-
};
|
|
1408
|
+
}; /** @type {import('@appium/types').RouteMatcher[]} */
|
|
1419
1409
|
readonly permissions: {
|
|
1420
1410
|
readonly isString: true;
|
|
1421
1411
|
};
|
|
@@ -1442,12 +1432,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1442
1432
|
readonly isNumber: true;
|
|
1443
1433
|
};
|
|
1444
1434
|
readonly nativeWebTapStrict: {
|
|
1445
|
-
readonly isBoolean: true;
|
|
1446
|
-
* @implements {ExternalDriver<XCUITestDriverConstraints, FullContext|string>}
|
|
1447
|
-
* @extends {BaseDriver<XCUITestDriverConstraints>}
|
|
1448
|
-
* @privateRemarks **This class should be considered "final"**. It cannot be extended
|
|
1449
|
-
* due to use of public class field assignments. If extending this class becomes a hard requirement, refer to the implementation of `BaseDriver` on how to do so.
|
|
1450
|
-
*/
|
|
1435
|
+
readonly isBoolean: true;
|
|
1451
1436
|
};
|
|
1452
1437
|
readonly safariWebInspectorMaxFrameLength: {
|
|
1453
1438
|
readonly isNumber: true;
|
|
@@ -1475,7 +1460,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1475
1460
|
};
|
|
1476
1461
|
readonly shouldTerminateApp: {
|
|
1477
1462
|
readonly isBoolean: true;
|
|
1478
|
-
};
|
|
1463
|
+
}; /** @type {string|null|undefined} */
|
|
1479
1464
|
readonly forceAppLaunch: {
|
|
1480
1465
|
readonly isBoolean: true;
|
|
1481
1466
|
};
|
|
@@ -1486,9 +1471,6 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1486
1471
|
readonly isString: true;
|
|
1487
1472
|
readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
|
|
1488
1473
|
};
|
|
1489
|
-
/**
|
|
1490
|
-
* @type {import('@appium/types').Position|null}
|
|
1491
|
-
*/
|
|
1492
1474
|
readonly enforceAppInstall: {
|
|
1493
1475
|
readonly isBoolean: true;
|
|
1494
1476
|
};
|
|
@@ -1556,7 +1538,6 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1556
1538
|
*/
|
|
1557
1539
|
isRealDevice(): boolean;
|
|
1558
1540
|
isSimulator(): boolean;
|
|
1559
|
-
isTvOS(): boolean;
|
|
1560
1541
|
validateLocatorStrategy(strategy: any): void;
|
|
1561
1542
|
checkAutInstallationState(): Promise<{
|
|
1562
1543
|
install: boolean;
|
|
@@ -1808,7 +1789,6 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1808
1789
|
readonly simulatorDevicesSetPath: {
|
|
1809
1790
|
readonly isString: true;
|
|
1810
1791
|
};
|
|
1811
|
-
/** @type {import('@appium/types').RouteMatcher[]} */
|
|
1812
1792
|
readonly calendarAccessAuthorized: {
|
|
1813
1793
|
readonly isBoolean: true;
|
|
1814
1794
|
};
|
|
@@ -1892,7 +1872,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1892
1872
|
};
|
|
1893
1873
|
readonly mjpegScreenshotUrl: {
|
|
1894
1874
|
readonly isString: true;
|
|
1895
|
-
};
|
|
1875
|
+
}; /** @type {import('@appium/types').RouteMatcher[]} */
|
|
1896
1876
|
readonly permissions: {
|
|
1897
1877
|
readonly isString: true;
|
|
1898
1878
|
};
|
|
@@ -1919,12 +1899,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1919
1899
|
readonly isNumber: true;
|
|
1920
1900
|
};
|
|
1921
1901
|
readonly nativeWebTapStrict: {
|
|
1922
|
-
readonly isBoolean: true;
|
|
1923
|
-
* @implements {ExternalDriver<XCUITestDriverConstraints, FullContext|string>}
|
|
1924
|
-
* @extends {BaseDriver<XCUITestDriverConstraints>}
|
|
1925
|
-
* @privateRemarks **This class should be considered "final"**. It cannot be extended
|
|
1926
|
-
* due to use of public class field assignments. If extending this class becomes a hard requirement, refer to the implementation of `BaseDriver` on how to do so.
|
|
1927
|
-
*/
|
|
1902
|
+
readonly isBoolean: true;
|
|
1928
1903
|
};
|
|
1929
1904
|
readonly safariWebInspectorMaxFrameLength: {
|
|
1930
1905
|
readonly isNumber: true;
|
|
@@ -1952,7 +1927,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1952
1927
|
};
|
|
1953
1928
|
readonly shouldTerminateApp: {
|
|
1954
1929
|
readonly isBoolean: true;
|
|
1955
|
-
};
|
|
1930
|
+
}; /** @type {string|null|undefined} */
|
|
1956
1931
|
readonly forceAppLaunch: {
|
|
1957
1932
|
readonly isBoolean: true;
|
|
1958
1933
|
};
|
|
@@ -1963,9 +1938,6 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1963
1938
|
readonly isString: true;
|
|
1964
1939
|
readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
|
|
1965
1940
|
};
|
|
1966
|
-
/**
|
|
1967
|
-
* @type {import('@appium/types').Position|null}
|
|
1968
|
-
*/
|
|
1969
1941
|
readonly enforceAppInstall: {
|
|
1970
1942
|
readonly isBoolean: true;
|
|
1971
1943
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceR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nD;;;mBAA+D;IAC/D,0DAAqD;IACrD,2EAAiD;IACjD,uEAAmD;IACnD,+HAAqF;IACrF,kEAAiD;IAKjD,oTAA4D;IAC5D,sFAAgF;IAChF,qEAA4E;IAC5E,2FAAwF;CACzF"}
|
package/build/lib/driver.js
CHANGED
|
@@ -1104,14 +1104,11 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1104
1104
|
}));
|
|
1105
1105
|
}
|
|
1106
1106
|
// @ts-expect-error - do not assign arbitrary properties to `this.opts`
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
// @ts-expect-error - do not assign arbitrary properties to `this.opts`
|
|
1113
|
-
await this.opts.device.delete();
|
|
1114
|
-
}
|
|
1107
|
+
const simulatorDevice = this.isSimulator() ? this.opts.device : null;
|
|
1108
|
+
if (simulatorDevice && this.lifecycleData.createSim) {
|
|
1109
|
+
this.log.debug(`Deleting simulator created for this run (udid: '${simulatorDevice.udid}')`);
|
|
1110
|
+
await (0, simulator_management_1.shutdownSimulator)(simulatorDevice);
|
|
1111
|
+
await simulatorDevice.delete();
|
|
1115
1112
|
}
|
|
1116
1113
|
const shouldResetLocationServivce = this.isRealDevice() && !!this.opts.resetLocationService;
|
|
1117
1114
|
if (shouldResetLocationServivce) {
|
|
@@ -1310,27 +1307,21 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1310
1307
|
}
|
|
1311
1308
|
};
|
|
1312
1309
|
if (this.opts.udid) {
|
|
1313
|
-
if (this.opts.udid.toLowerCase() ===
|
|
1310
|
+
if (this.opts.udid.toLowerCase() === utils_1.UDID_AUTO) {
|
|
1314
1311
|
try {
|
|
1315
1312
|
this.opts.udid = await (0, utils_1.detectUdid)();
|
|
1316
1313
|
}
|
|
1317
1314
|
catch (err) {
|
|
1318
1315
|
// Trying to find matching UDID for Simulator
|
|
1319
1316
|
this.log.warn(`Cannot detect any connected real devices. Falling back to Simulator. Original error: ${err.message}`);
|
|
1317
|
+
await setupVersionCaps();
|
|
1320
1318
|
// @ts-expect-error - do not assign arbitrary properties to `this.opts`
|
|
1321
1319
|
const device = await (0, simulator_management_1.getExistingSim)(this.opts);
|
|
1322
1320
|
if (!device) {
|
|
1323
1321
|
// No matching Simulator is found. Throw an error
|
|
1324
1322
|
this.log.errorAndThrow(`Cannot detect udid for ${this.opts.deviceName} Simulator running iOS ${this.opts.platformVersion}`);
|
|
1325
1323
|
}
|
|
1326
|
-
// Matching Simulator exists and is found. Use it
|
|
1327
1324
|
this.opts.udid = device.udid;
|
|
1328
|
-
const devicePlatform = (0, utils_1.normalizePlatformVersion)(await device.getPlatformVersion());
|
|
1329
|
-
if (this.opts.platformVersion !== devicePlatform) {
|
|
1330
|
-
this.opts.platformVersion = devicePlatform;
|
|
1331
|
-
this.log.info(`Set platformVersion to '${devicePlatform}' to match the device with given UDID`);
|
|
1332
|
-
}
|
|
1333
|
-
await setupVersionCaps();
|
|
1334
1325
|
return { device, realDevice: false, udid: device.udid };
|
|
1335
1326
|
}
|
|
1336
1327
|
}
|
|
@@ -1352,7 +1343,7 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1352
1343
|
}
|
|
1353
1344
|
}
|
|
1354
1345
|
}
|
|
1355
|
-
const device =
|
|
1346
|
+
const device = (0, real_device_management_1.getRealDeviceObj)(this.opts.udid);
|
|
1356
1347
|
return { device, realDevice: true, udid: this.opts.udid };
|
|
1357
1348
|
}
|
|
1358
1349
|
// Now we know for sure the device will be a Simulator
|
|
@@ -1368,7 +1359,6 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1368
1359
|
if (device) {
|
|
1369
1360
|
return { device, realDevice: false, udid: device.udid };
|
|
1370
1361
|
}
|
|
1371
|
-
this.log.info('Simulator udid not provided');
|
|
1372
1362
|
}
|
|
1373
1363
|
// no device of this type exists, or they request new sim, so create one
|
|
1374
1364
|
this.log.info('Using desired caps to create a new simulator');
|
|
@@ -1411,10 +1401,8 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1411
1401
|
}
|
|
1412
1402
|
async createSim() {
|
|
1413
1403
|
this.lifecycleData.createSim = true;
|
|
1414
|
-
// Get platform name from const since it must be case sensitive to create a new simulator
|
|
1415
|
-
const platformName = this.isTvOS() ? desired_caps_1.PLATFORM_NAME_TVOS : desired_caps_1.PLATFORM_NAME_IOS;
|
|
1416
1404
|
// create sim for caps
|
|
1417
|
-
const sim = await (0, simulator_management_1.createSim)(this.opts
|
|
1405
|
+
const sim = await (0, simulator_management_1.createSim)(this.opts);
|
|
1418
1406
|
this.log.info(`Created simulator with udid '${sim.udid}'.`);
|
|
1419
1407
|
return sim;
|
|
1420
1408
|
}
|
|
@@ -1509,9 +1497,6 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1509
1497
|
// @ts-expect-error - do not assign arbitrary properties to `this.opts`
|
|
1510
1498
|
return !this.opts.realDevice;
|
|
1511
1499
|
}
|
|
1512
|
-
isTvOS() {
|
|
1513
|
-
return lodash_1.default.toLower(this.opts.platformName) === lodash_1.default.toLower(desired_caps_1.PLATFORM_NAME_TVOS);
|
|
1514
|
-
}
|
|
1515
1500
|
validateLocatorStrategy(strategy) {
|
|
1516
1501
|
super.validateLocatorStrategy(strategy, this.isWebContext());
|
|
1517
1502
|
}
|
|
@@ -1694,7 +1679,7 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1694
1679
|
}
|
|
1695
1680
|
await app_utils_1.verifyApplicationPlatform.bind(this)(this.opts.app, {
|
|
1696
1681
|
isSimulator: this.isSimulator(),
|
|
1697
|
-
isTvOS: this.
|
|
1682
|
+
isTvOS: (0, utils_1.isTvOs)(this.opts.platformName),
|
|
1698
1683
|
});
|
|
1699
1684
|
const { install, skipUninstall } = await this.checkAutInstallationState();
|
|
1700
1685
|
if (install) {
|