appium-xcuitest-driver 10.12.2 → 10.13.1
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/context.d.ts +130 -161
- package/build/lib/commands/context.d.ts.map +1 -1
- package/build/lib/commands/context.js +122 -107
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/execute.js +1 -1
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/general.js +1 -1
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/gesture.d.ts +103 -119
- package/build/lib/commands/gesture.d.ts.map +1 -1
- package/build/lib/commands/gesture.js +98 -138
- package/build/lib/commands/gesture.js.map +1 -1
- package/build/lib/commands/screenshots.d.ts.map +1 -1
- package/build/lib/commands/screenshots.js +3 -5
- package/build/lib/commands/screenshots.js.map +1 -1
- package/build/lib/commands/timeouts.js +1 -1
- package/build/lib/commands/timeouts.js.map +1 -1
- package/build/lib/commands/web.d.ts +199 -202
- package/build/lib/commands/web.d.ts.map +1 -1
- package/build/lib/commands/web.js +216 -175
- package/build/lib/commands/web.js.map +1 -1
- package/build/lib/driver.d.ts +2 -1
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +10 -4
- 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 +0 -1
- package/build/lib/execute-method-map.js.map +1 -1
- package/lib/commands/{context.js → context.ts} +172 -145
- package/lib/commands/execute.js +1 -1
- package/lib/commands/general.js +1 -1
- package/lib/commands/{gesture.js → gesture.ts} +225 -183
- package/lib/commands/screenshots.js +3 -5
- package/lib/commands/timeouts.js +1 -1
- package/lib/commands/{web.js → web.ts} +314 -264
- package/lib/driver.ts +11 -4
- package/lib/execute-method-map.ts +0 -1
- package/npm-shrinkwrap.json +13 -43
- package/package.json +1 -1
package/lib/driver.ts
CHANGED
|
@@ -276,7 +276,7 @@ export class XCUITestDriver
|
|
|
276
276
|
_device: Simulator | RealDevice;
|
|
277
277
|
_iosSdkVersion: string | null;
|
|
278
278
|
_wda: WebDriverAgent | null;
|
|
279
|
-
|
|
279
|
+
_remote: RemoteDebugger | null;
|
|
280
280
|
logs: DriverLogs;
|
|
281
281
|
_bidiServerLogListener: LogListener | undefined;
|
|
282
282
|
|
|
@@ -335,7 +335,7 @@ export class XCUITestDriver
|
|
|
335
335
|
this.lifecycleData = {};
|
|
336
336
|
this._audioRecorder = null;
|
|
337
337
|
this.appInfosCache = new AppInfosCache(this.log);
|
|
338
|
-
this.
|
|
338
|
+
this._remote = null;
|
|
339
339
|
this.doesSupportBidi = true;
|
|
340
340
|
this._wda = null;
|
|
341
341
|
}
|
|
@@ -454,7 +454,7 @@ export class XCUITestDriver
|
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
|
|
457
|
-
if (this.
|
|
457
|
+
if (this._remote) {
|
|
458
458
|
this.log.debug('Found a remote debugger session. Removing...');
|
|
459
459
|
await this.stopRemote();
|
|
460
460
|
}
|
|
@@ -671,6 +671,13 @@ export class XCUITestDriver
|
|
|
671
671
|
return this._wda;
|
|
672
672
|
}
|
|
673
673
|
|
|
674
|
+
get remote(): RemoteDebugger {
|
|
675
|
+
if (!this._remote) {
|
|
676
|
+
throw new Error('Remote debugger is not initialized');
|
|
677
|
+
}
|
|
678
|
+
return this._remote;
|
|
679
|
+
}
|
|
680
|
+
|
|
674
681
|
get driverData(): Record<string, any> {
|
|
675
682
|
// TODO fill out resource info here
|
|
676
683
|
return {};
|
|
@@ -1735,7 +1742,7 @@ export class XCUITestDriver
|
|
|
1735
1742
|
this.implicitWaitMs = 0;
|
|
1736
1743
|
this.pageLoadMs = 6000;
|
|
1737
1744
|
this.landscapeWebCoordsOffset = 0;
|
|
1738
|
-
this.
|
|
1745
|
+
this._remote = null;
|
|
1739
1746
|
this._conditionInducerService = null;
|
|
1740
1747
|
this._remoteXPCConditionInducerConnection = null;
|
|
1741
1748
|
|
|
@@ -499,7 +499,6 @@ export const executeMethodMap = {
|
|
|
499
499
|
},
|
|
500
500
|
},
|
|
501
501
|
'mobile: calibrateWebToRealCoordinatesTranslation': {
|
|
502
|
-
// @ts-expect-error Class field assignment - method exists on XCUITestDriver
|
|
503
502
|
command: 'mobileCalibrateWebToRealCoordinatesTranslation',
|
|
504
503
|
},
|
|
505
504
|
'mobile: keys': {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-xcuitest-driver",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.13.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-xcuitest-driver",
|
|
9
|
-
"version": "10.
|
|
9
|
+
"version": "10.13.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@appium/strongbox": "^1.0.0-rc.1",
|
|
@@ -713,9 +713,9 @@
|
|
|
713
713
|
}
|
|
714
714
|
},
|
|
715
715
|
"node_modules/appium-ios-simulator": {
|
|
716
|
-
"version": "8.0.
|
|
717
|
-
"resolved": "https://registry.npmjs.org/appium-ios-simulator/-/appium-ios-simulator-8.0.
|
|
718
|
-
"integrity": "sha512-
|
|
716
|
+
"version": "8.0.9",
|
|
717
|
+
"resolved": "https://registry.npmjs.org/appium-ios-simulator/-/appium-ios-simulator-8.0.9.tgz",
|
|
718
|
+
"integrity": "sha512-11q7xGjCeic6RKaYnRC8+g0BT3Jv9cIonL1NTekK24Qcp3H/DvlB5MTChOnRNYPr2/YQpM1TcxLcNEchTnkloQ==",
|
|
719
719
|
"license": "Apache-2.0",
|
|
720
720
|
"dependencies": {
|
|
721
721
|
"@appium/support": "^7.0.0-rc.1",
|
|
@@ -727,22 +727,7 @@
|
|
|
727
727
|
"lodash": "^4.2.1",
|
|
728
728
|
"node-simctl": "^8.1.1",
|
|
729
729
|
"semver": "^7.0.0",
|
|
730
|
-
"teen_process": "^
|
|
731
|
-
},
|
|
732
|
-
"engines": {
|
|
733
|
-
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
734
|
-
"npm": ">=10"
|
|
735
|
-
}
|
|
736
|
-
},
|
|
737
|
-
"node_modules/appium-ios-simulator/node_modules/teen_process": {
|
|
738
|
-
"version": "3.0.6",
|
|
739
|
-
"resolved": "https://registry.npmjs.org/teen_process/-/teen_process-3.0.6.tgz",
|
|
740
|
-
"integrity": "sha512-nUw1B4MogSZzzy67n37IM1vg4doj+bWOZ7VwIFZGfD7MDmO+FRlhQlA2+22xJnTELVDDlOaTAMpKuuMI2vkDtg==",
|
|
741
|
-
"license": "Apache-2.0",
|
|
742
|
-
"dependencies": {
|
|
743
|
-
"bluebird": "^3.7.2",
|
|
744
|
-
"lodash": "^4.17.21",
|
|
745
|
-
"shell-quote": "^1.8.1"
|
|
730
|
+
"teen_process": "^4.0.4"
|
|
746
731
|
},
|
|
747
732
|
"engines": {
|
|
748
733
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
@@ -788,9 +773,9 @@
|
|
|
788
773
|
}
|
|
789
774
|
},
|
|
790
775
|
"node_modules/appium-webdriveragent": {
|
|
791
|
-
"version": "11.0.
|
|
792
|
-
"resolved": "https://registry.npmjs.org/appium-webdriveragent/-/appium-webdriveragent-11.0.
|
|
793
|
-
"integrity": "sha512-
|
|
776
|
+
"version": "11.0.1",
|
|
777
|
+
"resolved": "https://registry.npmjs.org/appium-webdriveragent/-/appium-webdriveragent-11.0.1.tgz",
|
|
778
|
+
"integrity": "sha512-pVrwRadjw4kP8RDlIwDsEWqWn0G1IRBok2+HgOFdXsoEIDL0O7DQrlVMSLmD5eiHTCWUjSqCCLpDSE6c7QaYzw==",
|
|
794
779
|
"license": "Apache-2.0",
|
|
795
780
|
"dependencies": {
|
|
796
781
|
"@appium/base-driver": "^10.0.0-rc.1",
|
|
@@ -803,22 +788,7 @@
|
|
|
803
788
|
"axios": "^1.4.0",
|
|
804
789
|
"bluebird": "^3.5.5",
|
|
805
790
|
"lodash": "^4.17.11",
|
|
806
|
-
"teen_process": "^
|
|
807
|
-
},
|
|
808
|
-
"engines": {
|
|
809
|
-
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
810
|
-
"npm": ">=10"
|
|
811
|
-
}
|
|
812
|
-
},
|
|
813
|
-
"node_modules/appium-webdriveragent/node_modules/teen_process": {
|
|
814
|
-
"version": "3.0.6",
|
|
815
|
-
"resolved": "https://registry.npmjs.org/teen_process/-/teen_process-3.0.6.tgz",
|
|
816
|
-
"integrity": "sha512-nUw1B4MogSZzzy67n37IM1vg4doj+bWOZ7VwIFZGfD7MDmO+FRlhQlA2+22xJnTELVDDlOaTAMpKuuMI2vkDtg==",
|
|
817
|
-
"license": "Apache-2.0",
|
|
818
|
-
"dependencies": {
|
|
819
|
-
"bluebird": "^3.7.2",
|
|
820
|
-
"lodash": "^4.17.21",
|
|
821
|
-
"shell-quote": "^1.8.1"
|
|
791
|
+
"teen_process": "^4.0.7"
|
|
822
792
|
},
|
|
823
793
|
"engines": {
|
|
824
794
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
@@ -4427,9 +4397,9 @@
|
|
|
4427
4397
|
}
|
|
4428
4398
|
},
|
|
4429
4399
|
"node_modules/teen_process": {
|
|
4430
|
-
"version": "4.0.
|
|
4431
|
-
"resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.0.
|
|
4432
|
-
"integrity": "sha512-
|
|
4400
|
+
"version": "4.0.7",
|
|
4401
|
+
"resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.0.7.tgz",
|
|
4402
|
+
"integrity": "sha512-t7+1xY+WfihWM8M2JxL9ueH/SfDE7bhMuuVMR8bqrttQ0nn95hvOpGqThtZ2S/4+RvrJx2+UWO9no7wDFrOdsw==",
|
|
4433
4403
|
"license": "Apache-2.0",
|
|
4434
4404
|
"dependencies": {
|
|
4435
4405
|
"bluebird": "^3.7.2",
|