appium-xcuitest-driver 10.14.4 → 10.14.6
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 +12 -0
- package/build/lib/commands/active-app-info.d.ts +4 -3
- package/build/lib/commands/active-app-info.d.ts.map +1 -1
- package/build/lib/commands/active-app-info.js +2 -3
- package/build/lib/commands/active-app-info.js.map +1 -1
- package/build/lib/commands/app-strings.d.ts +6 -7
- package/build/lib/commands/app-strings.d.ts.map +1 -1
- package/build/lib/commands/app-strings.js +3 -8
- package/build/lib/commands/app-strings.js.map +1 -1
- package/build/lib/commands/audit.d.ts +5 -33
- package/build/lib/commands/audit.d.ts.map +1 -1
- package/build/lib/commands/audit.js +3 -16
- package/build/lib/commands/audit.js.map +1 -1
- package/build/lib/commands/battery.d.ts +4 -4
- package/build/lib/commands/battery.d.ts.map +1 -1
- package/build/lib/commands/battery.js +3 -7
- package/build/lib/commands/battery.js.map +1 -1
- package/build/lib/commands/clipboard.d.ts +9 -11
- package/build/lib/commands/clipboard.d.ts.map +1 -1
- package/build/lib/commands/clipboard.js +8 -13
- package/build/lib/commands/clipboard.js.map +1 -1
- package/build/lib/commands/device-info.d.ts +13 -0
- package/build/lib/commands/device-info.d.ts.map +1 -0
- package/build/lib/commands/{deviceInfo.js → device-info.js} +3 -8
- package/build/lib/commands/device-info.js.map +1 -0
- package/build/lib/commands/increase-contrast.d.ts +10 -13
- package/build/lib/commands/increase-contrast.d.ts.map +1 -1
- package/build/lib/commands/increase-contrast.js +8 -16
- package/build/lib/commands/increase-contrast.js.map +1 -1
- package/build/lib/commands/keychains.d.ts +2 -2
- package/build/lib/commands/keychains.d.ts.map +1 -1
- package/build/lib/commands/keychains.js +1 -4
- package/build/lib/commands/keychains.js.map +1 -1
- package/build/lib/commands/localization.d.ts +7 -6
- package/build/lib/commands/localization.d.ts.map +1 -1
- package/build/lib/commands/localization.js +7 -8
- package/build/lib/commands/localization.js.map +1 -1
- package/build/lib/commands/lock.d.ts +6 -10
- package/build/lib/commands/lock.d.ts.map +1 -1
- package/build/lib/commands/lock.js +3 -10
- package/build/lib/commands/lock.js.map +1 -1
- package/build/lib/commands/memory.d.ts +4 -5
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js +3 -8
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/pasteboard.d.ts +9 -10
- package/build/lib/commands/pasteboard.d.ts.map +1 -1
- package/build/lib/commands/pasteboard.js +8 -13
- package/build/lib/commands/pasteboard.js.map +1 -1
- package/build/lib/commands/types.d.ts +22 -0
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/driver.d.ts +1 -1
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +1 -1
- package/build/lib/driver.js.map +1 -1
- package/lib/commands/active-app-info.ts +15 -0
- package/lib/commands/{app-strings.js → app-strings.ts} +10 -9
- package/lib/commands/audit.ts +25 -0
- package/lib/commands/{battery.js → battery.ts} +10 -12
- package/lib/commands/clipboard.ts +37 -0
- package/lib/commands/device-info.ts +24 -0
- package/lib/commands/increase-contrast.ts +49 -0
- package/lib/commands/keychains.ts +16 -0
- package/lib/commands/{localization.js → localization.ts} +22 -12
- package/lib/commands/lock.ts +43 -0
- package/lib/commands/{memory.js → memory.ts} +9 -9
- package/lib/commands/pasteboard.ts +44 -0
- package/lib/commands/types.ts +23 -0
- package/lib/driver.ts +1 -1
- package/npm-shrinkwrap.json +29 -8
- package/package.json +1 -1
- package/build/lib/commands/deviceInfo.d.ts +0 -12
- package/build/lib/commands/deviceInfo.d.ts.map +0 -1
- package/build/lib/commands/deviceInfo.js.map +0 -1
- package/lib/commands/active-app-info.js +0 -12
- package/lib/commands/audit.js +0 -31
- package/lib/commands/clipboard.js +0 -35
- package/lib/commands/deviceInfo.js +0 -27
- package/lib/commands/increase-contrast.js +0 -50
- package/lib/commands/keychains.js +0 -17
- package/lib/commands/lock.js +0 -46
- package/lib/commands/pasteboard.js +0 -43
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [10.14.6](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.5...v10.14.6) (2026-01-07)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* Migrate the rest of commands to typescript (part 10) ([#2697](https://github.com/appium/appium-xcuitest-driver/issues/2697)) ([73a5cde](https://github.com/appium/appium-xcuitest-driver/commit/73a5cdee66df6df5d78e4518c603d4dad2b780d7))
|
|
6
|
+
|
|
7
|
+
## [10.14.5](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.4...v10.14.5) (2026-01-06)
|
|
8
|
+
|
|
9
|
+
### Miscellaneous Chores
|
|
10
|
+
|
|
11
|
+
* Migrate various commands to typescript (part 9) ([#2695](https://github.com/appium/appium-xcuitest-driver/issues/2695)) ([615b21f](https://github.com/appium/appium-xcuitest-driver/commit/615b21f166ad967e9cb6b3962c9dfed1c7b267e3))
|
|
12
|
+
|
|
1
13
|
## [10.14.4](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.3...v10.14.4) (2026-01-05)
|
|
2
14
|
|
|
3
15
|
### Miscellaneous Chores
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
2
|
+
import type { ActiveAppInfo } from './types';
|
|
1
3
|
/**
|
|
2
4
|
* Returns information about the active application.
|
|
3
5
|
*
|
|
4
|
-
* @returns
|
|
6
|
+
* @returns Active app information
|
|
5
7
|
* @throws {Error} if an error raised by command
|
|
6
|
-
* @this {import('../driver').XCUITestDriver}
|
|
7
8
|
*/
|
|
8
|
-
export function mobileGetActiveAppInfo(this:
|
|
9
|
+
export declare function mobileGetActiveAppInfo(this: XCUITestDriver): Promise<ActiveAppInfo>;
|
|
9
10
|
//# sourceMappingURL=active-app-info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-app-info.d.ts","sourceRoot":"","sources":["../../../lib/commands/active-app-info.
|
|
1
|
+
{"version":3,"file":"active-app-info.d.ts","sourceRoot":"","sources":["../../../lib/commands/active-app-info.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAE3C;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,aAAa,CAAC,CAExB"}
|
|
@@ -4,11 +4,10 @@ exports.mobileGetActiveAppInfo = mobileGetActiveAppInfo;
|
|
|
4
4
|
/**
|
|
5
5
|
* Returns information about the active application.
|
|
6
6
|
*
|
|
7
|
-
* @returns
|
|
7
|
+
* @returns Active app information
|
|
8
8
|
* @throws {Error} if an error raised by command
|
|
9
|
-
* @this {import('../driver').XCUITestDriver}
|
|
10
9
|
*/
|
|
11
10
|
async function mobileGetActiveAppInfo() {
|
|
12
|
-
return
|
|
11
|
+
return await this.proxyCommand('/wda/activeAppInfo', 'GET');
|
|
13
12
|
}
|
|
14
13
|
//# sourceMappingURL=active-app-info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-app-info.js","sourceRoot":"","sources":["../../../lib/commands/active-app-info.
|
|
1
|
+
{"version":3,"file":"active-app-info.js","sourceRoot":"","sources":["../../../lib/commands/active-app-info.ts"],"names":[],"mappings":";;AASA,wDAIC;AAVD;;;;;GAKG;AACI,KAAK,UAAU,sBAAsB;IAG1C,OAAO,MAAM,IAAI,CAAC,YAAY,CAAyB,oBAAoB,EAAE,KAAK,CAAC,CAAC;AACtF,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
2
|
+
import type { StringRecord } from '@appium/types';
|
|
1
3
|
/**
|
|
2
4
|
* Return the language-specific strings for an app
|
|
3
5
|
*
|
|
4
|
-
* @param
|
|
6
|
+
* @param language - The language abbreviation to fetch app strings mapping for.
|
|
5
7
|
* If no language is provided then strings for the 'en language would be returned
|
|
6
|
-
* @param
|
|
8
|
+
* @param stringFile - Relative path to the corresponding .strings
|
|
7
9
|
* file starting from the corresponding .lproj folder, e.g., `base/main.strings`. If omitted,
|
|
8
10
|
* then Appium will make its best guess where the file is.
|
|
9
11
|
*
|
|
10
|
-
* @returns
|
|
11
|
-
*
|
|
12
|
-
* @this {XCUITestDriver}
|
|
12
|
+
* @returns A record of localized keys to localized text
|
|
13
13
|
*/
|
|
14
|
-
export function getStrings(this:
|
|
15
|
-
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
14
|
+
export declare function getStrings(this: XCUITestDriver, language: string, stringFile?: string | null): Promise<StringRecord<string>>;
|
|
16
15
|
//# sourceMappingURL=app-strings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-strings.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-strings.
|
|
1
|
+
{"version":3,"file":"app-strings.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-strings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,wBAAsB,UAAU,CAC9B,IAAI,EAAE,cAAc,EACpB,QAAQ,EAAE,MAAM,EAChB,UAAU,GAAE,MAAM,GAAG,IAAW,GAC/B,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAU/B"}
|
|
@@ -5,15 +5,13 @@ const app_utils_1 = require("../app-utils");
|
|
|
5
5
|
/**
|
|
6
6
|
* Return the language-specific strings for an app
|
|
7
7
|
*
|
|
8
|
-
* @param
|
|
8
|
+
* @param language - The language abbreviation to fetch app strings mapping for.
|
|
9
9
|
* If no language is provided then strings for the 'en language would be returned
|
|
10
|
-
* @param
|
|
10
|
+
* @param stringFile - Relative path to the corresponding .strings
|
|
11
11
|
* file starting from the corresponding .lproj folder, e.g., `base/main.strings`. If omitted,
|
|
12
12
|
* then Appium will make its best guess where the file is.
|
|
13
13
|
*
|
|
14
|
-
* @returns
|
|
15
|
-
*
|
|
16
|
-
* @this {XCUITestDriver}
|
|
14
|
+
* @returns A record of localized keys to localized text
|
|
17
15
|
*/
|
|
18
16
|
async function getStrings(language, stringFile = null) {
|
|
19
17
|
this.log.debug(`Gettings strings for language '${language}' and string file '${stringFile}'`);
|
|
@@ -24,7 +22,4 @@ async function getStrings(language, stringFile = null) {
|
|
|
24
22
|
strictMode: true,
|
|
25
23
|
});
|
|
26
24
|
}
|
|
27
|
-
/**
|
|
28
|
-
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
29
|
-
*/
|
|
30
25
|
//# sourceMappingURL=app-strings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-strings.js","sourceRoot":"","sources":["../../../lib/commands/app-strings.
|
|
1
|
+
{"version":3,"file":"app-strings.js","sourceRoot":"","sources":["../../../lib/commands/app-strings.ts"],"names":[],"mappings":";;AAeA,gCAcC;AA7BD,4CAAqD;AAIrD;;;;;;;;;;GAUG;AACI,KAAK,UAAU,UAAU,CAE9B,QAAgB,EAChB,aAA4B,IAAI;IAEhC,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"}
|
|
@@ -1,43 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
*/
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
2
|
+
import type { AccessibilityAuditItem } from './types';
|
|
9
3
|
/**
|
|
10
4
|
* Performs accessibility audit of the current application according to the given type or multiple types.
|
|
11
5
|
*
|
|
12
6
|
* @since Xcode 15/iOS 17
|
|
13
|
-
* @param
|
|
7
|
+
* @param auditTypes - One or more type names to perform the audit for.
|
|
14
8
|
* The full list of available names could be found at
|
|
15
9
|
* https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
|
|
16
10
|
* If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
|
|
17
11
|
*
|
|
18
|
-
* @returns
|
|
19
|
-
*
|
|
20
|
-
* @this {XCUITestDriver}
|
|
12
|
+
* @returns List of found issues or an empty list
|
|
21
13
|
*/
|
|
22
|
-
export function mobilePerformAccessibilityAudit(this:
|
|
23
|
-
export type AccessibilityAuditItem = {
|
|
24
|
-
/**
|
|
25
|
-
* The detailed description of the found accessibility issue.
|
|
26
|
-
*/
|
|
27
|
-
detailedDescription: string;
|
|
28
|
-
/**
|
|
29
|
-
* The compact description of the found accessibility issue.
|
|
30
|
-
*/
|
|
31
|
-
compactDescription: string;
|
|
32
|
-
/**
|
|
33
|
-
* The name of the audit type this issue belongs to. Could be
|
|
34
|
-
* a number if the type name is unknown.
|
|
35
|
-
*/
|
|
36
|
-
auditType: string | number;
|
|
37
|
-
/**
|
|
38
|
-
* The description of the element this issue was found for.
|
|
39
|
-
*/
|
|
40
|
-
element: string;
|
|
41
|
-
};
|
|
42
|
-
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
14
|
+
export declare function mobilePerformAccessibilityAudit(this: XCUITestDriver, auditTypes?: string[]): Promise<AccessibilityAuditItem[]>;
|
|
43
15
|
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../lib/commands/audit.
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../lib/commands/audit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAEpD;;;;;;;;;;GAUG;AACH,wBAAsB,+BAA+B,CACnD,IAAI,EAAE,cAAc,EACpB,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAMnC"}
|
|
@@ -1,31 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @typedef {Object} AccessibilityAuditItem
|
|
4
|
-
* @property {string} detailedDescription The detailed description of the found accessibility issue.
|
|
5
|
-
* @property {string} compactDescription The compact description of the found accessibility issue.
|
|
6
|
-
* @property {string|number} auditType The name of the audit type this issue belongs to. Could be
|
|
7
|
-
* a number if the type name is unknown.
|
|
8
|
-
* @property {string} element The description of the element this issue was found for.
|
|
9
|
-
*/
|
|
10
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
3
|
exports.mobilePerformAccessibilityAudit = mobilePerformAccessibilityAudit;
|
|
12
4
|
/**
|
|
13
5
|
* Performs accessibility audit of the current application according to the given type or multiple types.
|
|
14
6
|
*
|
|
15
7
|
* @since Xcode 15/iOS 17
|
|
16
|
-
* @param
|
|
8
|
+
* @param auditTypes - One or more type names to perform the audit for.
|
|
17
9
|
* The full list of available names could be found at
|
|
18
10
|
* https://developer.apple.com/documentation/xctest/xcuiaccessibilityaudittype?language=objc
|
|
19
11
|
* If no type if provided explicitly then XCUIAccessibilityAuditTypeAll is assumed.
|
|
20
12
|
*
|
|
21
|
-
* @returns
|
|
22
|
-
*
|
|
23
|
-
* @this {XCUITestDriver}
|
|
13
|
+
* @returns List of found issues or an empty list
|
|
24
14
|
*/
|
|
25
15
|
async function mobilePerformAccessibilityAudit(auditTypes) {
|
|
26
|
-
return
|
|
16
|
+
return await this.proxyCommand('/wda/performAccessibilityAudit', 'POST', { auditTypes });
|
|
27
17
|
}
|
|
28
|
-
/**
|
|
29
|
-
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
30
|
-
*/
|
|
31
18
|
//# sourceMappingURL=audit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../lib/commands/audit.
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../lib/commands/audit.ts"],"names":[],"mappings":";;AAcA,0EASC;AApBD;;;;;;;;;;GAUG;AACI,KAAK,UAAU,+BAA+B,CAEnD,UAAqB;IAErB,OAAO,MAAM,IAAI,CAAC,YAAY,CAC5B,gCAAgC,EAChC,MAAM,EACN,EAAC,UAAU,EAAC,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
2
|
+
import type { BatteryInfo } from './types';
|
|
1
3
|
/**
|
|
2
4
|
* Reads the battery information from the device under test.
|
|
3
5
|
*
|
|
4
6
|
* This endpoint only returns reliable result on real devices.
|
|
5
7
|
*
|
|
6
|
-
* @returns
|
|
7
|
-
* @this {import('../driver').XCUITestDriver}
|
|
8
|
+
* @returns Battery information with advanced details
|
|
8
9
|
*/
|
|
9
|
-
export function mobileGetBatteryInfo(this:
|
|
10
|
+
export declare function mobileGetBatteryInfo(this: XCUITestDriver): Promise<BatteryInfo & {
|
|
10
11
|
advanced: Record<string, any>;
|
|
11
12
|
}>;
|
|
12
|
-
export type BatteryInfo = import("./types").BatteryInfo;
|
|
13
13
|
//# sourceMappingURL=battery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../../lib/commands/battery.
|
|
1
|
+
{"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../../../lib/commands/battery.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEzC;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,WAAW,GAAG;IAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAC,CAAC,CA2BxD"}
|
|
@@ -7,8 +7,7 @@ const utils_1 = require("../utils");
|
|
|
7
7
|
*
|
|
8
8
|
* This endpoint only returns reliable result on real devices.
|
|
9
9
|
*
|
|
10
|
-
* @returns
|
|
11
|
-
* @this {import('../driver').XCUITestDriver}
|
|
10
|
+
* @returns Battery information with advanced details
|
|
12
11
|
*/
|
|
13
12
|
async function mobileGetBatteryInfo() {
|
|
14
13
|
let batteryInfoFromShimService;
|
|
@@ -16,7 +15,7 @@ async function mobileGetBatteryInfo() {
|
|
|
16
15
|
let remoteXPCConnection;
|
|
17
16
|
try {
|
|
18
17
|
const { Services } = await import('appium-ios-remotexpc');
|
|
19
|
-
|
|
18
|
+
const { diagnosticsService, remoteXPC } = await Services.startDiagnosticsService(this.device.udid);
|
|
20
19
|
remoteXPCConnection = remoteXPC;
|
|
21
20
|
batteryInfoFromShimService = await diagnosticsService.ioregistry({
|
|
22
21
|
ioClass: 'IOPMPowerSource',
|
|
@@ -33,13 +32,10 @@ async function mobileGetBatteryInfo() {
|
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
|
-
const batteryInfoFromWda =
|
|
35
|
+
const batteryInfoFromWda = await this.proxyCommand('/wda/batteryInfo', 'GET');
|
|
37
36
|
return {
|
|
38
37
|
...batteryInfoFromWda,
|
|
39
38
|
advanced: batteryInfoFromShimService || {},
|
|
40
39
|
};
|
|
41
40
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @typedef {import('./types').BatteryInfo} BatteryInfo
|
|
44
|
-
*/
|
|
45
41
|
//# sourceMappingURL=battery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"battery.js","sourceRoot":"","sources":["../../../lib/commands/battery.
|
|
1
|
+
{"version":3,"file":"battery.js","sourceRoot":"","sources":["../../../lib/commands/battery.ts"],"names":[],"mappings":";;AAWA,oDA6BC;AAxCD,oCAA0C;AAI1C;;;;;;GAMG;AACI,KAAK,UAAU,oBAAoB;IAGxC,IAAI,0BAA2D,CAAC;IAChE,IAAI,IAAA,sBAAc,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,MAAM,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,MAAM,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACnG,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,GAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,uDAAuD,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QACvF,CAAC;gBAAS,CAAC;YACT,IAAI,mBAAmB,EAAE,CAAC;gBACxB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,2CAA2C,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBAC7E,MAAM,mBAAmB,CAAC,KAAK,EAAE,CAAC;YACpC,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,YAAY,CAAmB,kBAAkB,EAAE,KAAK,CAAC,CAAC;IAChG,OAAO;QACL,GAAG,kBAAkB;QACrB,QAAQ,EAAE,0BAA0B,IAAI,EAAE;KAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
1
2
|
/**
|
|
2
3
|
* Sets the primary clipboard's content on the device under test.
|
|
3
4
|
*
|
|
4
|
-
* @param
|
|
5
|
-
* @param
|
|
6
|
-
*
|
|
7
|
-
* @this {XCUITestDriver}
|
|
5
|
+
* @param content - The content to be set as base64 encoded string.
|
|
6
|
+
* @param contentType - The type of the content to set.
|
|
7
|
+
* Only `plaintext`, 'image' and 'url' are supported.
|
|
8
8
|
*/
|
|
9
|
-
export function setClipboard(this:
|
|
9
|
+
export declare function setClipboard(this: XCUITestDriver, content: string, contentType?: string): Promise<void>;
|
|
10
10
|
/**
|
|
11
11
|
* Gets the content of the primary clipboard on the device under test.
|
|
12
12
|
*
|
|
13
|
-
* @param
|
|
14
|
-
*
|
|
15
|
-
* @returns
|
|
13
|
+
* @param contentType - The type of the content to get.
|
|
14
|
+
* Only `plaintext`, 'image' and 'url' are supported.
|
|
15
|
+
* @returns The actual clipboard content encoded into base64 string.
|
|
16
16
|
* An empty string is returned if the clipboard contains no data.
|
|
17
|
-
* @this {XCUITestDriver}
|
|
18
17
|
*/
|
|
19
|
-
export function getClipboard(this:
|
|
20
|
-
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
18
|
+
export declare function getClipboard(this: XCUITestDriver, contentType?: string): Promise<string>;
|
|
21
19
|
//# sourceMappingURL=clipboard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../lib/commands/clipboard.
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../lib/commands/clipboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAE9C;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,cAAc,EACpB,OAAO,EAAE,MAAM,EACf,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAKf;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,cAAc,EACpB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,CAAC,CAIjB"}
|
|
@@ -5,10 +5,9 @@ exports.getClipboard = getClipboard;
|
|
|
5
5
|
/**
|
|
6
6
|
* Sets the primary clipboard's content on the device under test.
|
|
7
7
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
*
|
|
11
|
-
* @this {XCUITestDriver}
|
|
8
|
+
* @param content - The content to be set as base64 encoded string.
|
|
9
|
+
* @param contentType - The type of the content to set.
|
|
10
|
+
* Only `plaintext`, 'image' and 'url' are supported.
|
|
12
11
|
*/
|
|
13
12
|
async function setClipboard(content, contentType) {
|
|
14
13
|
await this.proxyCommand('/wda/setPasteboard', 'POST', {
|
|
@@ -19,18 +18,14 @@ async function setClipboard(content, contentType) {
|
|
|
19
18
|
/**
|
|
20
19
|
* Gets the content of the primary clipboard on the device under test.
|
|
21
20
|
*
|
|
22
|
-
* @param
|
|
23
|
-
*
|
|
24
|
-
* @returns
|
|
21
|
+
* @param contentType - The type of the content to get.
|
|
22
|
+
* Only `plaintext`, 'image' and 'url' are supported.
|
|
23
|
+
* @returns The actual clipboard content encoded into base64 string.
|
|
25
24
|
* An empty string is returned if the clipboard contains no data.
|
|
26
|
-
* @this {XCUITestDriver}
|
|
27
25
|
*/
|
|
28
26
|
async function getClipboard(contentType) {
|
|
29
|
-
return
|
|
27
|
+
return await this.proxyCommand('/wda/getPasteboard', 'POST', {
|
|
30
28
|
contentType,
|
|
31
|
-
})
|
|
29
|
+
});
|
|
32
30
|
}
|
|
33
|
-
/**
|
|
34
|
-
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
35
|
-
*/
|
|
36
31
|
//# sourceMappingURL=clipboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../../../lib/commands/clipboard.
|
|
1
|
+
{"version":3,"file":"clipboard.js","sourceRoot":"","sources":["../../../lib/commands/clipboard.ts"],"names":[],"mappings":";;AASA,oCASC;AAUD,oCAOC;AAjCD;;;;;;GAMG;AACI,KAAK,UAAU,YAAY,CAEhC,OAAe,EACf,WAAoB;IAEpB,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,MAAM,EAAE;QACpD,OAAO;QACP,WAAW;KACZ,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,YAAY,CAEhC,WAAoB;IAEpB,OAAO,MAAM,IAAI,CAAC,YAAY,CAAc,oBAAoB,EAAE,MAAM,EAAE;QACxE,WAAW;KACZ,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
2
|
+
import type { DeviceInfo, LockdownInfo } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Returns the miscellaneous information about the device under test.
|
|
5
|
+
*
|
|
6
|
+
* Since XCUITest driver v4.2.0, this includes device information via lockdown in a real device.
|
|
7
|
+
*
|
|
8
|
+
* @returns The response of `/wda/device/info'`
|
|
9
|
+
*/
|
|
10
|
+
export declare function mobileGetDeviceInfo(this: XCUITestDriver): Promise<DeviceInfo | (DeviceInfo & {
|
|
11
|
+
lockdownInfo: LockdownInfo;
|
|
12
|
+
})>;
|
|
13
|
+
//# sourceMappingURL=device-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-info.d.ts","sourceRoot":"","sources":["../../../lib/commands/device-info.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,SAAS,CAAC;AAEtD;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,UAAU,GAAG,CAAC,UAAU,GAAG;IAAC,YAAY,EAAE,YAAY,CAAA;CAAC,CAAC,CAAC,CASnE"}
|
|
@@ -7,19 +7,14 @@ const appium_ios_device_1 = require("appium-ios-device");
|
|
|
7
7
|
*
|
|
8
8
|
* Since XCUITest driver v4.2.0, this includes device information via lockdown in a real device.
|
|
9
9
|
*
|
|
10
|
-
* @returns
|
|
11
|
-
* @this {import('../driver').XCUITestDriver}
|
|
10
|
+
* @returns The response of `/wda/device/info'`
|
|
12
11
|
*/
|
|
13
12
|
async function mobileGetDeviceInfo() {
|
|
14
|
-
const infoByWda =
|
|
13
|
+
const infoByWda = await this.proxyCommand('/wda/device/info', 'GET');
|
|
15
14
|
if (this.isRealDevice()) {
|
|
16
15
|
const lockdownInfo = await appium_ios_device_1.utilities.getDeviceInfo(this.device.udid);
|
|
17
16
|
return { ...infoByWda, ...{ lockdownInfo } };
|
|
18
17
|
}
|
|
19
18
|
return infoByWda;
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
* @typedef {import('./types').DeviceInfo} DeviceInfo
|
|
23
|
-
* @typedef {import('./types').LockdownInfo} LockdownInfo
|
|
24
|
-
*/
|
|
25
|
-
//# sourceMappingURL=deviceInfo.js.map
|
|
20
|
+
//# sourceMappingURL=device-info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-info.js","sourceRoot":"","sources":["../../../lib/commands/device-info.ts"],"names":[],"mappings":";;AAWA,kDAWC;AAtBD,yDAA4C;AAI5C;;;;;;GAMG;AACI,KAAK,UAAU,mBAAmB;IAGvC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,YAAY,CAAsB,kBAAkB,EAAE,KAAK,CAAC,CAAC;IAE1F,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;QACxB,MAAM,YAAY,GAAG,MAAM,6BAAS,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrE,OAAO,EAAC,GAAG,SAAS,EAAE,GAAG,EAAC,YAAY,EAAC,EAAC,CAAC;IAC3C,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
2
|
+
import type { IncreaseContrastAction, IncreaseContrastResult } from './types';
|
|
1
3
|
/**
|
|
2
4
|
* Sets the increase contrast configuration for the given simulator.
|
|
3
5
|
*
|
|
4
6
|
* @since Xcode 15 (but lower xcode could have this command)
|
|
5
|
-
* @param
|
|
6
|
-
*
|
|
7
|
-
* @throws
|
|
8
|
-
* @this {XCUITestDriver}
|
|
7
|
+
* @param increaseContrast - Valid increase contrast configuration value.
|
|
8
|
+
* Acceptable value is 'enabled' or 'disabled' with Xcode 16.2.
|
|
9
|
+
* @throws If the current platform does not support content size appearance changes
|
|
9
10
|
*/
|
|
10
|
-
export function mobileSetIncreaseContrast(this:
|
|
11
|
+
export declare function mobileSetIncreaseContrast(this: XCUITestDriver, increaseContrast: IncreaseContrastAction): Promise<void>;
|
|
11
12
|
/**
|
|
12
13
|
* Retrieves the current increase contrast configuration value from the given simulator.
|
|
13
14
|
*
|
|
14
15
|
* @since Xcode 15 (but lower xcode could have this command)
|
|
15
|
-
* @returns
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @this {XCUITestDriver}
|
|
16
|
+
* @returns The contrast configuration value.
|
|
17
|
+
* Possible return value is 'enabled', 'disabled',
|
|
18
|
+
* 'unsupported' or 'unknown' with Xcode 16.2.
|
|
19
19
|
*/
|
|
20
|
-
export function mobileGetIncreaseContrast(this:
|
|
21
|
-
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
22
|
-
export type IncreaseContrastAction = import("./types").IncreaseContrastAction;
|
|
23
|
-
export type IncreaseContrastResult = import("./types").IncreaseContrastResult;
|
|
20
|
+
export declare function mobileGetIncreaseContrast(this: XCUITestDriver): Promise<IncreaseContrastResult>;
|
|
24
21
|
//# sourceMappingURL=increase-contrast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"increase-contrast.d.ts","sourceRoot":"","sources":["../../../lib/commands/increase-contrast.
|
|
1
|
+
{"version":3,"file":"increase-contrast.d.ts","sourceRoot":"","sources":["../../../lib/commands/increase-contrast.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,sBAAsB,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAU5E;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,cAAc,EACpB,gBAAgB,EAAE,sBAAsB,GACvC,OAAO,CAAC,IAAI,CAAC,CAQf;AAED;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,sBAAsB,CAAC,CAEjC"}
|
|
@@ -17,33 +17,25 @@ const INCREASE_CONTRAST_CONFIG = [
|
|
|
17
17
|
* Sets the increase contrast configuration for the given simulator.
|
|
18
18
|
*
|
|
19
19
|
* @since Xcode 15 (but lower xcode could have this command)
|
|
20
|
-
* @param
|
|
21
|
-
*
|
|
22
|
-
* @throws
|
|
23
|
-
* @this {XCUITestDriver}
|
|
20
|
+
* @param increaseContrast - Valid increase contrast configuration value.
|
|
21
|
+
* Acceptable value is 'enabled' or 'disabled' with Xcode 16.2.
|
|
22
|
+
* @throws If the current platform does not support content size appearance changes
|
|
24
23
|
*/
|
|
25
24
|
async function mobileSetIncreaseContrast(increaseContrast) {
|
|
26
|
-
const simulator = assertSimulator(this);
|
|
27
25
|
if (!INCREASE_CONTRAST_CONFIG.includes(lodash_1.default.lowerCase(increaseContrast))) {
|
|
28
26
|
throw new driver_1.errors.InvalidArgumentError(`The 'increaseContrast' value is expected to be one of ${INCREASE_CONTRAST_CONFIG.join(',')}`);
|
|
29
27
|
}
|
|
30
|
-
await
|
|
28
|
+
await assertSimulator(this).setIncreaseContrast(increaseContrast);
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
33
31
|
* Retrieves the current increase contrast configuration value from the given simulator.
|
|
34
32
|
*
|
|
35
33
|
* @since Xcode 15 (but lower xcode could have this command)
|
|
36
|
-
* @returns
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* @this {XCUITestDriver}
|
|
34
|
+
* @returns The contrast configuration value.
|
|
35
|
+
* Possible return value is 'enabled', 'disabled',
|
|
36
|
+
* 'unsupported' or 'unknown' with Xcode 16.2.
|
|
40
37
|
*/
|
|
41
38
|
async function mobileGetIncreaseContrast() {
|
|
42
|
-
return
|
|
39
|
+
return await assertSimulator(this).getIncreaseContrast();
|
|
43
40
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
46
|
-
* @typedef {import('./types').IncreaseContrastAction} IncreaseContrastAction
|
|
47
|
-
* @typedef {import('./types').IncreaseContrastResult} IncreaseContrastResult
|
|
48
|
-
*/
|
|
49
41
|
//# sourceMappingURL=increase-contrast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"increase-contrast.js","sourceRoot":"","sources":["../../../lib/commands/increase-contrast.
|
|
1
|
+
{"version":3,"file":"increase-contrast.js","sourceRoot":"","sources":["../../../lib/commands/increase-contrast.ts"],"names":[],"mappings":";;;;;AAsBA,8DAWC;AAUD,8DAIC;AA/CD,oDAAuB;AACvB,oCAA6D;AAC7D,0CAAuC;AAKvC,MAAM,eAAe,GAAG,CAAC,MAAsB,EAAa,EAAE,CAAC,uBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;AAExH,MAAM,wBAAwB,GAAG;IAC7B,SAAS;IACT,UAAU;CACJ,CAAC;AAEX;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB,CAE7C,gBAAwC;IAExC,IAAI,CAAE,wBAA8C,CAAC,QAAQ,CAAC,gBAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC;QAC7F,MAAM,IAAI,eAAM,CAAC,oBAAoB,CACnC,yDAAyD,wBAAwB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAC9F,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AACpE,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB;IAG7C,OAAO,MAAM,eAAe,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAA4B,CAAC;AACrF,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
1
2
|
/**
|
|
2
3
|
* Clears keychains on a simulated device.
|
|
3
4
|
*
|
|
4
5
|
* @throws {Error} If current device is not a Simulator or there was an error
|
|
5
6
|
* while clearing keychains.
|
|
6
|
-
* @this {import('../driver').XCUITestDriver}
|
|
7
7
|
* @group Simulator Only
|
|
8
8
|
*/
|
|
9
|
-
export function mobileClearKeychains(this:
|
|
9
|
+
export declare function mobileClearKeychains(this: XCUITestDriver): Promise<void>;
|
|
10
10
|
//# sourceMappingURL=keychains.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keychains.d.ts","sourceRoot":"","sources":["../../../lib/commands/keychains.
|
|
1
|
+
{"version":3,"file":"keychains.d.ts","sourceRoot":"","sources":["../../../lib/commands/keychains.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAE9C;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,cAAc,GACnB,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -2,17 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mobileClearKeychains = mobileClearKeychains;
|
|
4
4
|
const utils_1 = require("../utils");
|
|
5
|
-
const assertSimulator = (driver) => utils_1.assertSimulator.call(driver, 'Keychain modification');
|
|
6
5
|
/**
|
|
7
6
|
* Clears keychains on a simulated device.
|
|
8
7
|
*
|
|
9
8
|
* @throws {Error} If current device is not a Simulator or there was an error
|
|
10
9
|
* while clearing keychains.
|
|
11
|
-
* @this {import('../driver').XCUITestDriver}
|
|
12
10
|
* @group Simulator Only
|
|
13
11
|
*/
|
|
14
12
|
async function mobileClearKeychains() {
|
|
15
|
-
assertSimulator(this);
|
|
16
|
-
await /** @type {import('appium-ios-simulator').Simulator} */ (this.device).clearKeychains();
|
|
13
|
+
await utils_1.assertSimulator.call(this, 'Keychain modification').clearKeychains();
|
|
17
14
|
}
|
|
18
15
|
//# sourceMappingURL=keychains.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keychains.js","sourceRoot":"","sources":["../../../lib/commands/keychains.
|
|
1
|
+
{"version":3,"file":"keychains.js","sourceRoot":"","sources":["../../../lib/commands/keychains.ts"],"names":[],"mappings":";;AAUA,oDAIC;AAdD,oCAAyC;AAGzC;;;;;;GAMG;AACI,KAAK,UAAU,oBAAoB;IAGxC,MAAM,uBAAe,CAAC,IAAI,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC,cAAc,EAAE,CAAC;AAC7E,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
2
|
+
import type { KeyboardOptions, LanguageOptions, LocaleOptions } from './types';
|
|
1
3
|
/**
|
|
2
4
|
* Change localization settings on the currently booted simulator
|
|
3
5
|
*
|
|
@@ -5,13 +7,12 @@
|
|
|
5
7
|
* Currently running applications will be unchanged. This means, for example, that the keyboard should be hidden and shown again in order to observe the changed layout, and corresponding apps must be restarted in order to observe their interface using the newly set locale/language.
|
|
6
8
|
*
|
|
7
9
|
* The driver performs no strict checking of the arguments (such as locale names). Be aware that an incorrect or invalid string may cause unexpected behavior.
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @param
|
|
10
|
+
* @param keyboard - Keyboard options
|
|
11
|
+
* @param language - Language options
|
|
12
|
+
* @param locale - Locale options
|
|
11
13
|
* @throws {Error} If there was a failure while setting the preferences
|
|
12
|
-
* @returns
|
|
14
|
+
* @returns `true` if any of settings has been successfully changed
|
|
13
15
|
* @group Simulator Only
|
|
14
|
-
* @this {import('../driver').XCUITestDriver}
|
|
15
16
|
*/
|
|
16
|
-
export function mobileConfigureLocalization(this:
|
|
17
|
+
export declare function mobileConfigureLocalization(this: XCUITestDriver, keyboard?: KeyboardOptions, language?: LanguageOptions, locale?: LocaleOptions): Promise<boolean>;
|
|
17
18
|
//# sourceMappingURL=localization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../../lib/commands/localization.
|
|
1
|
+
{"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../../lib/commands/localization.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAC,eAAe,EAAE,eAAe,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAE7E;;;;;;;;;;;;;GAaG;AACH,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,cAAc,EACpB,QAAQ,CAAC,EAAE,eAAe,EAC1B,QAAQ,CAAC,EAAE,eAAe,EAC1B,MAAM,CAAC,EAAE,aAAa,GACrB,OAAO,CAAC,OAAO,CAAC,CAclB"}
|