appium-xcuitest-driver 10.3.0 → 10.4.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.
- package/CHANGELOG.md +6 -0
- package/build/lib/commands/active-app-info.d.ts +9 -0
- package/build/lib/commands/active-app-info.d.ts.map +1 -0
- package/build/lib/commands/active-app-info.js +14 -0
- package/build/lib/commands/active-app-info.js.map +1 -0
- package/build/lib/commands/alert.d.ts +42 -45
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js +66 -62
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +150 -153
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +300 -286
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/app-strings.d.ts +14 -17
- package/build/lib/commands/app-strings.d.ts.map +1 -1
- package/build/lib/commands/app-strings.js +23 -24
- package/build/lib/commands/app-strings.js.map +1 -1
- package/build/lib/commands/appearance.d.ts +19 -22
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js +56 -56
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/audit.d.ts +22 -17
- package/build/lib/commands/audit.d.ts.map +1 -1
- package/build/lib/commands/audit.js +17 -18
- package/build/lib/commands/audit.js.map +1 -1
- package/build/lib/commands/battery.d.ts +11 -14
- package/build/lib/commands/battery.d.ts.map +1 -1
- package/build/lib/commands/battery.js +36 -37
- package/build/lib/commands/battery.js.map +1 -1
- package/build/lib/commands/biometric.d.ts +30 -33
- package/build/lib/commands/biometric.d.ts.map +1 -1
- package/build/lib/commands/biometric.js +42 -41
- package/build/lib/commands/biometric.js.map +1 -1
- package/build/lib/commands/certificate.d.ts +48 -45
- package/build/lib/commands/certificate.d.ts.map +1 -1
- package/build/lib/commands/certificate.js +218 -205
- package/build/lib/commands/certificate.js.map +1 -1
- package/build/lib/commands/clipboard.d.ts +19 -22
- package/build/lib/commands/clipboard.d.ts.map +1 -1
- package/build/lib/commands/clipboard.js +30 -30
- package/build/lib/commands/clipboard.js.map +1 -1
- package/build/lib/commands/condition.d.ts +49 -26
- package/build/lib/commands/condition.d.ts.map +1 -1
- package/build/lib/commands/condition.js +87 -86
- package/build/lib/commands/condition.js.map +1 -1
- package/build/lib/commands/content-size.d.ts +26 -29
- package/build/lib/commands/content-size.d.ts.map +1 -1
- package/build/lib/commands/content-size.js +36 -36
- package/build/lib/commands/content-size.js.map +1 -1
- package/build/lib/commands/context.d.ts +161 -108
- package/build/lib/commands/context.d.ts.map +1 -1
- package/build/lib/commands/context.js +530 -517
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/deviceInfo.d.ts +9 -12
- package/build/lib/commands/deviceInfo.d.ts.map +1 -1
- package/build/lib/commands/deviceInfo.js +17 -18
- package/build/lib/commands/deviceInfo.js.map +1 -1
- package/build/lib/commands/element.d.ts +102 -105
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +337 -323
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts +24 -19
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +63 -62
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-movement.d.ts +77 -80
- package/build/lib/commands/file-movement.d.ts.map +1 -1
- package/build/lib/commands/file-movement.js +130 -124
- package/build/lib/commands/file-movement.js.map +1 -1
- package/build/lib/commands/find.d.ts +18 -21
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +158 -156
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +124 -116
- package/build/lib/commands/general.d.ts.map +1 -1
- package/build/lib/commands/general.js +248 -232
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +43 -46
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +10 -11
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/gesture.d.ts +273 -276
- package/build/lib/commands/gesture.d.ts.map +1 -1
- package/build/lib/commands/gesture.js +506 -492
- package/build/lib/commands/gesture.js.map +1 -1
- package/build/lib/commands/increase-contrast.d.ts +20 -23
- package/build/lib/commands/increase-contrast.d.ts.map +1 -1
- package/build/lib/commands/increase-contrast.js +30 -30
- package/build/lib/commands/increase-contrast.js.map +1 -1
- package/build/lib/commands/iohid.d.ts +1370 -1373
- package/build/lib/commands/iohid.d.ts.map +1 -1
- package/build/lib/commands/iohid.js +30 -31
- package/build/lib/commands/iohid.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +29 -32
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +53 -51
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/keychains.d.ts +9 -12
- package/build/lib/commands/keychains.d.ts.map +1 -1
- package/build/lib/commands/keychains.js +13 -14
- package/build/lib/commands/keychains.js.map +1 -1
- package/build/lib/commands/localization.d.ts +16 -19
- package/build/lib/commands/localization.d.ts.map +1 -1
- package/build/lib/commands/localization.js +25 -26
- package/build/lib/commands/localization.js.map +1 -1
- package/build/lib/commands/location.d.ts +36 -39
- package/build/lib/commands/location.d.ts.map +1 -1
- package/build/lib/commands/location.js +99 -98
- package/build/lib/commands/location.js.map +1 -1
- package/build/lib/commands/lock.d.ts +21 -24
- package/build/lib/commands/lock.d.ts.map +1 -1
- package/build/lib/commands/lock.js +39 -38
- package/build/lib/commands/lock.js.map +1 -1
- package/build/lib/commands/log.d.ts +43 -37
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +174 -171
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/memory.d.ts +9 -12
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js +37 -38
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/navigation.d.ts +30 -33
- package/build/lib/commands/navigation.d.ts.map +1 -1
- package/build/lib/commands/navigation.js +92 -92
- package/build/lib/commands/navigation.js.map +1 -1
- package/build/lib/commands/notifications.d.ts +26 -29
- package/build/lib/commands/notifications.d.ts.map +1 -1
- package/build/lib/commands/notifications.js +53 -53
- package/build/lib/commands/notifications.js.map +1 -1
- package/build/lib/commands/pasteboard.d.ts +21 -24
- package/build/lib/commands/pasteboard.d.ts.map +1 -1
- package/build/lib/commands/pasteboard.js +37 -37
- package/build/lib/commands/pasteboard.js.map +1 -1
- package/build/lib/commands/pcap.d.ts +39 -26
- package/build/lib/commands/pcap.d.ts.map +1 -1
- package/build/lib/commands/pcap.js +81 -81
- package/build/lib/commands/pcap.js.map +1 -1
- package/build/lib/commands/performance.d.ts +63 -44
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +105 -105
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +33 -36
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +66 -65
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/proxy-helper.d.ts +12 -15
- package/build/lib/commands/proxy-helper.d.ts.map +1 -1
- package/build/lib/commands/proxy-helper.js +53 -54
- package/build/lib/commands/proxy-helper.js.map +1 -1
- package/build/lib/commands/record-audio.d.ts +49 -29
- package/build/lib/commands/record-audio.d.ts.map +1 -1
- package/build/lib/commands/record-audio.js +100 -104
- package/build/lib/commands/record-audio.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +54 -18
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +127 -129
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/screenshots.d.ts +14 -17
- package/build/lib/commands/screenshots.d.ts.map +1 -1
- package/build/lib/commands/screenshots.js +108 -107
- package/build/lib/commands/screenshots.js.map +1 -1
- package/build/lib/commands/simctl.d.ts +11 -14
- package/build/lib/commands/simctl.d.ts.map +1 -1
- package/build/lib/commands/simctl.js +23 -26
- package/build/lib/commands/simctl.js.map +1 -1
- package/build/lib/commands/source.d.ts +14 -17
- package/build/lib/commands/source.d.ts.map +1 -1
- package/build/lib/commands/source.js +40 -43
- package/build/lib/commands/source.js.map +1 -1
- package/build/lib/commands/timeouts.d.ts +44 -33
- package/build/lib/commands/timeouts.d.ts.map +1 -1
- package/build/lib/commands/timeouts.js +65 -63
- package/build/lib/commands/timeouts.js.map +1 -1
- package/build/lib/commands/web.d.ts +247 -197
- package/build/lib/commands/web.d.ts.map +1 -1
- package/build/lib/commands/web.js +815 -786
- package/build/lib/commands/web.js.map +1 -1
- package/build/lib/commands/xctest-record-screen.d.ts +63 -66
- package/build/lib/commands/xctest-record-screen.d.ts.map +1 -1
- package/build/lib/commands/xctest-record-screen.js +103 -102
- package/build/lib/commands/xctest-record-screen.js.map +1 -1
- package/build/lib/commands/xctest.d.ts +55 -51
- package/build/lib/commands/xctest.d.ts.map +1 -1
- package/build/lib/commands/xctest.js +116 -117
- package/build/lib/commands/xctest.js.map +1 -1
- package/build/lib/driver.d.ts +278 -1597
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +319 -235
- 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 +9 -0
- package/build/lib/execute-method-map.js.map +1 -1
- package/lib/commands/active-app-info.js +12 -0
- package/lib/commands/alert.js +68 -65
- package/lib/commands/app-management.js +308 -301
- package/lib/commands/app-strings.js +24 -26
- package/lib/commands/appearance.js +54 -56
- package/lib/commands/audit.js +18 -20
- package/lib/commands/battery.js +35 -37
- package/lib/commands/biometric.js +44 -46
- package/lib/commands/certificate.js +226 -215
- package/lib/commands/clipboard.js +30 -32
- package/lib/commands/condition.js +98 -100
- package/lib/commands/content-size.js +36 -38
- package/lib/commands/context.js +495 -490
- package/lib/commands/deviceInfo.js +19 -20
- package/lib/commands/element.js +367 -357
- package/lib/commands/execute.js +72 -72
- package/lib/commands/file-movement.js +132 -134
- package/lib/commands/find.js +160 -159
- package/lib/commands/general.js +238 -231
- package/lib/commands/geolocation.js +6 -14
- package/lib/commands/gesture.js +525 -515
- package/lib/commands/increase-contrast.js +30 -32
- package/lib/commands/iohid.js +32 -34
- package/lib/commands/keyboard.js +49 -51
- package/lib/commands/keychains.js +12 -14
- package/lib/commands/localization.js +24 -26
- package/lib/commands/location.js +102 -104
- package/lib/commands/lock.js +38 -38
- package/lib/commands/log.js +197 -198
- package/lib/commands/memory.js +40 -42
- package/lib/commands/navigation.js +96 -100
- package/lib/commands/notifications.js +57 -59
- package/lib/commands/pasteboard.js +37 -39
- package/lib/commands/pcap.js +84 -86
- package/lib/commands/performance.js +132 -133
- package/lib/commands/permissions.js +67 -69
- package/lib/commands/proxy-helper.js +60 -61
- package/lib/commands/record-audio.js +115 -120
- package/lib/commands/recordscreen.js +145 -149
- package/lib/commands/screenshots.js +116 -116
- package/lib/commands/simctl.js +25 -29
- package/lib/commands/source.js +42 -46
- package/lib/commands/timeouts.js +59 -63
- package/lib/commands/web.js +878 -858
- package/lib/commands/xctest-record-screen.js +103 -105
- package/lib/commands/xctest.js +134 -139
- package/lib/driver.js +287 -235
- package/lib/execute-method-map.ts +9 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/build/lib/commands/activeAppInfo.d.ts +0 -12
- package/build/lib/commands/activeAppInfo.d.ts.map +0 -1
- package/build/lib/commands/activeAppInfo.js +0 -15
- package/build/lib/commands/activeAppInfo.js.map +0 -1
- package/build/lib/commands/index.d.ts +0 -96
- package/build/lib/commands/index.d.ts.map +0 -1
- package/build/lib/commands/index.js +0 -100
- package/build/lib/commands/index.js.map +0 -1
- package/lib/commands/activeAppInfo.js +0 -14
- package/lib/commands/index.js +0 -95
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-management.js","sourceRoot":"","sources":["../../../lib/commands/app-management.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"app-management.js","s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CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;QACjE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAChC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;IAC1F,CAAC;SAAM,CAAC;QACN,cAAc,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,mDAAmD;YACjD,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,4BAA4B,CACzD,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,KAAK,UAAU,CAAC,CAAC;AACpF,CAAC;AAED;;;GAGG"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function getStrings(this: import("../driver").XCUITestDriver, language: string, stringFile?: string | null): Promise<import("@appium/types").StringRecord<string>>;
|
|
16
|
-
}
|
|
17
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* Return the language-specific strings for an app
|
|
3
|
+
*
|
|
4
|
+
* @param {string} language - The language abbreviation to fetch app strings mapping for.
|
|
5
|
+
* If no language is provided then strings for the 'en language would be returned
|
|
6
|
+
* @param {string|null} [stringFile=null] - Relative path to the corresponding .strings
|
|
7
|
+
* file starting from the corresponding .lproj folder, e.g., `base/main.strings`. If omitted,
|
|
8
|
+
* then Appium will make its best guess where the file is.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Promise<import('@appium/types').StringRecord<string>>} A record of localized keys to localized text
|
|
11
|
+
*
|
|
12
|
+
* @this {XCUITestDriver}
|
|
13
|
+
*/
|
|
14
|
+
export function getStrings(this: import("../driver").XCUITestDriver, language: string, stringFile?: string | null): Promise<import("@appium/types").StringRecord<string>>;
|
|
18
15
|
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
19
16
|
//# sourceMappingURL=app-strings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-strings.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-strings.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-strings.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-strings.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,+EAVW,MAAM,eAEN,MAAM,GAAC,IAAI,GAIT,OAAO,CAAC,OAAO,eAAe,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC,CAcjE;6BAGY,OAAO,WAAW,EAAE,cAAc"}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStrings = getStrings;
|
|
3
4
|
const app_utils_1 = require("../app-utils");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
};
|
|
5
|
+
/**
|
|
6
|
+
* Return the language-specific strings for an app
|
|
7
|
+
*
|
|
8
|
+
* @param {string} language - The language abbreviation to fetch app strings mapping for.
|
|
9
|
+
* If no language is provided then strings for the 'en language would be returned
|
|
10
|
+
* @param {string|null} [stringFile=null] - Relative path to the corresponding .strings
|
|
11
|
+
* file starting from the corresponding .lproj folder, e.g., `base/main.strings`. If omitted,
|
|
12
|
+
* then Appium will make its best guess where the file is.
|
|
13
|
+
*
|
|
14
|
+
* @returns {Promise<import('@appium/types').StringRecord<string>>} A record of localized keys to localized text
|
|
15
|
+
*
|
|
16
|
+
* @this {XCUITestDriver}
|
|
17
|
+
*/
|
|
18
|
+
async function getStrings(language, stringFile = null) {
|
|
19
|
+
this.log.debug(`Gettings strings for language '${language}' and string file '${stringFile}'`);
|
|
20
|
+
return await app_utils_1.parseLocalizableStrings.bind(this)({
|
|
21
|
+
...this.opts,
|
|
22
|
+
language,
|
|
23
|
+
stringFile,
|
|
24
|
+
strictMode: true,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
28
27
|
/**
|
|
29
28
|
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
30
29
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-strings.js","sourceRoot":"","sources":["../../../lib/commands/app-strings.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app-strings.js","sourceRoot":"","sources":["../../../lib/commands/app-strings.js"],"names":[],"mappings":";;AAeA,gCAUC;AAzBD,4CAAqD;AAErD;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,UAAU,CAAC,QAAQ,EAAE,UAAU,GAAG,IAAI;IAC1D,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kCAAkC,QAAQ,sBAAsB,UAAU,GAAG,CAAC,CAAC;IAC9F,OAAO,MAAM,mCAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC7C;QACE,GAAG,IAAI,CAAC,IAAI;QACZ,QAAQ;QACR,UAAU;QACV,UAAU,EAAE,IAAI;KACjB,CACF,CAAC;AACJ,CAAC;AAED;;GAEG"}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}>;
|
|
21
|
-
}
|
|
22
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* Set the device's UI appearance style
|
|
3
|
+
*
|
|
4
|
+
* @since iOS 12.0
|
|
5
|
+
* @param {'dark'|'light'} style - The appearance style to set
|
|
6
|
+
* @throws {Error} if the current platform does not support UI appearance changes
|
|
7
|
+
* @this {XCUITestDriver}
|
|
8
|
+
*/
|
|
9
|
+
export function mobileSetAppearance(this: import("../driver").XCUITestDriver, style: "dark" | "light"): Promise<undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* Get the device's UI appearance style.
|
|
12
|
+
*
|
|
13
|
+
* @since Xcode SDK 11
|
|
14
|
+
* @returns {Promise<{style: Style}>}
|
|
15
|
+
* @this {XCUITestDriver}
|
|
16
|
+
*/
|
|
17
|
+
export function mobileGetAppearance(this: import("../driver").XCUITestDriver): Promise<{
|
|
18
|
+
style: Style;
|
|
19
|
+
}>;
|
|
23
20
|
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
24
21
|
export type Style = import("./types").Style;
|
|
25
22
|
//# sourceMappingURL=appearance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../lib/commands/appearance.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../lib/commands/appearance.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,qFAJW,MAAM,GAAC,OAAO,sBA0BxB;AAED;;;;;;GAMG;AACH,+EAHa,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAC,CAAC,CA0BnC;6BAGY,OAAO,WAAW,EAAE,cAAc;oBAClC,OAAO,SAAS,EAAE,KAAK"}
|
|
@@ -3,70 +3,70 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.mobileSetAppearance = mobileSetAppearance;
|
|
7
|
+
exports.mobileGetAppearance = mobileGetAppearance;
|
|
6
8
|
const lodash_1 = __importDefault(require("lodash"));
|
|
7
9
|
const support_1 = require("appium/support");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (this.isSimulator()) {
|
|
25
|
-
try {
|
|
26
|
-
return void (await /** @type {import('../driver').Simulator} */ (this.device).setAppearance(style));
|
|
27
|
-
}
|
|
28
|
-
catch (e) {
|
|
29
|
-
this.log.debug(e.stack);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
10
|
+
/**
|
|
11
|
+
* Set the device's UI appearance style
|
|
12
|
+
*
|
|
13
|
+
* @since iOS 12.0
|
|
14
|
+
* @param {'dark'|'light'} style - The appearance style to set
|
|
15
|
+
* @throws {Error} if the current platform does not support UI appearance changes
|
|
16
|
+
* @this {XCUITestDriver}
|
|
17
|
+
*/
|
|
18
|
+
async function mobileSetAppearance(style) {
|
|
19
|
+
if (!['light', 'dark'].includes(lodash_1.default.toLower(style))) {
|
|
20
|
+
throw new Error(`The 'style' value is expected to equal either 'light' or 'dark'`);
|
|
21
|
+
}
|
|
22
|
+
if (support_1.util.compareVersions(/** @type {string} */ (this.opts.platformVersion), '<', '12.0')) {
|
|
23
|
+
throw new Error('Changing appearance is only supported since iOS 12');
|
|
24
|
+
}
|
|
25
|
+
if (this.isSimulator()) {
|
|
32
26
|
try {
|
|
33
|
-
return void (await
|
|
27
|
+
return void (await /** @type {import('../driver').Simulator} */ (this.device).setAppearance(style));
|
|
34
28
|
}
|
|
35
29
|
catch (e) {
|
|
36
30
|
this.log.debug(e.stack);
|
|
37
31
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
32
|
+
}
|
|
33
|
+
try {
|
|
34
|
+
return void (await this.proxyCommand('/wda/device/appearance', 'POST', { name: style }, false));
|
|
35
|
+
}
|
|
36
|
+
catch (e) {
|
|
37
|
+
this.log.debug(e.stack);
|
|
38
|
+
}
|
|
39
|
+
// Fall back to the ugly Siri workaround if the current SDK is too old
|
|
40
|
+
await this.mobileSiriCommand(`Turn ${lodash_1.default.toLower(style) === 'dark' ? 'on' : 'off'} dark mode`);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get the device's UI appearance style.
|
|
44
|
+
*
|
|
45
|
+
* @since Xcode SDK 11
|
|
46
|
+
* @returns {Promise<{style: Style}>}
|
|
47
|
+
* @this {XCUITestDriver}
|
|
48
|
+
*/
|
|
49
|
+
async function mobileGetAppearance() {
|
|
50
|
+
if (support_1.util.compareVersions(/** @type {string} */ (this.opts.platformVersion), '<', '12.0')) {
|
|
51
|
+
return { style: 'unsupported' };
|
|
52
|
+
}
|
|
53
|
+
/** @type {Style|undefined} */
|
|
54
|
+
let style;
|
|
55
|
+
if (this.isSimulator()) {
|
|
56
|
+
try {
|
|
57
|
+
style = /** @type {Style} */ (await /** @type {import('../driver').Simulator} */ (this.device).getAppearance());
|
|
64
58
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
59
|
+
catch { }
|
|
60
|
+
}
|
|
61
|
+
if (!style) {
|
|
62
|
+
style = /** @type {Style} */ (
|
|
63
|
+
/** @type {any} */ (await this.proxyCommand('/wda/device/info', 'GET'))
|
|
64
|
+
?.userInterfaceStyle ?? 'unknown');
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
style,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
70
|
/**
|
|
71
71
|
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
72
72
|
* @typedef {import('./types').Style} Style
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appearance.js","sourceRoot":"","sources":["../../../lib/commands/appearance.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"appearance.js","sourceRoot":"","sources":["../../../lib/commands/appearance.js"],"names":[],"mappings":";;;;;AAWA,kDAsBC;AASD,kDAuBC;AAjED,oDAAuB;AACvB,4CAAoC;AAEpC;;;;;;;GAOG;AACI,KAAK,UAAU,mBAAmB,CAAC,KAAK;IAC7C,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,gBAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QAClD,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACrF,CAAC;IACD,IAAI,cAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,CAAC;QACzF,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IAED,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;QACvB,IAAI,CAAC;YACH,OAA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,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,KAAK,GAAG,oBAAoB,CAAC;QAC3B,kBAAkB,CAAC,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;YACrE,EAAE,kBAAkB,IAAI,SAAS,CACpC,CAAC;IACJ,CAAC;IACD,OAAO;QACL,KAAK;KACN,CAAC;AACJ,CAAC;AAED;;;GAGG"}
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} AccessibilityAuditItem
|
|
3
|
+
* @property {string} detailedDescription The detailed description of the found accessibility issue.
|
|
4
|
+
* @property {string} compactDescription The compact description of the found accessibility issue.
|
|
5
|
+
* @property {string|number} auditType The name of the audit type this issue belongs to. Could be
|
|
6
|
+
* a number if the type name is unknown.
|
|
7
|
+
* @property {string} element The description of the element this issue was found for.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Performs accessibility audit of the current application according to the given type or multiple types.
|
|
11
|
+
*
|
|
12
|
+
* @since Xcode 15/iOS 17
|
|
13
|
+
* @param {string[]?} auditTypes - One or more type names to perform the audit for.
|
|
14
|
+
* The full list of available names could be found at
|
|
15
|
+
* https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
|
|
16
|
+
* If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
|
|
17
|
+
*
|
|
18
|
+
* @returns {Promise<AccessibilityAuditItem[]>} List of found issues or an empty list
|
|
19
|
+
*
|
|
20
|
+
* @this {XCUITestDriver}
|
|
21
|
+
*/
|
|
22
|
+
export function mobilePerformAccessibilityAudit(this: import("../driver").XCUITestDriver, auditTypes: string[] | null): Promise<AccessibilityAuditItem[]>;
|
|
18
23
|
export type AccessibilityAuditItem = {
|
|
19
24
|
/**
|
|
20
25
|
* The detailed description of the found accessibility issue.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG;AACH,sGATW,MAAM,EAAE,OAAC,GAKP,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAQ7C;;;;;yBAxBa,MAAM;;;;wBACN,MAAM;;;;;eACN,MAAM,GAAC,MAAM;;;;aAEb,MAAM;;6BAuBP,OAAO,WAAW,EAAE,cAAc"}
|
|
@@ -8,24 +8,23 @@
|
|
|
8
8
|
* @property {string} element The description of the element this issue was found for.
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
11
|
+
exports.mobilePerformAccessibilityAudit = mobilePerformAccessibilityAudit;
|
|
12
|
+
/**
|
|
13
|
+
* Performs accessibility audit of the current application according to the given type or multiple types.
|
|
14
|
+
*
|
|
15
|
+
* @since Xcode 15/iOS 17
|
|
16
|
+
* @param {string[]?} auditTypes - One or more type names to perform the audit for.
|
|
17
|
+
* The full list of available names could be found at
|
|
18
|
+
* https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
|
|
19
|
+
* If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
|
|
20
|
+
*
|
|
21
|
+
* @returns {Promise<AccessibilityAuditItem[]>} List of found issues or an empty list
|
|
22
|
+
*
|
|
23
|
+
* @this {XCUITestDriver}
|
|
24
|
+
*/
|
|
25
|
+
async function mobilePerformAccessibilityAudit(auditTypes) {
|
|
26
|
+
return /** @type {AccessibilityAuditItem[]} */ (await this.proxyCommand('/wda/performAccessibilityAudit', 'POST', { auditTypes }));
|
|
27
|
+
}
|
|
29
28
|
/**
|
|
30
29
|
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
31
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../lib/commands/audit.js"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAeH,0EAIC;AAjBD;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,+BAA+B,CAAC,UAAU;IAC9D,OAAO,uCAAuC,CAAC,CAC7C,MAAM,IAAI,CAAC,YAAY,CAAC,gCAAgC,EAAE,MAAM,EAAE,EAAC,UAAU,EAAC,CAAC,CAChF,CAAC;AACJ,CAAC;AAED;;GAEG"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}>;
|
|
13
|
-
}
|
|
14
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* Reads the battery information from the device under test.
|
|
3
|
+
*
|
|
4
|
+
* This endpoint only returns reliable result on real devices.
|
|
5
|
+
*
|
|
6
|
+
* @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
|
|
7
|
+
* @this {import('../driver').XCUITestDriver}
|
|
8
|
+
*/
|
|
9
|
+
export function mobileGetBatteryInfo(this: import("../driver").XCUITestDriver): Promise<import("./types").BatteryInfo & {
|
|
10
|
+
advanced: Record<string, any>;
|
|
11
|
+
}>;
|
|
15
12
|
export type BatteryInfo = import("./types").BatteryInfo;
|
|
16
13
|
//# sourceMappingURL=battery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,gFAHa,OAAO,CAAC,OAAO,SAAS,EAAE,WAAW,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAC,CAAC,CAgCpF;0BAGY,OAAO,SAAS,EAAE,WAAW"}
|
|
@@ -3,47 +3,46 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.mobileGetBatteryInfo = mobileGetBatteryInfo;
|
|
6
7
|
const logger_js_1 = __importDefault(require("../logger.js"));
|
|
7
8
|
const utils_js_1 = require("../utils.js");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
await remoteXPCConnection.close();
|
|
37
|
-
}
|
|
9
|
+
/**
|
|
10
|
+
* Reads the battery information from the device under test.
|
|
11
|
+
*
|
|
12
|
+
* This endpoint only returns reliable result on real devices.
|
|
13
|
+
*
|
|
14
|
+
* @returns {Promise<import('./types').BatteryInfo & {advanced: Record<string, any>}>}
|
|
15
|
+
* @this {import('../driver').XCUITestDriver}
|
|
16
|
+
*/
|
|
17
|
+
async function mobileGetBatteryInfo() {
|
|
18
|
+
let batteryInfoFromShimService;
|
|
19
|
+
if ((0, utils_js_1.isIos18OrNewer)(this.opts) && this.isRealDevice()) {
|
|
20
|
+
let remoteXPCConnection;
|
|
21
|
+
try {
|
|
22
|
+
const { Services } = await import('appium-ios-remotexpc');
|
|
23
|
+
let { diagnosticsService, remoteXPC } = await Services.startDiagnosticsService(this.device.udid);
|
|
24
|
+
remoteXPCConnection = remoteXPC;
|
|
25
|
+
batteryInfoFromShimService = await diagnosticsService.ioregistry({
|
|
26
|
+
ioClass: 'IOPMPowerSource',
|
|
27
|
+
returnRawJson: true,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
catch (err) {
|
|
31
|
+
logger_js_1.default.error(`Failed to get battery info from DiagnosticsService: ${err.message}`);
|
|
32
|
+
}
|
|
33
|
+
finally {
|
|
34
|
+
if (remoteXPCConnection) {
|
|
35
|
+
logger_js_1.default.info(`Closing remoteXPC connection for device ${this.device.udid}`);
|
|
36
|
+
await remoteXPCConnection.close();
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
39
|
+
}
|
|
40
|
+
const batteryInfoFromWda = /** @type {import('./types').BatteryInfo}} */ (await this.proxyCommand('/wda/batteryInfo', 'GET'));
|
|
41
|
+
return {
|
|
42
|
+
...batteryInfoFromWda,
|
|
43
|
+
advanced: batteryInfoFromShimService || {},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
47
46
|
/**
|
|
48
47
|
* @typedef {import('./types').BatteryInfo} BatteryInfo
|
|
49
48
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"battery.js","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"battery.js","sourceRoot":"","sources":["../../../lib/commands/battery.js"],"names":[],"mappings":";;;;;AAWA,oDA6BC;AAxCD,6DAA+B;AAC/B,0CAA6C;AAE7C;;;;;;;GAOG;AACI,KAAK,UAAU,oBAAoB;IACxC,IAAI,0BAA0B,CAAC;IAC/B,IAAI,IAAA,yBAAc,EAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;QACrD,IAAI,mBAAmB,CAAC;QACxB,IAAI,CAAC;YACH,MAAM,EAAC,QAAQ,EAAC,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;YACxD,IAAI,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,MAAM,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACjG,mBAAmB,GAAG,SAAS,CAAC;YAChC,0BAA0B,GAAG,MAAM,kBAAkB,CAAC,UAAU,CAAC;gBAC/D,OAAO,EAAE,iBAAiB;gBAC1B,aAAa,EAAE,IAAI;aACpB,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,mBAAG,CAAC,KAAK,CAAC,uDAAuD,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QAClF,CAAC;gBAAS,CAAC;YACT,IAAI,mBAAmB,EAAE,CAAC;gBACxB,mBAAG,CAAC,IAAI,CAAC,2CAA2C,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBACxE,MAAM,mBAAmB,CAAC,KAAK,EAAE,CAAC;YACpC,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,kBAAkB,GAAG,6CAA6C,CAA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