appium-xcuitest-driver 10.8.0 → 10.8.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 +6 -0
- package/build/lib/commands/location.d.ts +3 -2
- package/build/lib/commands/location.d.ts.map +1 -1
- package/build/lib/commands/location.js +9 -3
- package/build/lib/commands/location.js.map +1 -1
- package/lib/commands/location.js +10 -3
- package/npm-shrinkwrap.json +5 -5
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [10.8.1](https://github.com/appium/appium-xcuitest-driver/compare/v10.8.0...v10.8.1) (2025-11-25)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* Update mobile: resetLocationService endpoint ([#2661](https://github.com/appium/appium-xcuitest-driver/issues/2661)) ([c361c08](https://github.com/appium/appium-xcuitest-driver/commit/c361c08896f99839f2441a8e669f58d7ca6a0052))
|
|
6
|
+
|
|
1
7
|
## [10.8.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.7.0...v10.8.0) (2025-11-22)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
@@ -29,8 +29,9 @@ export function getGeoLocation(this: import("../driver").XCUITestDriver): Promis
|
|
|
29
29
|
export function setGeoLocation(this: import("../driver").XCUITestDriver, location: Partial<Location>): Promise<import("@appium/types").Location>;
|
|
30
30
|
/**
|
|
31
31
|
* Reset the location service on real device.
|
|
32
|
-
*
|
|
33
|
-
* @throws {Error} If the device is simulator
|
|
32
|
+
*
|
|
33
|
+
* @throws {Error} If the device is simulator and iOS version is below 17,
|
|
34
|
+
* or 'resetLocation' raises an error.
|
|
34
35
|
* @this {XCUITestDriver}
|
|
35
36
|
*/
|
|
36
37
|
export function mobileResetLocationService(this: import("../driver").XCUITestDriver): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../lib/commands/location.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;GAiBG;AACH,0EALa,OAAO,CAAC,OAAO,SAAS,EAAE,oBAAoB,CAAC,CAyC3D;AAED;;;;;;;;GAQG;AACH,mFAHW,OAAO,CAAC,QAAQ,CAAC,6CAgC3B;AAED
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../lib/commands/location.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;GAiBG;AACH,0EALa,OAAO,CAAC,OAAO,SAAS,EAAE,oBAAoB,CAAC,CAyC3D;AAED;;;;;;;;GAQG;AACH,mFAHW,OAAO,CAAC,QAAQ,CAAC,6CAgC3B;AAED;;;;;;GAMG;AACH,oGAsBC;6BAGY,OAAO,WAAW,EAAE,cAAc;8BAClC,OAAO,SAAS,EAAE,eAAe;uBACjC,OAAO,eAAe,EAAE,QAAQ"}
|
|
@@ -74,7 +74,7 @@ async function setGeoLocation(location) {
|
|
|
74
74
|
return /** @type {Location} */ ({ latitude, longitude, altitude: 0 });
|
|
75
75
|
}
|
|
76
76
|
if ((0, utils_1.isIos17OrNewer)(this.opts)) {
|
|
77
|
-
this.log.info(`Proxying to mobile:setSimulatedLocation method for iOS 17
|
|
77
|
+
this.log.info(`Proxying to mobile:setSimulatedLocation method for iOS 17+`);
|
|
78
78
|
await this.mobileSetSimulatedLocation(latitude, longitude);
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
@@ -93,11 +93,17 @@ async function setGeoLocation(location) {
|
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
95
|
* Reset the location service on real device.
|
|
96
|
-
*
|
|
97
|
-
* @throws {Error} If the device is simulator
|
|
96
|
+
*
|
|
97
|
+
* @throws {Error} If the device is simulator and iOS version is below 17,
|
|
98
|
+
* or 'resetLocation' raises an error.
|
|
98
99
|
* @this {XCUITestDriver}
|
|
99
100
|
*/
|
|
100
101
|
async function mobileResetLocationService() {
|
|
102
|
+
if ((0, utils_1.isIos17OrNewer)(this.opts)) {
|
|
103
|
+
this.log.info(`Proxying to mobile:resetSimulatedLocation method for iOS 17+`);
|
|
104
|
+
await this.mobileResetSimulatedLocation();
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
101
107
|
if (this.isSimulator()) {
|
|
102
108
|
throw new driver_1.errors.NotImplementedError();
|
|
103
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../lib/commands/location.js"],"names":[],"mappings":";;AAwBA,wCAoCC;AAWD,wCA6BC;
|
|
1
|
+
{"version":3,"file":"location.js","sourceRoot":"","sources":["../../../lib/commands/location.js"],"names":[],"mappings":";;AAwBA,wCAoCC;AAWD,wCA6BC;AASD,gEAsBC;AAnID,yDAA2C;AAC3C,0CAAqC;AACrC,4CAAoC;AACpC,iCAA2C;AAC3C,oCAA0C;AAE1C;;;;;;;;;;;;;;;;;GAiBG;AACI,KAAK,UAAU,cAAc;IAClC,oFAAoF;IACpF,mFAAmF;IACnF,IAAI,IAAA,sBAAc,EAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,MAAM,EAAC,QAAQ,EAAE,SAAS,EAAC,GAAG,MAAM,IAAI,CAAC,0BAA0B,EAAE,CAAC;QACtE,IAAI,QAAQ,IAAI,SAAS,EAAE,CAAC;YAC1B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,yFAAyF;gBACtG,qEAAqE,CAAC,CAAC;YACzE,OAAO,EAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAC,CAAC;QAC5C,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,oGAAoG,CAAC,CAAC;IACtH,CAAC;IAED,sFAAsF;IACtF,4FAA4F;IAC5F,sEAAsE;IACtE,2EAA2E;IAC3E,oFAAoF;IACpF,MAAM,EAAC,mBAAmB,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAC,GAAG,8BAA8B,CAAC,CA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ACJ,CAAC;YAAS,CAAC;QACT,OAAO,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC;AACH,CAAC;AAED;;;;GAIG"}
|
package/lib/commands/location.js
CHANGED
|
@@ -82,7 +82,7 @@ export async function setGeoLocation(location) {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
if (isIos17OrNewer(this.opts)) {
|
|
85
|
-
this.log.info(`Proxying to mobile:setSimulatedLocation method for iOS 17
|
|
85
|
+
this.log.info(`Proxying to mobile:setSimulatedLocation method for iOS 17+`);
|
|
86
86
|
await this.mobileSetSimulatedLocation(latitude, longitude);
|
|
87
87
|
} else {
|
|
88
88
|
const service = await services.startSimulateLocationService(this.opts.udid);
|
|
@@ -102,11 +102,18 @@ export async function setGeoLocation(location) {
|
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* Reset the location service on real device.
|
|
105
|
-
*
|
|
106
|
-
* @throws {Error} If the device is simulator
|
|
105
|
+
*
|
|
106
|
+
* @throws {Error} If the device is simulator and iOS version is below 17,
|
|
107
|
+
* or 'resetLocation' raises an error.
|
|
107
108
|
* @this {XCUITestDriver}
|
|
108
109
|
*/
|
|
109
110
|
export async function mobileResetLocationService() {
|
|
111
|
+
if (isIos17OrNewer(this.opts)) {
|
|
112
|
+
this.log.info(`Proxying to mobile:resetSimulatedLocation method for iOS 17+`);
|
|
113
|
+
await this.mobileResetSimulatedLocation();
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
|
|
110
117
|
if (this.isSimulator()) {
|
|
111
118
|
throw new errors.NotImplementedError();
|
|
112
119
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-xcuitest-driver",
|
|
3
|
-
"version": "10.8.
|
|
3
|
+
"version": "10.8.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-xcuitest-driver",
|
|
9
|
-
"version": "10.8.
|
|
9
|
+
"version": "10.8.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@appium/strongbox": "^1.0.0-rc.1",
|
|
@@ -704,9 +704,9 @@
|
|
|
704
704
|
}
|
|
705
705
|
},
|
|
706
706
|
"node_modules/appium-remote-debugger": {
|
|
707
|
-
"version": "15.2.
|
|
708
|
-
"resolved": "https://registry.npmjs.org/appium-remote-debugger/-/appium-remote-debugger-15.2.
|
|
709
|
-
"integrity": "sha512-
|
|
707
|
+
"version": "15.2.5",
|
|
708
|
+
"resolved": "https://registry.npmjs.org/appium-remote-debugger/-/appium-remote-debugger-15.2.5.tgz",
|
|
709
|
+
"integrity": "sha512-OBBQh3ITfRUTdOhOGEiWzXUQLEDbdYXez4Ub+MtAdOw1UZ2/oLLaCSPz2OD+3AJWNTSPVycnBf0crbXSMxok/g==",
|
|
710
710
|
"license": "Apache-2.0",
|
|
711
711
|
"dependencies": {
|
|
712
712
|
"@appium/base-driver": "^10.0.0-rc.1",
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"xcuitest",
|
|
9
9
|
"xctest"
|
|
10
10
|
],
|
|
11
|
-
"version": "10.8.
|
|
11
|
+
"version": "10.8.1",
|
|
12
12
|
"author": "Appium Contributors",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"repository": {
|
|
@@ -124,15 +124,15 @@
|
|
|
124
124
|
"install-docs-deps": "appium-docs init --no-mkdocs",
|
|
125
125
|
"prepare": "npm run rebuild",
|
|
126
126
|
"rebuild": "npm run clean; npm run build",
|
|
127
|
-
"test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.
|
|
128
|
-
"e2e-test": "mocha --exit --timeout 10m \"./test/functional/**/*-specs.
|
|
129
|
-
"e2e-test:basic": "mocha \"./test/functional/basic\" --exit --timeout 10m",
|
|
130
|
-
"e2e-test:device": "mocha \"./test/functional/device\" --exit --timeout 10m",
|
|
131
|
-
"e2e-test:driver": "mocha \"./test/functional/driver\" --exit --timeout 10m",
|
|
132
|
-
"e2e-test:long": "mocha \"./test/functional/long\" --exit --timeout 10m",
|
|
133
|
-
"e2e-test:parallel": "mocha \"./test/functional/parallel\" --exit --timeout 10m",
|
|
134
|
-
"e2e-test:web": "mocha \"./test/functional/web\" --exit --timeout 10m",
|
|
135
|
-
"e2e-test:native-web-tap": "mocha \"./test/functional/web/safari-nativewebtap-e2e-specs.
|
|
127
|
+
"test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.ts\"",
|
|
128
|
+
"e2e-test": "mocha --exit --timeout 10m \"./test/functional/**/*-specs.ts\"",
|
|
129
|
+
"e2e-test:basic": "mocha \"./test/functional/basic/**/*-specs.ts\" --exit --timeout 10m",
|
|
130
|
+
"e2e-test:device": "mocha \"./test/functional/device/**/*-specs.ts\" --exit --timeout 10m",
|
|
131
|
+
"e2e-test:driver": "mocha \"./test/functional/driver/**/*-specs.ts\" --exit --timeout 10m",
|
|
132
|
+
"e2e-test:long": "mocha \"./test/functional/long/**/*-specs.ts\" --exit --timeout 10m",
|
|
133
|
+
"e2e-test:parallel": "mocha \"./test/functional/parallel/**/*-specs.ts\" --exit --timeout 10m",
|
|
134
|
+
"e2e-test:web": "mocha \"./test/functional/web/**/*-specs.ts\" --exit --timeout 10m",
|
|
135
|
+
"e2e-test:native-web-tap": "mocha \"./test/functional/web/safari-nativewebtap-e2e-specs.ts\" --exit --timeout 10m",
|
|
136
136
|
"start": "appium --relaxed-security --port 4567 --keep-alive-timeout 1200"
|
|
137
137
|
},
|
|
138
138
|
"prettier": {
|