appium-xcuitest-driver 9.3.0 → 9.3.2
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 +13 -0
- package/build/lib/app-infos-cache.js +2 -2
- package/build/lib/app-infos-cache.js.map +1 -1
- package/build/lib/app-utils.js +1 -1
- package/build/lib/app-utils.js.map +1 -1
- package/build/lib/commands/audit.d.ts +3 -3
- package/build/lib/commands/audit.js +3 -3
- package/build/lib/commands/certificate.js +1 -1
- package/build/lib/commands/certificate.js.map +1 -1
- package/build/lib/commands/file-movement.js +2 -2
- package/build/lib/commands/find.js +1 -1
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +1 -1
- package/build/lib/commands/geolocation.js +1 -1
- package/build/lib/commands/gesture.d.ts +2 -2
- package/build/lib/commands/gesture.js +2 -2
- package/build/lib/commands/hid-event.js +1 -1
- package/build/lib/commands/increase-contrast.d.ts +1 -1
- package/build/lib/commands/increase-contrast.js +1 -1
- package/build/lib/commands/localization.d.ts +1 -1
- package/build/lib/commands/localization.js +1 -1
- package/build/lib/commands/location.js +1 -1
- package/build/lib/commands/recordscreen.js +1 -1
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/device-log/ios-simulator-log.js +2 -2
- package/build/lib/device-log/ios-simulator-log.js.map +1 -1
- package/build/lib/driver.d.ts +13 -0
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +4 -4
- package/build/lib/driver.js.map +1 -1
- package/build/lib/method-map.d.ts +13 -0
- package/build/lib/method-map.d.ts.map +1 -1
- package/build/lib/method-map.js +11 -0
- package/build/lib/method-map.js.map +1 -1
- package/build/lib/utils.d.ts +1 -1
- package/build/lib/utils.js +1 -1
- package/lib/app-infos-cache.js +2 -2
- package/lib/app-utils.js +1 -1
- package/lib/commands/audit.js +3 -3
- package/lib/commands/certificate.js +1 -1
- package/lib/commands/file-movement.js +2 -2
- package/lib/commands/find.js +1 -1
- package/lib/commands/geolocation.js +1 -1
- package/lib/commands/gesture.js +2 -2
- package/lib/commands/hid-event.ts +1 -1
- package/lib/commands/increase-contrast.js +1 -1
- package/lib/commands/localization.js +1 -1
- package/lib/commands/location.js +1 -1
- package/lib/commands/recordscreen.js +1 -1
- package/lib/device-log/ios-simulator-log.ts +2 -2
- package/lib/driver.js +4 -4
- package/lib/method-map.js +11 -0
- package/lib/utils.js +1 -1
- package/npm-shrinkwrap.json +8 -8
- package/package.json +1 -1
package/lib/commands/location.js
CHANGED
|
@@ -118,7 +118,7 @@ export default {
|
|
|
118
118
|
} catch (err) {
|
|
119
119
|
throw this.log.errorWithException(
|
|
120
120
|
`Failed to reset the location on the device on device '${this.opts.udid}'. ` +
|
|
121
|
-
`
|
|
121
|
+
`Original error: ${err.message}`,
|
|
122
122
|
);
|
|
123
123
|
} finally {
|
|
124
124
|
service.close();
|
|
@@ -138,7 +138,7 @@ export class ScreenRecorder {
|
|
|
138
138
|
this.timeoutHandler = null;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
if (this.mainProcess
|
|
141
|
+
if (this.mainProcess?.isRunning) {
|
|
142
142
|
const interruptPromise = this.mainProcess.stop(force ? 'SIGTERM' : 'SIGINT');
|
|
143
143
|
this.mainProcess = null;
|
|
144
144
|
try {
|
|
@@ -71,7 +71,7 @@ export class IOSSimulatorLog extends LineConsumingLog {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
override get isCapturing(): boolean {
|
|
74
|
-
return Boolean(this.proc
|
|
74
|
+
return Boolean(this.proc?.isRunning);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
private onOutput(logRow: string, prefix: string = ''): void {
|
|
@@ -131,7 +131,7 @@ export class IOSSimulatorLog extends LineConsumingLog {
|
|
|
131
131
|
await exec('kill', pids.map(String));
|
|
132
132
|
} catch (e) {
|
|
133
133
|
this.log.warn(
|
|
134
|
-
`
|
|
134
|
+
`Could not terminate one or more obsolete log streams: ${e.stderr || e.message}`
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
137
|
}
|
package/lib/driver.js
CHANGED
|
@@ -1055,7 +1055,7 @@ export class XCUITestDriver extends BaseDriver {
|
|
|
1055
1055
|
this.jwpProxyActive = false;
|
|
1056
1056
|
this.proxyReqRes = null;
|
|
1057
1057
|
|
|
1058
|
-
if (this.wda
|
|
1058
|
+
if (this.wda?.fullyStarted) {
|
|
1059
1059
|
if (this.wda.jwproxy) {
|
|
1060
1060
|
try {
|
|
1061
1061
|
await this.proxyCommand(`/session/${this.sessionId}`, 'DELETE');
|
|
@@ -1065,7 +1065,7 @@ export class XCUITestDriver extends BaseDriver {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
// The former could cache the xcodebuild, so should not quit the process.
|
|
1068
|
-
// If the session
|
|
1068
|
+
// If the session skipped the xcodebuild (this.wda.canSkipXcodebuild), the this.wda instance
|
|
1069
1069
|
// should quit properly.
|
|
1070
1070
|
if ((!this.wda.webDriverAgentUrl && this.opts.useNewWDA) || this.wda.canSkipXcodebuild) {
|
|
1071
1071
|
await this.wda.quit();
|
|
@@ -1666,7 +1666,7 @@ export class XCUITestDriver extends BaseDriver {
|
|
|
1666
1666
|
} catch (e) {
|
|
1667
1667
|
throw this.log.errorWithException(`Could not parse "otherApps" capability: ${e.message}`);
|
|
1668
1668
|
}
|
|
1669
|
-
if (!appsList
|
|
1669
|
+
if (!appsList?.length) {
|
|
1670
1670
|
this.log.info(`Got zero apps from 'otherApps' capability value. Doing nothing`);
|
|
1671
1671
|
return;
|
|
1672
1672
|
}
|
|
@@ -1764,7 +1764,7 @@ export class XCUITestDriver extends BaseDriver {
|
|
|
1764
1764
|
);
|
|
1765
1765
|
|
|
1766
1766
|
// Note: The CFBundleVersion in the test bundle was always 1.
|
|
1767
|
-
// It may not be able to compare with the installed
|
|
1767
|
+
// It may not be able to compare with the installed version.
|
|
1768
1768
|
if (this.isRealDevice()) {
|
|
1769
1769
|
await installToRealDevice.bind(this)(
|
|
1770
1770
|
this.opts.prebuiltWDAPath,
|
package/lib/method-map.js
CHANGED
|
@@ -171,4 +171,15 @@ export const newMethodMap = /** @type {const} */ ({
|
|
|
171
171
|
deprecated: true
|
|
172
172
|
},
|
|
173
173
|
},
|
|
174
|
+
'/session/:sessionId/location': {
|
|
175
|
+
GET: {
|
|
176
|
+
command: 'getGeoLocation',
|
|
177
|
+
deprecated: true,
|
|
178
|
+
},
|
|
179
|
+
POST: {
|
|
180
|
+
command: 'setGeoLocation',
|
|
181
|
+
payloadParams: {required: ['location']},
|
|
182
|
+
deprecated: true,
|
|
183
|
+
},
|
|
184
|
+
},
|
|
174
185
|
});
|
package/lib/utils.js
CHANGED
|
@@ -402,7 +402,7 @@ async function encodeBase64OrUpload(localPath, remotePath = null, uploadOptions
|
|
|
402
402
|
|
|
403
403
|
/**
|
|
404
404
|
* Stops and removes all web socket handlers that are listening
|
|
405
|
-
* in scope of the
|
|
405
|
+
* in scope of the current session.
|
|
406
406
|
*
|
|
407
407
|
* @param {Object} server - The instance of NodeJs HTTP server,
|
|
408
408
|
* which hosts Appium
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-xcuitest-driver",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-xcuitest-driver",
|
|
9
|
-
"version": "9.3.
|
|
9
|
+
"version": "9.3.2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@colors/colors": "^1.6.0",
|
|
@@ -634,9 +634,9 @@
|
|
|
634
634
|
"license": "MIT"
|
|
635
635
|
},
|
|
636
636
|
"node_modules/@types/node": {
|
|
637
|
-
"version": "22.15.
|
|
638
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.
|
|
639
|
-
"integrity": "sha512-
|
|
637
|
+
"version": "22.15.29",
|
|
638
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.29.tgz",
|
|
639
|
+
"integrity": "sha512-LNdjOkUDlU1RZb8e1kOIUpN1qQUlzGkEtbVNo53vbrwDg5om6oduhm4SiUaPW5ASTXhAiP0jInWG8Qx9fVlOeQ==",
|
|
640
640
|
"license": "MIT",
|
|
641
641
|
"dependencies": {
|
|
642
642
|
"undici-types": "~6.21.0"
|
|
@@ -803,9 +803,9 @@
|
|
|
803
803
|
}
|
|
804
804
|
},
|
|
805
805
|
"node_modules/appium-webdriveragent": {
|
|
806
|
-
"version": "9.10.
|
|
807
|
-
"resolved": "https://registry.npmjs.org/appium-webdriveragent/-/appium-webdriveragent-9.10.
|
|
808
|
-
"integrity": "sha512-
|
|
806
|
+
"version": "9.10.1",
|
|
807
|
+
"resolved": "https://registry.npmjs.org/appium-webdriveragent/-/appium-webdriveragent-9.10.1.tgz",
|
|
808
|
+
"integrity": "sha512-m3KoNWAP0PC7rFnhzBMY/li9PFIYQroGuHEVUvxGUSrnE+l8N1M4yoOLQIGWOv9g/JHUJU43LWxJZ0o5UiTxQw==",
|
|
809
809
|
"license": "Apache-2.0",
|
|
810
810
|
"dependencies": {
|
|
811
811
|
"@appium/base-driver": "^9.0.0",
|