appium-xcuitest-driver 10.3.0 → 10.4.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 +12 -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 +275 -197
- package/build/lib/commands/web.d.ts.map +1 -1
- package/build/lib/commands/web.js +866 -785
- 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 +277 -1597
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +318 -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 +932 -859
- package/lib/commands/xctest-record-screen.js +103 -105
- package/lib/commands/xctest.js +134 -139
- package/lib/driver.js +286 -235
- package/lib/execute-method-map.ts +9 -0
- package/npm-shrinkwrap.json +8 -8
- 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/build/lib/cookies.d.ts +0 -15
- package/build/lib/cookies.d.ts.map +0 -1
- package/build/lib/cookies.js +0 -84
- package/build/lib/cookies.js.map +0 -1
- package/lib/commands/activeAppInfo.js +0 -14
- package/lib/commands/index.js +0 -95
- package/lib/cookies.js +0 -92
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [10.4.1](https://github.com/appium/appium-xcuitest-driver/compare/v10.4.0...v10.4.1) (2025-11-03)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* Ditch unused cookie-related functions ([#2647](https://github.com/appium/appium-xcuitest-driver/issues/2647)) ([f068585](https://github.com/appium/appium-xcuitest-driver/commit/f0685855a9014b6ee7d4281e77fe67563848ddd0))
|
|
6
|
+
|
|
7
|
+
## [10.4.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.3.0...v10.4.0) (2025-11-02)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Make command exports more straightforward ([#2646](https://github.com/appium/appium-xcuitest-driver/issues/2646)) ([254bc04](https://github.com/appium/appium-xcuitest-driver/commit/254bc0468bba9cee4437286495ba7c0273ddd16e))
|
|
12
|
+
|
|
1
13
|
## [10.3.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.2.2...v10.3.0) (2025-11-02)
|
|
2
14
|
|
|
3
15
|
### Features
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns information about the active application.
|
|
3
|
+
*
|
|
4
|
+
* @returns {Promise<import('./types').ActiveAppInfo>} Active app information
|
|
5
|
+
* @throws {Error} if an error raised by command
|
|
6
|
+
* @this {import('../driver').XCUITestDriver}
|
|
7
|
+
*/
|
|
8
|
+
export function mobileGetActiveAppInfo(this: import("../driver").XCUITestDriver): Promise<import("./types").ActiveAppInfo>;
|
|
9
|
+
//# sourceMappingURL=active-app-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"active-app-info.d.ts","sourceRoot":"","sources":["../../../lib/commands/active-app-info.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,kFAJa,OAAO,CAAC,OAAO,SAAS,EAAE,aAAa,CAAC,CAQpD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mobileGetActiveAppInfo = mobileGetActiveAppInfo;
|
|
4
|
+
/**
|
|
5
|
+
* Returns information about the active application.
|
|
6
|
+
*
|
|
7
|
+
* @returns {Promise<import('./types').ActiveAppInfo>} Active app information
|
|
8
|
+
* @throws {Error} if an error raised by command
|
|
9
|
+
* @this {import('../driver').XCUITestDriver}
|
|
10
|
+
*/
|
|
11
|
+
async function mobileGetActiveAppInfo() {
|
|
12
|
+
return /** @type {import('./types').ActiveAppInfo} */ (await this.proxyCommand('/wda/activeAppInfo', 'GET'));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=active-app-info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"active-app-info.js","sourceRoot":"","sources":["../../../lib/commands/active-app-info.js"],"names":[],"mappings":";;AAOA,wDAIC;AAXD;;;;;;GAMG;AACI,KAAK,UAAU,sBAAsB;IAC1C,OAAO,8CAA8C,CAAC,CACpD,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,KAAK,CAAC,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -1,48 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
function mobileHandleAlert(this: import("../driver").XCUITestDriver, action: AlertAction, buttonLabel?: string): Promise<string[] | void>;
|
|
44
|
-
}
|
|
45
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* @this {XCUITestDriver}
|
|
3
|
+
*/
|
|
4
|
+
export function getAlertText(this: import("../driver").XCUITestDriver): Promise<string | null>;
|
|
5
|
+
/**
|
|
6
|
+
* @param {string} value
|
|
7
|
+
* @this {XCUITestDriver}
|
|
8
|
+
* @returns {Promise<void>}
|
|
9
|
+
*/
|
|
10
|
+
export function setAlertText(this: import("../driver").XCUITestDriver, value: string): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* @param { {buttonLabel?: string} } opts
|
|
13
|
+
* @returns {Promise<void>}
|
|
14
|
+
* @this {XCUITestDriver}
|
|
15
|
+
*/
|
|
16
|
+
export function postAcceptAlert(this: import("../driver").XCUITestDriver, opts?: {
|
|
17
|
+
buttonLabel?: string;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* @param { {buttonLabel?: string} } opts
|
|
21
|
+
* @returns {Promise<void>}
|
|
22
|
+
* @this {XCUITestDriver}
|
|
23
|
+
*/
|
|
24
|
+
export function postDismissAlert(this: import("../driver").XCUITestDriver, opts?: {
|
|
25
|
+
buttonLabel?: string;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @this {XCUITestDriver}
|
|
30
|
+
* @returns {Promise<string[]>} The list of button labels
|
|
31
|
+
*/
|
|
32
|
+
export function getAlertButtons(this: import("../driver").XCUITestDriver): Promise<string[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Tries to apply the given action to the currently visible alert.
|
|
35
|
+
*
|
|
36
|
+
* @param {AlertAction} action - The actual action to apply.
|
|
37
|
+
* @param {string} [buttonLabel] - The name of the button used to perform the chosen alert action. Only makes sense if the action is `accept` or `dismiss`.
|
|
38
|
+
* @returns {Promise<string[]|void>} If `action` is `getButtons`, a list of alert button labelsp; otherwise nothing.
|
|
39
|
+
* @remarks This should really be separate commands.
|
|
40
|
+
* @this {XCUITestDriver}
|
|
41
|
+
*/
|
|
42
|
+
export function mobileHandleAlert(this: import("../driver").XCUITestDriver, action: AlertAction, buttonLabel?: string): Promise<string[] | void>;
|
|
46
43
|
export type AlertAction = "accept" | "dismiss" | "getButtons";
|
|
47
44
|
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
48
45
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":"AAAA;;GAEG;AACH,+FAEC;AAED;;;;GAIG;AACH,8EAJW,MAAM,GAEJ,OAAO,CAAC,IAAI,CAAC,CAIzB;AAED;;;;GAIG;AACH,iFAJY;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAC,GACrB,OAAO,CAAC,IAAI,CAAC,CAKzB;AAED;;;;GAIG;AACH,kFAJY;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAC,GACrB,OAAO,CAAC,IAAI,CAAC,CAKzB;AAED;;;;GAIG;AACH,2EAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAI7B;AAED;;;;;;;;GAQG;AACH,oFANW,WAAW,gBACX,MAAM,GACJ,OAAO,CAAC,MAAM,EAAE,GAAC,IAAI,CAAC,CAkBlC;0BAgBY,QAAQ,GAAC,SAAS,GAAC,YAAY;6BAI/B,OAAO,WAAW,EAAE,cAAc"}
|
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAlertText = getAlertText;
|
|
4
|
+
exports.setAlertText = setAlertText;
|
|
5
|
+
exports.postAcceptAlert = postAcceptAlert;
|
|
6
|
+
exports.postDismissAlert = postDismissAlert;
|
|
7
|
+
exports.getAlertButtons = getAlertButtons;
|
|
8
|
+
exports.mobileHandleAlert = mobileHandleAlert;
|
|
9
|
+
/**
|
|
10
|
+
* @this {XCUITestDriver}
|
|
11
|
+
*/
|
|
12
|
+
async function getAlertText() {
|
|
13
|
+
return /** @type {string|null} */ (await this.proxyCommand('/alert/text', 'GET'));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @param {string} value
|
|
17
|
+
* @this {XCUITestDriver}
|
|
18
|
+
* @returns {Promise<void>}
|
|
19
|
+
*/
|
|
20
|
+
async function setAlertText(value) {
|
|
21
|
+
await this.proxyCommand('/alert/text', 'POST', { value });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @param { {buttonLabel?: string} } opts
|
|
25
|
+
* @returns {Promise<void>}
|
|
26
|
+
* @this {XCUITestDriver}
|
|
27
|
+
*/
|
|
28
|
+
async function postAcceptAlert(opts = {}) {
|
|
29
|
+
await this.proxyCommand('/alert/accept', 'POST', toAlertParams(opts));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @param { {buttonLabel?: string} } opts
|
|
33
|
+
* @returns {Promise<void>}
|
|
34
|
+
* @this {XCUITestDriver}
|
|
35
|
+
*/
|
|
36
|
+
async function postDismissAlert(opts = {}) {
|
|
37
|
+
await this.proxyCommand('/alert/dismiss', 'POST', toAlertParams(opts));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* @this {XCUITestDriver}
|
|
42
|
+
* @returns {Promise<string[]>} The list of button labels
|
|
43
|
+
*/
|
|
44
|
+
async function getAlertButtons() {
|
|
45
|
+
return /** @type {string[]} */ (await this.proxyCommand('/wda/alert/buttons', 'GET'));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Tries to apply the given action to the currently visible alert.
|
|
49
|
+
*
|
|
50
|
+
* @param {AlertAction} action - The actual action to apply.
|
|
51
|
+
* @param {string} [buttonLabel] - The name of the button used to perform the chosen alert action. Only makes sense if the action is `accept` or `dismiss`.
|
|
52
|
+
* @returns {Promise<string[]|void>} If `action` is `getButtons`, a list of alert button labelsp; otherwise nothing.
|
|
53
|
+
* @remarks This should really be separate commands.
|
|
54
|
+
* @this {XCUITestDriver}
|
|
55
|
+
*/
|
|
56
|
+
async function mobileHandleAlert(action, buttonLabel) {
|
|
57
|
+
switch (action) {
|
|
58
|
+
case 'accept':
|
|
59
|
+
return await this.postAcceptAlert({ buttonLabel });
|
|
60
|
+
case 'dismiss':
|
|
61
|
+
return await this.postDismissAlert({ buttonLabel });
|
|
62
|
+
case 'getButtons':
|
|
63
|
+
return await this.getAlertButtons();
|
|
64
|
+
default:
|
|
65
|
+
throw new Error(`The 'action' value should be either 'accept', 'dismiss' or 'getButtons'. ` +
|
|
66
|
+
`'${action}' is provided instead.`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
3
69
|
/**
|
|
4
70
|
*
|
|
5
71
|
* @param { {buttonLabel?: string} } opts
|
|
@@ -12,68 +78,6 @@ function toAlertParams(opts = {}) {
|
|
|
12
78
|
}
|
|
13
79
|
return params;
|
|
14
80
|
}
|
|
15
|
-
exports.default = {
|
|
16
|
-
/**
|
|
17
|
-
* @this {XCUITestDriver}
|
|
18
|
-
*/
|
|
19
|
-
async getAlertText() {
|
|
20
|
-
return /** @type {string|null} */ (await this.proxyCommand('/alert/text', 'GET'));
|
|
21
|
-
},
|
|
22
|
-
/**
|
|
23
|
-
* @param {string} value
|
|
24
|
-
* @this {XCUITestDriver}
|
|
25
|
-
* @returns {Promise<void>}
|
|
26
|
-
*/
|
|
27
|
-
async setAlertText(value) {
|
|
28
|
-
await this.proxyCommand('/alert/text', 'POST', { value });
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* @param { {buttonLabel?: string} } opts
|
|
32
|
-
* @returns {Promise<void>}
|
|
33
|
-
* @this {XCUITestDriver}
|
|
34
|
-
*/
|
|
35
|
-
async postAcceptAlert(opts = {}) {
|
|
36
|
-
await this.proxyCommand('/alert/accept', 'POST', toAlertParams(opts));
|
|
37
|
-
},
|
|
38
|
-
/**
|
|
39
|
-
* @param { {buttonLabel?: string} } opts
|
|
40
|
-
* @returns {Promise<void>}
|
|
41
|
-
* @this {XCUITestDriver}
|
|
42
|
-
*/
|
|
43
|
-
async postDismissAlert(opts = {}) {
|
|
44
|
-
await this.proxyCommand('/alert/dismiss', 'POST', toAlertParams(opts));
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @this {XCUITestDriver}
|
|
49
|
-
* @returns {Promise<string[]>} The list of button labels
|
|
50
|
-
*/
|
|
51
|
-
async getAlertButtons() {
|
|
52
|
-
return /** @type {string[]} */ (await this.proxyCommand('/wda/alert/buttons', 'GET'));
|
|
53
|
-
},
|
|
54
|
-
/**
|
|
55
|
-
* Tries to apply the given action to the currently visible alert.
|
|
56
|
-
*
|
|
57
|
-
* @param {AlertAction} action - The actual action to apply.
|
|
58
|
-
* @param {string} [buttonLabel] - The name of the button used to perform the chosen alert action. Only makes sense if the action is `accept` or `dismiss`.
|
|
59
|
-
* @returns {Promise<string[]|void>} If `action` is `getButtons`, a list of alert button labelsp; otherwise nothing.
|
|
60
|
-
* @remarks This should really be separate commands.
|
|
61
|
-
* @this {XCUITestDriver}
|
|
62
|
-
*/
|
|
63
|
-
async mobileHandleAlert(action, buttonLabel) {
|
|
64
|
-
switch (action) {
|
|
65
|
-
case 'accept':
|
|
66
|
-
return await this.postAcceptAlert({ buttonLabel });
|
|
67
|
-
case 'dismiss':
|
|
68
|
-
return await this.postDismissAlert({ buttonLabel });
|
|
69
|
-
case 'getButtons':
|
|
70
|
-
return await this.getAlertButtons();
|
|
71
|
-
default:
|
|
72
|
-
throw new Error(`The 'action' value should be either 'accept', 'dismiss' or 'getButtons'. ` +
|
|
73
|
-
`'${action}' is provided instead.`);
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
81
|
/**
|
|
78
82
|
* @typedef {'accept'|'dismiss'|'getButtons'} AlertAction
|
|
79
83
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":";;AAGA,oCAEC;AAOD,oCAEC;AAOD,0CAEC;AAOD,4CAEC;AAOD,0CAEC;AAWD,8CAcC;AAlED;;GAEG;AACI,KAAK,UAAU,YAAY;IAChC,OAAO,0BAA0B,CAAC,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;AACpF,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,YAAY,CAAC,KAAK;IACtC,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,EAAC,KAAK,EAAC,CAAC,CAAC;AAC1D,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,eAAe,CAAC,IAAI,GAAG,EAAE;IAC7C,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,gBAAgB,CAAC,IAAI,GAAG,EAAE;IAC9C,MAAM,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AACzE,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,eAAe;IACnC,OAAO,uBAAuB,CAAC,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC,CAAC;AACxF,CAAC;AAED;;;;;;;;GAQG;AACI,KAAK,UAAU,iBAAiB,CAAC,MAAM,EAAE,WAAW;IACzD,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,QAAQ;YACX,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,EAAC,WAAW,EAAC,CAAC,CAAC;QACnD,KAAK,SAAS;YACZ,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAAC,EAAC,WAAW,EAAC,CAAC,CAAC;QACpD,KAAK,YAAY;YACf,OAAO,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QACtC;YACE,MAAM,IAAI,KAAK,CACb,2EAA2E;gBACzE,IAAI,MAAM,wBAAwB,CACrC,CAAC;IACN,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,aAAa,CAAC,IAAI,GAAG,EAAE;IAC9B,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC;IACjC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AAEH;;GAEG"}
|
|
@@ -1,156 +1,153 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
37
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}): Promise<unknown>;
|
|
152
|
-
}
|
|
153
|
-
export default _default;
|
|
1
|
+
/**
|
|
2
|
+
* Installs the given application to the device under test.
|
|
3
|
+
*
|
|
4
|
+
* Please ensure the app is built for a correct architecture and is signed with a proper developer signature (for real devices) prior to calling this.
|
|
5
|
+
* @param {string} app - See docs for `appium:app` capability
|
|
6
|
+
* @param {number} [timeoutMs] - The maximum time to wait until app install is finished (in ms) on real devices.
|
|
7
|
+
* If not provided, then the value of `appium:appPushTimeout` capability is used. If the capability is not provided then the default is 240000ms (4 minutes).
|
|
8
|
+
* @param {boolean} [checkVersion] - If the application installation follows currently installed application's version status if provided.
|
|
9
|
+
* No checking occurs if no this option.
|
|
10
|
+
* @privateRemarks Link to capability docs
|
|
11
|
+
* @returns {Promise<void>}
|
|
12
|
+
* @this {XCUITestDriver}
|
|
13
|
+
*/
|
|
14
|
+
export function mobileInstallApp(this: import("../driver").XCUITestDriver, app: string, timeoutMs?: number, checkVersion?: boolean): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Checks whether the given application is installed on the device under test.
|
|
17
|
+
* Offload app is handled as not installed.
|
|
18
|
+
*
|
|
19
|
+
* @param {string} bundleId - The bundle identifier of the application to be checked
|
|
20
|
+
* @returns {Promise<boolean>} `true` if the application is installed; `false` otherwise
|
|
21
|
+
* @this {XCUITestDriver}
|
|
22
|
+
*/
|
|
23
|
+
export function mobileIsAppInstalled(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* Removes/uninstalls the given application from the device under test.
|
|
26
|
+
* Offload app data could also be removed.
|
|
27
|
+
*
|
|
28
|
+
* @param {string} bundleId - The bundle identifier of the application to be removed
|
|
29
|
+
* @returns {Promise<boolean>} `true` if the application has been removed successfully; `false` otherwise
|
|
30
|
+
* @this {XCUITestDriver}
|
|
31
|
+
*/
|
|
32
|
+
export function mobileRemoveApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* Executes the given app on the device under test.
|
|
35
|
+
*
|
|
36
|
+
* If the app is already running it will be activated. If the app is not installed or cannot be launched then an exception is thrown.
|
|
37
|
+
* @param {string} bundleId - The bundle identifier of the application to be launched
|
|
38
|
+
* @param {string|string[]} [args] - One or more command line arguments for the app. If the app is already running then this argument is ignored.
|
|
39
|
+
* @param {object} [environment] - Environment variables mapping for the app. If the app is already running then this argument is ignored.
|
|
40
|
+
* @returns {Promise<void>}
|
|
41
|
+
* @this {XCUITestDriver}
|
|
42
|
+
*/
|
|
43
|
+
export function mobileLaunchApp(this: import("../driver").XCUITestDriver, bundleId: string, args?: string | string[], environment?: object): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Terminates the given app on the device under test.
|
|
46
|
+
*
|
|
47
|
+
* This command performs termination via [XCTest's `terminate`](https://developer.apple.com/documentation/xctest/xcuiapplication/1500637-terminate) API. If the app is not installed an exception is thrown. If the app is not running then nothing is done.
|
|
48
|
+
* @param {string} bundleId - The bundle identifier of the application to be terminated
|
|
49
|
+
* @returns {Promise<boolean>} `true` if the app has been terminated successfully; `false` otherwise
|
|
50
|
+
* @this {XCUITestDriver}
|
|
51
|
+
*/
|
|
52
|
+
export function mobileTerminateApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Activate the given app on the device under test.
|
|
55
|
+
*
|
|
56
|
+
* This pushes the app to the foreground if it is running in the background. An exception is thrown if the app is not install or isn't running. Nothing is done if the app is already in the foreground.
|
|
57
|
+
*
|
|
58
|
+
* @param {string} bundleId - The bundle identifier of the application to be activated
|
|
59
|
+
* @returns {Promise<void>}
|
|
60
|
+
* @this {XCUITestDriver}
|
|
61
|
+
*/
|
|
62
|
+
export function mobileActivateApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Kill the given app on the real device under test by instruments service.
|
|
65
|
+
*
|
|
66
|
+
* If the app is not running or kill failed, then nothing is done.
|
|
67
|
+
*
|
|
68
|
+
* @remarks `appium-xcuitest-driver` v4.4 does not require `py-ios-device` to be installed.
|
|
69
|
+
* @privateRemarks See implementation at https://github.com/YueChen-C/py-ios-device/blob/51f4683c5c3c385a015858ada07a5f1c62d3cf57/ios_device/cli/base.py#L220
|
|
70
|
+
* @see https://github.com/YueChen-C/py-ios-device
|
|
71
|
+
* @param {string} bundleId - The bundle identifier of the application to be killed
|
|
72
|
+
* @returns {Promise<boolean>} `true` if the app has been killed successfully; `false` otherwise
|
|
73
|
+
* @group Real Device Only
|
|
74
|
+
* @this {XCUITestDriver}
|
|
75
|
+
*/
|
|
76
|
+
export function mobileKillApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
77
|
+
/**
|
|
78
|
+
* Queries the state of an installed application from the device under test.
|
|
79
|
+
*
|
|
80
|
+
* If the app with the given `bundleId` is not installed, an exception will be thrown.
|
|
81
|
+
*
|
|
82
|
+
* @param {string} bundleId - The bundle identifier of the application to be queried
|
|
83
|
+
* @returns {Promise<AppState>} The actual application state code
|
|
84
|
+
* @see https://developer.apple.com/documentation/xctest/xcuiapplicationstate?language=objc
|
|
85
|
+
* @this {XCUITestDriver}
|
|
86
|
+
*/
|
|
87
|
+
export function mobileQueryAppState(this: import("../driver").XCUITestDriver, bundleId: string): Promise<AppState>;
|
|
88
|
+
/**
|
|
89
|
+
* @param {string} appPath
|
|
90
|
+
* @param {object} opts
|
|
91
|
+
* @this {XCUITestDriver}
|
|
92
|
+
*/
|
|
93
|
+
export function installApp(appPath: string, { timeoutMs, strategy }?: object): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* @param {string} bundleId
|
|
96
|
+
* @param {object} opts
|
|
97
|
+
* @this {XCUITestDriver}
|
|
98
|
+
*/
|
|
99
|
+
export function activateApp(bundleId: string, opts?: object, ...args: any[]): Promise<any>;
|
|
100
|
+
/**
|
|
101
|
+
* @param {string} bundleId
|
|
102
|
+
* @this {XCUITestDriver}
|
|
103
|
+
*/
|
|
104
|
+
export function isAppInstalled(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* @param {string} bundleId
|
|
107
|
+
* @this {XCUITestDriver}
|
|
108
|
+
* @returns {Promise<boolean>}
|
|
109
|
+
*/
|
|
110
|
+
export function terminateApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* @param {string} bundleId
|
|
113
|
+
* @this {XCUITestDriver}
|
|
114
|
+
*/
|
|
115
|
+
export function queryAppState(this: import("../driver").XCUITestDriver, bundleId: string): Promise<import("./enum").AppState>;
|
|
116
|
+
/**
|
|
117
|
+
* List applications installed on the real device under test
|
|
118
|
+
*
|
|
119
|
+
* Read [Pushing/Pulling files](https://appium.io/docs/en/writing-running-appium/ios/ios-xctest-file-movement/) for more details.
|
|
120
|
+
* @param {'User'|'System'} applicationType - The type of applications to list.
|
|
121
|
+
* @returns {Promise<Record<string,any>[]>} A list of apps where each item is a mapping of bundle identifiers to maps of platform-specific app properties.
|
|
122
|
+
* @remarks Having `UIFileSharingEnabled` set to `true` in the return app properties map means this app supports file upload/download in its `documents` container.
|
|
123
|
+
* @group Real Device Only
|
|
124
|
+
*/
|
|
125
|
+
export function mobileListApps(applicationType?: "User" | "System"): Promise<Record<string, any>[]>;
|
|
126
|
+
/**
|
|
127
|
+
* Deletes application data files, so it could start from the clean state next time
|
|
128
|
+
* it is launched.
|
|
129
|
+
* This API only works on a Simulator.
|
|
130
|
+
*
|
|
131
|
+
* @param {string} bundleId Application bundle identifier
|
|
132
|
+
* @this {XCUITestDriver}
|
|
133
|
+
* @returns {Promise<boolean>} true if any files from the app's data container have been deleted
|
|
134
|
+
*/
|
|
135
|
+
export function mobileClearApp(this: import("../driver").XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
136
|
+
/**
|
|
137
|
+
* Close app (simulate device home button). It is possible to restore
|
|
138
|
+
* the app after the timeout or keep it minimized based on the parameter value.
|
|
139
|
+
*
|
|
140
|
+
* @param {number|{timeout: number?}} [seconds]
|
|
141
|
+
* - any positive number of seconds: come back after X seconds
|
|
142
|
+
* - any negative number of seconds or zero: never come back
|
|
143
|
+
* - undefined/null: never come back
|
|
144
|
+
* - {timeout: 5000}: come back after 5 seconds
|
|
145
|
+
* - {timeout: null}, {timeout: -2}: never come back
|
|
146
|
+
* @this {XCUITestDriver}
|
|
147
|
+
*/
|
|
148
|
+
export function background(this: import("../driver").XCUITestDriver, seconds?: number | {
|
|
149
|
+
timeout: number | null;
|
|
150
|
+
}): Promise<unknown>;
|
|
154
151
|
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
155
152
|
export type AppState = import("./enum").AppState;
|
|
156
153
|
//# sourceMappingURL=app-management.d.ts.map
|