appium-xcuitest-driver 10.12.1 → 10.13.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.
Files changed (48) 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/pcap.d.ts +1 -1
  15. package/build/lib/commands/pcap.d.ts.map +1 -1
  16. package/build/lib/commands/performance.d.ts +1 -1
  17. package/build/lib/commands/performance.d.ts.map +1 -1
  18. package/build/lib/commands/record-audio.d.ts +2 -1
  19. package/build/lib/commands/record-audio.d.ts.map +1 -1
  20. package/build/lib/commands/recordscreen.d.ts +2 -1
  21. package/build/lib/commands/recordscreen.d.ts.map +1 -1
  22. package/build/lib/commands/screenshots.d.ts.map +1 -1
  23. package/build/lib/commands/screenshots.js +3 -5
  24. package/build/lib/commands/screenshots.js.map +1 -1
  25. package/build/lib/commands/timeouts.js +1 -1
  26. package/build/lib/commands/timeouts.js.map +1 -1
  27. package/build/lib/commands/web.d.ts +199 -202
  28. package/build/lib/commands/web.d.ts.map +1 -1
  29. package/build/lib/commands/web.js +206 -174
  30. package/build/lib/commands/web.js.map +1 -1
  31. package/build/lib/driver.d.ts +2 -1
  32. package/build/lib/driver.d.ts.map +1 -1
  33. package/build/lib/driver.js +10 -4
  34. package/build/lib/driver.js.map +1 -1
  35. package/build/lib/execute-method-map.d.ts.map +1 -1
  36. package/build/lib/execute-method-map.js +0 -1
  37. package/build/lib/execute-method-map.js.map +1 -1
  38. package/lib/commands/{context.js → context.ts} +172 -145
  39. package/lib/commands/execute.js +1 -1
  40. package/lib/commands/general.js +1 -1
  41. package/lib/commands/{gesture.js → gesture.ts} +225 -183
  42. package/lib/commands/screenshots.js +3 -5
  43. package/lib/commands/timeouts.js +1 -1
  44. package/lib/commands/{web.js → web.ts} +305 -263
  45. package/lib/driver.ts +11 -4
  46. package/lib/execute-method-map.ts +0 -1
  47. package/npm-shrinkwrap.json +14 -89
  48. package/package.json +2 -2
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.1",
3
+ "version": "10.13.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-xcuitest-driver",
9
- "version": "10.12.1",
9
+ "version": "10.13.0",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@appium/strongbox": "^1.0.0-rc.1",
@@ -31,7 +31,7 @@
31
31
  "node-simctl": "^8.1.1",
32
32
  "portscanner": "^2.2.0",
33
33
  "semver": "^7.5.4",
34
- "teen_process": "^3.0.0",
34
+ "teen_process": "^4.0.4",
35
35
  "winston": "^3.17.0",
36
36
  "ws": "^8.13.0"
37
37
  },
@@ -671,21 +671,6 @@
671
671
  "npm": ">=10"
672
672
  }
673
673
  },
674
- "node_modules/appium-idb/node_modules/teen_process": {
675
- "version": "4.0.4",
676
- "resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.0.4.tgz",
677
- "integrity": "sha512-aeHqdf0jw2Rx3r1wbwJQrmg1PlU/zLcqSL7YrXChKywnpQob8o4Yhfn2RvViDDsU+0mVYleC4UDzo47Gg4wc8g==",
678
- "license": "Apache-2.0",
679
- "dependencies": {
680
- "bluebird": "^3.7.2",
681
- "lodash": "^4.17.21",
682
- "shell-quote": "^1.8.1"
683
- },
684
- "engines": {
685
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
686
- "npm": ">=10"
687
- }
688
- },
689
674
  "node_modules/appium-ios-device": {
690
675
  "version": "3.1.7",
691
676
  "resolved": "https://registry.npmjs.org/appium-ios-device/-/appium-ios-device-3.1.7.tgz",
@@ -728,9 +713,9 @@
728
713
  }
729
714
  },
730
715
  "node_modules/appium-ios-simulator": {
731
- "version": "8.0.8",
732
- "resolved": "https://registry.npmjs.org/appium-ios-simulator/-/appium-ios-simulator-8.0.8.tgz",
733
- "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==",
734
719
  "license": "Apache-2.0",
735
720
  "dependencies": {
736
721
  "@appium/support": "^7.0.0-rc.1",
@@ -742,7 +727,7 @@
742
727
  "lodash": "^4.2.1",
743
728
  "node-simctl": "^8.1.1",
744
729
  "semver": "^7.0.0",
745
- "teen_process": "^3.0.0"
730
+ "teen_process": "^4.0.4"
746
731
  },
747
732
  "engines": {
748
733
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
@@ -787,25 +772,10 @@
787
772
  "npm": ">=10"
788
773
  }
789
774
  },
790
- "node_modules/appium-remote-debugger/node_modules/teen_process": {
791
- "version": "4.0.4",
792
- "resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.0.4.tgz",
793
- "integrity": "sha512-aeHqdf0jw2Rx3r1wbwJQrmg1PlU/zLcqSL7YrXChKywnpQob8o4Yhfn2RvViDDsU+0mVYleC4UDzo47Gg4wc8g==",
794
- "license": "Apache-2.0",
795
- "dependencies": {
796
- "bluebird": "^3.7.2",
797
- "lodash": "^4.17.21",
798
- "shell-quote": "^1.8.1"
799
- },
800
- "engines": {
801
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
802
- "npm": ">=10"
803
- }
804
- },
805
775
  "node_modules/appium-webdriveragent": {
806
- "version": "11.0.0",
807
- "resolved": "https://registry.npmjs.org/appium-webdriveragent/-/appium-webdriveragent-11.0.0.tgz",
808
- "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==",
809
779
  "license": "Apache-2.0",
810
780
  "dependencies": {
811
781
  "@appium/base-driver": "^10.0.0-rc.1",
@@ -818,7 +788,7 @@
818
788
  "axios": "^1.4.0",
819
789
  "bluebird": "^3.5.5",
820
790
  "lodash": "^4.17.11",
821
- "teen_process": "^3.0.0"
791
+ "teen_process": "^4.0.7"
822
792
  },
823
793
  "engines": {
824
794
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
@@ -844,21 +814,6 @@
844
814
  "npm": ">=10"
845
815
  }
846
816
  },
847
- "node_modules/appium-xcode/node_modules/teen_process": {
848
- "version": "4.0.4",
849
- "resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.0.4.tgz",
850
- "integrity": "sha512-aeHqdf0jw2Rx3r1wbwJQrmg1PlU/zLcqSL7YrXChKywnpQob8o4Yhfn2RvViDDsU+0mVYleC4UDzo47Gg4wc8g==",
851
- "license": "Apache-2.0",
852
- "dependencies": {
853
- "bluebird": "^3.7.2",
854
- "lodash": "^4.17.21",
855
- "shell-quote": "^1.8.1"
856
- },
857
- "engines": {
858
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
859
- "npm": ">=10"
860
- }
861
- },
862
817
  "node_modules/appium/node_modules/asyncbox": {
863
818
  "version": "3.0.0",
864
819
  "resolved": "https://registry.npmjs.org/asyncbox/-/asyncbox-3.0.0.tgz",
@@ -3094,21 +3049,6 @@
3094
3049
  "npm": ">=10"
3095
3050
  }
3096
3051
  },
3097
- "node_modules/node-devicectl/node_modules/teen_process": {
3098
- "version": "4.0.4",
3099
- "resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.0.4.tgz",
3100
- "integrity": "sha512-aeHqdf0jw2Rx3r1wbwJQrmg1PlU/zLcqSL7YrXChKywnpQob8o4Yhfn2RvViDDsU+0mVYleC4UDzo47Gg4wc8g==",
3101
- "license": "Apache-2.0",
3102
- "dependencies": {
3103
- "bluebird": "^3.7.2",
3104
- "lodash": "^4.17.21",
3105
- "shell-quote": "^1.8.1"
3106
- },
3107
- "engines": {
3108
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
3109
- "npm": ">=10"
3110
- }
3111
- },
3112
3052
  "node_modules/node-simctl": {
3113
3053
  "version": "8.1.3",
3114
3054
  "resolved": "https://registry.npmjs.org/node-simctl/-/node-simctl-8.1.3.tgz",
@@ -3130,21 +3070,6 @@
3130
3070
  "npm": ">=10"
3131
3071
  }
3132
3072
  },
3133
- "node_modules/node-simctl/node_modules/teen_process": {
3134
- "version": "4.0.4",
3135
- "resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.0.4.tgz",
3136
- "integrity": "sha512-aeHqdf0jw2Rx3r1wbwJQrmg1PlU/zLcqSL7YrXChKywnpQob8o4Yhfn2RvViDDsU+0mVYleC4UDzo47Gg4wc8g==",
3137
- "license": "Apache-2.0",
3138
- "dependencies": {
3139
- "bluebird": "^3.7.2",
3140
- "lodash": "^4.17.21",
3141
- "shell-quote": "^1.8.1"
3142
- },
3143
- "engines": {
3144
- "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
3145
- "npm": ">=10"
3146
- }
3147
- },
3148
3073
  "node_modules/normalize-package-data": {
3149
3074
  "version": "2.5.0",
3150
3075
  "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
@@ -4472,9 +4397,9 @@
4472
4397
  }
4473
4398
  },
4474
4399
  "node_modules/teen_process": {
4475
- "version": "3.0.6",
4476
- "resolved": "https://registry.npmjs.org/teen_process/-/teen_process-3.0.6.tgz",
4477
- "integrity": "sha512-nUw1B4MogSZzzy67n37IM1vg4doj+bWOZ7VwIFZGfD7MDmO+FRlhQlA2+22xJnTELVDDlOaTAMpKuuMI2vkDtg==",
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==",
4478
4403
  "license": "Apache-2.0",
4479
4404
  "dependencies": {
4480
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.1",
11
+ "version": "10.13.0",
12
12
  "author": "Appium Contributors",
13
13
  "license": "Apache-2.0",
14
14
  "repository": {
@@ -102,7 +102,7 @@
102
102
  "node-simctl": "^8.1.1",
103
103
  "portscanner": "^2.2.0",
104
104
  "semver": "^7.5.4",
105
- "teen_process": "^3.0.0",
105
+ "teen_process": "^4.0.4",
106
106
  "winston": "^3.17.0",
107
107
  "ws": "^8.13.0"
108
108
  },