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.
Files changed (40) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/commands/context.d.ts +130 -161
  3. package/build/lib/commands/context.d.ts.map +1 -1
  4. package/build/lib/commands/context.js +122 -107
  5. package/build/lib/commands/context.js.map +1 -1
  6. package/build/lib/commands/execute.js +1 -1
  7. package/build/lib/commands/execute.js.map +1 -1
  8. package/build/lib/commands/general.js +1 -1
  9. package/build/lib/commands/general.js.map +1 -1
  10. package/build/lib/commands/gesture.d.ts +103 -119
  11. package/build/lib/commands/gesture.d.ts.map +1 -1
  12. package/build/lib/commands/gesture.js +98 -138
  13. package/build/lib/commands/gesture.js.map +1 -1
  14. package/build/lib/commands/screenshots.d.ts.map +1 -1
  15. package/build/lib/commands/screenshots.js +3 -5
  16. package/build/lib/commands/screenshots.js.map +1 -1
  17. package/build/lib/commands/timeouts.js +1 -1
  18. package/build/lib/commands/timeouts.js.map +1 -1
  19. package/build/lib/commands/web.d.ts +199 -202
  20. package/build/lib/commands/web.d.ts.map +1 -1
  21. package/build/lib/commands/web.js +216 -175
  22. package/build/lib/commands/web.js.map +1 -1
  23. package/build/lib/driver.d.ts +2 -1
  24. package/build/lib/driver.d.ts.map +1 -1
  25. package/build/lib/driver.js +10 -4
  26. package/build/lib/driver.js.map +1 -1
  27. package/build/lib/execute-method-map.d.ts.map +1 -1
  28. package/build/lib/execute-method-map.js +0 -1
  29. package/build/lib/execute-method-map.js.map +1 -1
  30. package/lib/commands/{context.js → context.ts} +172 -145
  31. package/lib/commands/execute.js +1 -1
  32. package/lib/commands/general.js +1 -1
  33. package/lib/commands/{gesture.js → gesture.ts} +225 -183
  34. package/lib/commands/screenshots.js +3 -5
  35. package/lib/commands/timeouts.js +1 -1
  36. package/lib/commands/{web.js → web.ts} +314 -264
  37. package/lib/driver.ts +11 -4
  38. package/lib/execute-method-map.ts +0 -1
  39. package/npm-shrinkwrap.json +13 -43
  40. 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
- remote: RemoteDebugger | null;
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.remote = null;
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.remote) {
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.remote = null;
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': {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "appium-xcuitest-driver",
3
- "version": "10.12.2",
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.12.2",
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.8",
717
- "resolved": "https://registry.npmjs.org/appium-ios-simulator/-/appium-ios-simulator-8.0.8.tgz",
718
- "integrity": "sha512-a3Dvq+6EfbXFbQWV7CRPWRKRVqBspkYGE+7DPfRuQalt0PkHQ819hVb0vPcMlcE9ZwVYYh4C3ND2k24BhWVDDA==",
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": "^3.0.0"
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.0",
792
- "resolved": "https://registry.npmjs.org/appium-webdriveragent/-/appium-webdriveragent-11.0.0.tgz",
793
- "integrity": "sha512-CMibAqg+iqBMk/VNibPuG9j1REjbxHx/b6P+0gEkBLHlRJZw1OGM15CAnzEB1dZtADUnkhzUzLew/gaHno7Spw==",
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": "^3.0.0"
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.5",
4431
- "resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.0.5.tgz",
4432
- "integrity": "sha512-ZQQ2Vjs1/maFzpzfsZRAlQVSZrUBsKzAItaxSLImsHRTdI8hVt9Jm0JHyWFbrvvAf78V55BM3ZgNeQpXcXsWpw==",
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",
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "xcuitest",
9
9
  "xctest"
10
10
  ],
11
- "version": "10.12.2",
11
+ "version": "10.13.1",
12
12
  "author": "Appium Contributors",
13
13
  "license": "Apache-2.0",
14
14
  "repository": {