@limrun/appium-xcuitest-driver 10.11.0-lim.3 → 10.14.6-lim.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 +94 -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/alert.d.ts +26 -31
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js +20 -29
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +99 -76
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +83 -73
- package/build/lib/commands/app-management.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/appearance.d.ts +7 -9
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js +13 -19
- package/build/lib/commands/appearance.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/biometric.d.ts +12 -14
- package/build/lib/commands/biometric.d.ts.map +1 -1
- package/build/lib/commands/biometric.js +10 -19
- package/build/lib/commands/biometric.js.map +1 -1
- package/build/lib/commands/certificate.d.ts +14 -19
- package/build/lib/commands/certificate.d.ts.map +1 -1
- package/build/lib/commands/certificate.js +24 -31
- package/build/lib/commands/certificate.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/condition.d.ts +9 -72
- package/build/lib/commands/condition.d.ts.map +1 -1
- package/build/lib/commands/condition.js +5 -66
- package/build/lib/commands/condition.js.map +1 -1
- package/build/lib/commands/content-size.d.ts +16 -19
- package/build/lib/commands/content-size.d.ts.map +1 -1
- package/build/lib/commands/content-size.js +14 -22
- package/build/lib/commands/content-size.js.map +1 -1
- package/build/lib/commands/context.d.ts +130 -161
- package/build/lib/commands/context.d.ts.map +1 -1
- package/build/lib/commands/context.js +123 -108
- package/build/lib/commands/context.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/device-info.js +20 -0
- package/build/lib/commands/device-info.js.map +1 -0
- package/build/lib/commands/element.d.ts +83 -67
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +111 -134
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts +10 -22
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +13 -29
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-movement.d.ts +31 -42
- package/build/lib/commands/file-movement.d.ts.map +1 -1
- package/build/lib/commands/file-movement.js +146 -205
- package/build/lib/commands/file-movement.js.map +1 -1
- package/build/lib/commands/find.d.ts +20 -12
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +27 -65
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +84 -80
- package/build/lib/commands/general.d.ts.map +1 -1
- package/build/lib/commands/general.js +67 -54
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +16 -36
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +8 -25
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/gesture.d.ts +103 -119
- package/build/lib/commands/gesture.d.ts.map +1 -1
- package/build/lib/commands/gesture.js +98 -138
- package/build/lib/commands/gesture.js.map +1 -1
- 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/iohid.d.ts +6 -1359
- package/build/lib/commands/iohid.d.ts.map +1 -1
- package/build/lib/commands/iohid.js +5 -10
- package/build/lib/commands/iohid.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +16 -13
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +14 -18
- package/build/lib/commands/keyboard.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/location.d.ts +8 -11
- package/build/lib/commands/location.d.ts.map +1 -1
- package/build/lib/commands/location.js +7 -15
- package/build/lib/commands/location.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/log.d.ts +42 -44
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +32 -53
- package/build/lib/commands/log.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/navigation.d.ts +14 -26
- package/build/lib/commands/navigation.d.ts.map +1 -1
- package/build/lib/commands/navigation.js +22 -32
- package/build/lib/commands/navigation.js.map +1 -1
- package/build/lib/commands/notifications.d.ts +10 -10
- package/build/lib/commands/notifications.d.ts.map +1 -1
- package/build/lib/commands/notifications.js +8 -12
- package/build/lib/commands/notifications.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/pcap.d.ts +18 -38
- package/build/lib/commands/pcap.d.ts.map +1 -1
- package/build/lib/commands/pcap.js +9 -14
- package/build/lib/commands/pcap.js.map +1 -1
- package/build/lib/commands/performance.d.ts +36 -55
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +93 -86
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +15 -17
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +12 -18
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/proxy-helper.d.ts +11 -11
- package/build/lib/commands/proxy-helper.d.ts.map +1 -1
- package/build/lib/commands/proxy-helper.js +15 -24
- package/build/lib/commands/proxy-helper.js.map +1 -1
- package/build/lib/commands/record-audio.d.ts +25 -52
- package/build/lib/commands/record-audio.d.ts.map +1 -1
- package/build/lib/commands/record-audio.js +17 -19
- package/build/lib/commands/record-audio.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +31 -62
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +29 -28
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/screenshots.d.ts +15 -9
- package/build/lib/commands/screenshots.d.ts.map +1 -1
- package/build/lib/commands/screenshots.js +16 -16
- package/build/lib/commands/screenshots.js.map +1 -1
- package/build/lib/commands/simctl.d.ts +16 -22
- package/build/lib/commands/simctl.d.ts.map +1 -1
- package/build/lib/commands/simctl.js +13 -17
- package/build/lib/commands/simctl.js.map +1 -1
- package/build/lib/commands/source.d.ts +10 -8
- package/build/lib/commands/source.d.ts.map +1 -1
- package/build/lib/commands/source.js +11 -14
- package/build/lib/commands/source.js.map +1 -1
- package/build/lib/commands/timeouts.d.ts +25 -32
- package/build/lib/commands/timeouts.d.ts.map +1 -1
- package/build/lib/commands/timeouts.js +19 -15
- package/build/lib/commands/timeouts.js.map +1 -1
- package/build/lib/commands/types.d.ts +80 -0
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/commands/web.d.ts +199 -202
- package/build/lib/commands/web.d.ts.map +1 -1
- package/build/lib/commands/web.js +216 -175
- package/build/lib/commands/web.js.map +1 -1
- package/build/lib/commands/xctest-record-screen.d.ts +17 -47
- package/build/lib/commands/xctest-record-screen.d.ts.map +1 -1
- package/build/lib/commands/xctest-record-screen.js +28 -59
- package/build/lib/commands/xctest-record-screen.js.map +1 -1
- package/build/lib/commands/xctest.d.ts +37 -37
- package/build/lib/commands/xctest.d.ts.map +1 -1
- package/build/lib/commands/xctest.js +38 -50
- package/build/lib/commands/xctest.js.map +1 -1
- package/build/lib/desired-caps.js +1 -1
- package/build/lib/device/log/ios-simulator-log.d.ts.map +1 -1
- package/build/lib/device/log/ios-simulator-log.js +2 -0
- package/build/lib/device/log/ios-simulator-log.js.map +1 -1
- package/build/lib/device/simulator-management.d.ts.map +1 -1
- package/build/lib/device/simulator-management.js +4 -5
- package/build/lib/device/simulator-management.js.map +1 -1
- package/build/lib/device-log/ios-crash-log.d.ts +1 -1
- package/build/lib/device-log/ios-crash-log.d.ts.map +1 -1
- package/build/lib/device-log/ios-simulator-log.d.ts +1 -1
- package/build/lib/device-log/ios-simulator-log.d.ts.map +1 -1
- package/build/lib/doctor/optional-checks.d.ts +0 -9
- package/build/lib/doctor/optional-checks.d.ts.map +1 -1
- package/build/lib/doctor/optional-checks.js +1 -30
- package/build/lib/doctor/optional-checks.js.map +1 -1
- package/build/lib/driver.d.ts +11 -3
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +36 -12
- 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 +0 -9
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/simulator-management.js +3 -3
- package/build/lib/simulator-management.js.map +1 -1
- package/lib/commands/active-app-info.ts +15 -0
- package/lib/commands/alert.ts +98 -0
- package/lib/commands/app-management.ts +414 -0
- package/lib/commands/{app-strings.js → app-strings.ts} +10 -9
- package/lib/commands/appearance.ts +70 -0
- package/lib/commands/audit.ts +25 -0
- package/lib/commands/{battery.js → battery.ts} +10 -12
- package/lib/commands/biometric.ts +52 -0
- package/lib/commands/{certificate.js → certificate.ts} +55 -50
- package/lib/commands/clipboard.ts +37 -0
- package/lib/commands/{condition.js → condition.ts} +21 -77
- package/lib/commands/content-size.ts +67 -0
- package/lib/commands/{context.js → context.ts} +174 -146
- package/lib/commands/device-info.ts +24 -0
- package/lib/commands/element.ts +419 -0
- package/lib/commands/{execute.js → execute.ts} +42 -38
- package/lib/commands/{file-movement.js → file-movement.ts} +212 -235
- package/lib/commands/find.ts +277 -0
- package/lib/commands/{general.js → general.ts} +102 -77
- package/lib/commands/geolocation.ts +55 -0
- package/lib/commands/{gesture.js → gesture.ts} +225 -183
- package/lib/commands/increase-contrast.ts +49 -0
- package/lib/commands/{iohid.js → iohid.ts} +15 -13
- package/lib/commands/keyboard.ts +70 -0
- package/lib/commands/keychains.ts +16 -0
- package/lib/commands/{localization.js → localization.ts} +22 -12
- package/lib/commands/{location.js → location.ts} +19 -22
- package/lib/commands/lock.ts +43 -0
- package/lib/commands/{log.js → log.ts} +68 -68
- package/lib/commands/{memory.js → memory.ts} +9 -9
- package/lib/commands/{navigation.js → navigation.ts} +42 -39
- package/lib/commands/{notifications.js → notifications.ts} +22 -14
- package/lib/commands/pasteboard.ts +44 -0
- package/lib/commands/{pcap.js → pcap.ts} +28 -28
- package/lib/commands/{performance.js → performance.ts} +133 -114
- package/lib/commands/permissions.ts +90 -0
- package/lib/commands/{proxy-helper.js → proxy-helper.ts} +26 -26
- package/lib/commands/{record-audio.js → record-audio.ts} +35 -33
- package/lib/commands/{recordscreen.js → recordscreen.ts} +78 -50
- package/lib/commands/{screenshots.js → screenshots.ts} +27 -21
- package/lib/commands/simctl.ts +82 -0
- package/lib/commands/{source.js → source.ts} +23 -20
- package/lib/commands/timeouts.ts +95 -0
- package/lib/commands/types.ts +86 -0
- package/lib/commands/{web.js → web.ts} +314 -264
- package/lib/commands/{xctest-record-screen.js → xctest-record-screen.ts} +54 -71
- package/lib/commands/{xctest.js → xctest.ts} +78 -71
- package/lib/desired-caps.ts +1 -1
- package/lib/device/log/ios-simulator-log.ts +2 -0
- package/lib/device/simulator-management.ts +3 -6
- package/lib/doctor/optional-checks.ts +0 -33
- package/lib/driver.ts +38 -13
- package/lib/execute-method-map.ts +0 -9
- package/package.json +6 -5
- package/lib/commands/active-app-info.js +0 -12
- package/lib/commands/alert.js +0 -88
- package/lib/commands/app-management.js +0 -346
- package/lib/commands/appearance.js +0 -71
- package/lib/commands/audit.js +0 -31
- package/lib/commands/biometric.js +0 -52
- package/lib/commands/clipboard.js +0 -35
- package/lib/commands/content-size.js +0 -68
- package/lib/commands/deviceInfo.js +0 -27
- package/lib/commands/element.js +0 -423
- package/lib/commands/find.js +0 -205
- package/lib/commands/geolocation.js +0 -56
- package/lib/commands/increase-contrast.js +0 -50
- package/lib/commands/keyboard.js +0 -62
- package/lib/commands/keychains.js +0 -17
- package/lib/commands/lock.js +0 -46
- package/lib/commands/pasteboard.js +0 -43
- package/lib/commands/permissions.js +0 -85
- package/lib/commands/simctl.js +0 -71
- package/lib/commands/timeouts.js +0 -68
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,97 @@
|
|
|
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
|
+
|
|
13
|
+
## [10.14.4](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.3...v10.14.4) (2026-01-05)
|
|
14
|
+
|
|
15
|
+
### Miscellaneous Chores
|
|
16
|
+
|
|
17
|
+
* Migrate various commands to typescript (part 8) ([#2694](https://github.com/appium/appium-xcuitest-driver/issues/2694)) ([a8438e3](https://github.com/appium/appium-xcuitest-driver/commit/a8438e3d3bd497ba5c3c8b11c03927463a364213))
|
|
18
|
+
|
|
19
|
+
## [10.14.3](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.2...v10.14.3) (2026-01-04)
|
|
20
|
+
|
|
21
|
+
### Miscellaneous Chores
|
|
22
|
+
|
|
23
|
+
* Migrate various command modules to typescript (part 7) ([#2693](https://github.com/appium/appium-xcuitest-driver/issues/2693)) ([1286364](https://github.com/appium/appium-xcuitest-driver/commit/128636475c1eac6ea5c73da3dcebb2eb9d539c4d))
|
|
24
|
+
|
|
25
|
+
## [10.14.2](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.1...v10.14.2) (2026-01-01)
|
|
26
|
+
|
|
27
|
+
### Miscellaneous Chores
|
|
28
|
+
|
|
29
|
+
* Migrate various command modules to typescript (part 6) ([#2692](https://github.com/appium/appium-xcuitest-driver/issues/2692)) ([3736824](https://github.com/appium/appium-xcuitest-driver/commit/37368246181f2e4096ce80ae76e3d458ea39c711))
|
|
30
|
+
|
|
31
|
+
## [10.14.1](https://github.com/appium/appium-xcuitest-driver/compare/v10.14.0...v10.14.1) (2025-12-31)
|
|
32
|
+
|
|
33
|
+
### Miscellaneous Chores
|
|
34
|
+
|
|
35
|
+
* Migrate various command modules to typescript (part 5) ([#2691](https://github.com/appium/appium-xcuitest-driver/issues/2691)) ([0cd46fd](https://github.com/appium/appium-xcuitest-driver/commit/0cd46fdc6fb62df5ee61e8008f53a65f1aec4c5d))
|
|
36
|
+
|
|
37
|
+
## [10.14.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.4...v10.14.0) (2025-12-30)
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* add documentation for customActions ([#2690](https://github.com/appium/appium-xcuitest-driver/issues/2690)) ([c8a0473](https://github.com/appium/appium-xcuitest-driver/commit/c8a04730a62353752a5142dab04115e3afe155db))
|
|
42
|
+
|
|
43
|
+
## [10.13.4](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.3...v10.13.4) (2025-12-30)
|
|
44
|
+
|
|
45
|
+
### Miscellaneous Chores
|
|
46
|
+
|
|
47
|
+
* Migrate various command modules to typescript (part 4) ([#2689](https://github.com/appium/appium-xcuitest-driver/issues/2689)) ([e7da99b](https://github.com/appium/appium-xcuitest-driver/commit/e7da99b79461927b785ec518475ee604c163fdc9))
|
|
48
|
+
|
|
49
|
+
## [10.13.3](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.2...v10.13.3) (2025-12-28)
|
|
50
|
+
|
|
51
|
+
### Miscellaneous Chores
|
|
52
|
+
|
|
53
|
+
* Migrate various command modules to typescript ([#2688](https://github.com/appium/appium-xcuitest-driver/issues/2688)) ([43489ba](https://github.com/appium/appium-xcuitest-driver/commit/43489ba00eef50c1e026ba878c31859de63849e9))
|
|
54
|
+
|
|
55
|
+
## [10.13.2](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.1...v10.13.2) (2025-12-23)
|
|
56
|
+
|
|
57
|
+
### Miscellaneous Chores
|
|
58
|
+
|
|
59
|
+
* Migrate various command modules (part 2) ([#2687](https://github.com/appium/appium-xcuitest-driver/issues/2687)) ([3b47a66](https://github.com/appium/appium-xcuitest-driver/commit/3b47a664379bf5b1d20472ce83c74ce34ab7a661))
|
|
60
|
+
|
|
61
|
+
## [10.13.1](https://github.com/appium/appium-xcuitest-driver/compare/v10.13.0...v10.13.1) (2025-12-23)
|
|
62
|
+
|
|
63
|
+
### Bug Fixes
|
|
64
|
+
|
|
65
|
+
* prevent raising error in safari session ([#2686](https://github.com/appium/appium-xcuitest-driver/issues/2686)) ([7c7f5cb](https://github.com/appium/appium-xcuitest-driver/commit/7c7f5cbe6d27634ce52d9024b40673973be0289c))
|
|
66
|
+
|
|
67
|
+
## [10.13.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.12.2...v10.13.0) (2025-12-23)
|
|
68
|
+
|
|
69
|
+
### Features
|
|
70
|
+
|
|
71
|
+
* Migrate various command modules to typescript (part 1) ([#2683](https://github.com/appium/appium-xcuitest-driver/issues/2683)) ([c0b53ba](https://github.com/appium/appium-xcuitest-driver/commit/c0b53ba8fd212ce09f9d4c4d45f869a7c3f40fd2))
|
|
72
|
+
|
|
73
|
+
## [10.12.2](https://github.com/appium/appium-xcuitest-driver/compare/v10.12.1...v10.12.2) (2025-12-22)
|
|
74
|
+
|
|
75
|
+
### Miscellaneous Chores
|
|
76
|
+
|
|
77
|
+
* **deps:** bump teen_process from 3.0.6 to 4.0.4 ([#2684](https://github.com/appium/appium-xcuitest-driver/issues/2684)) ([005e984](https://github.com/appium/appium-xcuitest-driver/commit/005e9846229fc2d4bcb468758f4e653a295599e6))
|
|
78
|
+
|
|
79
|
+
## [10.12.1](https://github.com/appium/appium-xcuitest-driver/compare/v10.12.0...v10.12.1) (2025-12-22)
|
|
80
|
+
|
|
81
|
+
### Miscellaneous Chores
|
|
82
|
+
|
|
83
|
+
* Bump major appium-webdriveragent version to 11 ([#2682](https://github.com/appium/appium-xcuitest-driver/issues/2682)) ([c70e413](https://github.com/appium/appium-xcuitest-driver/commit/c70e4138a151932b4cd5a81b020660b0220f70f3))
|
|
84
|
+
|
|
85
|
+
## [10.12.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.11.0...v10.12.0) (2025-12-18)
|
|
86
|
+
|
|
87
|
+
### Features
|
|
88
|
+
|
|
89
|
+
* Add `enforceCustomSnapshots` setting ([#2680](https://github.com/appium/appium-xcuitest-driver/issues/2680)) ([6758bee](https://github.com/appium/appium-xcuitest-driver/commit/6758beea9d8580d8e4d983b213b07cb96c5e63de))
|
|
90
|
+
|
|
91
|
+
### Miscellaneous Chores
|
|
92
|
+
|
|
93
|
+
* **deps:** bump asyncbox from 3.0.0 to 4.0.1 ([#2681](https://github.com/appium/appium-xcuitest-driver/issues/2681)) ([6998151](https://github.com/appium/appium-xcuitest-driver/commit/6998151da802a57276e2149eb21844e087f0430a))
|
|
94
|
+
|
|
1
95
|
## [10.11.0](https://github.com/appium/appium-xcuitest-driver/compare/v10.10.1...v10.11.0) (2025-12-13)
|
|
2
96
|
|
|
3
97
|
### Features
|
|
@@ -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,45 +1,40 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
2
|
+
export type AlertAction = 'accept' | 'dismiss' | 'getButtons';
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @param {string} value
|
|
7
|
-
* @this {XCUITestDriver}
|
|
8
|
-
* @returns {Promise<void>}
|
|
4
|
+
* Gets the text of the currently displayed alert.
|
|
5
|
+
*
|
|
6
|
+
* @returns The alert text, or null if no alert is displayed
|
|
9
7
|
*/
|
|
10
|
-
export function
|
|
8
|
+
export declare function getAlertText(this: XCUITestDriver): Promise<string | null>;
|
|
11
9
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @
|
|
10
|
+
* Sets the text in an alert input field.
|
|
11
|
+
*
|
|
12
|
+
* @param value - The text to set
|
|
15
13
|
*/
|
|
16
|
-
export function
|
|
17
|
-
buttonLabel?: string;
|
|
18
|
-
}): Promise<void>;
|
|
14
|
+
export declare function setAlertText(this: XCUITestDriver, value: string): Promise<void>;
|
|
19
15
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @
|
|
16
|
+
* Accepts the currently displayed alert.
|
|
17
|
+
*
|
|
18
|
+
* @param opts - Options including optional button label
|
|
23
19
|
*/
|
|
24
|
-
export function
|
|
25
|
-
buttonLabel?: string;
|
|
26
|
-
}): Promise<void>;
|
|
20
|
+
export declare function postAcceptAlert(this: XCUITestDriver, opts?: AlertOptions): Promise<void>;
|
|
27
21
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* @
|
|
22
|
+
* Dismisses the currently displayed alert.
|
|
23
|
+
*
|
|
24
|
+
* @param opts - Options including optional button label
|
|
31
25
|
*/
|
|
32
|
-
export function
|
|
26
|
+
export declare function postDismissAlert(this: XCUITestDriver, opts?: AlertOptions): Promise<void>;
|
|
33
27
|
/**
|
|
34
28
|
* Tries to apply the given action to the currently visible alert.
|
|
35
29
|
*
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
38
|
-
* @returns
|
|
30
|
+
* @param action - The actual action to apply
|
|
31
|
+
* @param buttonLabel - The name of the button used to perform the chosen alert action. Only makes sense if the action is `accept` or `dismiss`
|
|
32
|
+
* @returns If `action` is `getButtons`, a list of alert button labels; otherwise nothing
|
|
39
33
|
* @remarks This should really be separate commands.
|
|
40
|
-
* @this {XCUITestDriver}
|
|
41
34
|
*/
|
|
42
|
-
export function mobileHandleAlert(this:
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
export declare function mobileHandleAlert(this: XCUITestDriver, action: AlertAction, buttonLabel?: string): Promise<string[] | void>;
|
|
36
|
+
interface AlertOptions {
|
|
37
|
+
buttonLabel?: string;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
45
40
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,CAAC;AAE9D;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAE/E;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,cAAc,EACpB,IAAI,GAAE,YAAiB,GACtB,OAAO,CAAC,IAAI,CAAC,CAEf;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,cAAc,EACpB,IAAI,GAAE,YAAiB,GACtB,OAAO,CAAC,IAAI,CAAC,CAEf;AAYD;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,WAAW,EACnB,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAc1B;AAUD,UAAU,YAAY;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -7,51 +7,53 @@ exports.postDismissAlert = postDismissAlert;
|
|
|
7
7
|
exports.getAlertButtons = getAlertButtons;
|
|
8
8
|
exports.mobileHandleAlert = mobileHandleAlert;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets the text of the currently displayed alert.
|
|
11
|
+
*
|
|
12
|
+
* @returns The alert text, or null if no alert is displayed
|
|
11
13
|
*/
|
|
12
14
|
async function getAlertText() {
|
|
13
|
-
return
|
|
15
|
+
return await this.proxyCommand('/alert/text', 'GET');
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @
|
|
18
|
+
* Sets the text in an alert input field.
|
|
19
|
+
*
|
|
20
|
+
* @param value - The text to set
|
|
19
21
|
*/
|
|
20
22
|
async function setAlertText(value) {
|
|
21
23
|
await this.proxyCommand('/alert/text', 'POST', { value });
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @
|
|
26
|
+
* Accepts the currently displayed alert.
|
|
27
|
+
*
|
|
28
|
+
* @param opts - Options including optional button label
|
|
27
29
|
*/
|
|
28
30
|
async function postAcceptAlert(opts = {}) {
|
|
29
31
|
await this.proxyCommand('/alert/accept', 'POST', toAlertParams(opts));
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @
|
|
34
|
+
* Dismisses the currently displayed alert.
|
|
35
|
+
*
|
|
36
|
+
* @param opts - Options including optional button label
|
|
35
37
|
*/
|
|
36
38
|
async function postDismissAlert(opts = {}) {
|
|
37
39
|
await this.proxyCommand('/alert/dismiss', 'POST', toAlertParams(opts));
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
42
|
+
* Gets the list of button labels from the currently displayed alert.
|
|
43
|
+
*
|
|
44
|
+
* @returns The list of button labels
|
|
40
45
|
* @internal
|
|
41
|
-
* @this {XCUITestDriver}
|
|
42
|
-
* @returns {Promise<string[]>} The list of button labels
|
|
43
46
|
*/
|
|
44
47
|
async function getAlertButtons() {
|
|
45
|
-
return
|
|
48
|
+
return await this.proxyCommand('/wda/alert/buttons', 'GET');
|
|
46
49
|
}
|
|
47
50
|
/**
|
|
48
51
|
* Tries to apply the given action to the currently visible alert.
|
|
49
52
|
*
|
|
50
|
-
* @param
|
|
51
|
-
* @param
|
|
52
|
-
* @returns
|
|
53
|
+
* @param action - The actual action to apply
|
|
54
|
+
* @param buttonLabel - The name of the button used to perform the chosen alert action. Only makes sense if the action is `accept` or `dismiss`
|
|
55
|
+
* @returns If `action` is `getButtons`, a list of alert button labels; otherwise nothing
|
|
53
56
|
* @remarks This should really be separate commands.
|
|
54
|
-
* @this {XCUITestDriver}
|
|
55
57
|
*/
|
|
56
58
|
async function mobileHandleAlert(action, buttonLabel) {
|
|
57
59
|
switch (action) {
|
|
@@ -66,11 +68,6 @@ async function mobileHandleAlert(action, buttonLabel) {
|
|
|
66
68
|
`'${action}' is provided instead.`);
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @param { {buttonLabel?: string} } opts
|
|
72
|
-
* @returns { {name?: string} }
|
|
73
|
-
*/
|
|
74
71
|
function toAlertParams(opts = {}) {
|
|
75
72
|
const params = {};
|
|
76
73
|
if (opts.buttonLabel) {
|
|
@@ -78,10 +75,4 @@ function toAlertParams(opts = {}) {
|
|
|
78
75
|
}
|
|
79
76
|
return params;
|
|
80
77
|
}
|
|
81
|
-
/**
|
|
82
|
-
* @typedef {'accept'|'dismiss'|'getButtons'} AlertAction
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* @typedef {import('../driver').XCUITestDriver} XCUITestDriver
|
|
86
|
-
*/
|
|
87
78
|
//# sourceMappingURL=alert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../lib/commands/alert.
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../lib/commands/alert.ts"],"names":[],"mappings":";;AASA,oCAEC;AAOD,oCAKC;AAOD,0CAKC;AAOD,4CAKC;AAQD,0CAEC;AAUD,8CAkBC;AAjFD;;;;GAIG;AACI,KAAK,UAAU,YAAY;IAChC,OAAO,MAAM,IAAI,CAAC,YAAY,CAAqB,aAAa,EAAE,KAAK,CAAC,CAAC;AAC3E,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,YAAY,CAEhC,KAAa;IAEb,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,EAAC,KAAK,EAAC,CAAC,CAAC;AAC1D,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,eAAe,CAEnC,OAAqB,EAAE;IAEvB,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AACxE,CAAC;AAED;;;;GAIG;AACI,KAAK,UAAU,gBAAgB,CAEpC,OAAqB,EAAE;IAEvB,MAAM,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AACzE,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,eAAe;IACnC,OAAO,MAAM,IAAI,CAAC,YAAY,CAAgB,oBAAoB,EAAE,KAAK,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,iBAAiB,CAErC,MAAmB,EACnB,WAAoB;IAEpB,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,SAAS,aAAa,CAAC,OAAqB,EAAE;IAC5C,MAAM,MAAM,GAAoB,EAAE,CAAC;IACnC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC;IACjC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,65 +1,58 @@
|
|
|
1
|
+
import type { XCUITestDriver } from '../driver';
|
|
2
|
+
import type { AppState } from './enum';
|
|
1
3
|
/**
|
|
2
4
|
* Installs the given application to the device under test.
|
|
3
5
|
*
|
|
4
6
|
* 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
|
|
6
|
-
* @param
|
|
7
|
+
* @param app - See docs for `appium:app` capability
|
|
8
|
+
* @param timeoutMs - The maximum time to wait until app install is finished (in ms) on real devices.
|
|
7
9
|
* 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
|
|
10
|
+
* @param checkVersion - If the application installation follows currently installed application's version status if provided.
|
|
9
11
|
* No checking occurs if no this option.
|
|
10
12
|
* @privateRemarks Link to capability docs
|
|
11
|
-
* @returns {Promise<void>}
|
|
12
|
-
* @this {XCUITestDriver}
|
|
13
13
|
*/
|
|
14
|
-
export function mobileInstallApp(this:
|
|
14
|
+
export declare function mobileInstallApp(this: XCUITestDriver, app: string, timeoutMs?: number, checkVersion?: boolean): Promise<void>;
|
|
15
15
|
/**
|
|
16
16
|
* Checks whether the given application is installed on the device under test.
|
|
17
17
|
* Offload app is handled as not installed.
|
|
18
18
|
*
|
|
19
|
-
* @param
|
|
20
|
-
* @returns
|
|
21
|
-
* @this {XCUITestDriver}
|
|
19
|
+
* @param bundleId - The bundle identifier of the application to be checked
|
|
20
|
+
* @returns `true` if the application is installed; `false` otherwise
|
|
22
21
|
*/
|
|
23
|
-
export function mobileIsAppInstalled(this:
|
|
22
|
+
export declare function mobileIsAppInstalled(this: XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
24
23
|
/**
|
|
25
24
|
* Removes/uninstalls the given application from the device under test.
|
|
26
25
|
* Offload app data could also be removed.
|
|
27
26
|
*
|
|
28
|
-
* @param
|
|
29
|
-
* @returns
|
|
30
|
-
* @this {XCUITestDriver}
|
|
27
|
+
* @param bundleId - The bundle identifier of the application to be removed
|
|
28
|
+
* @returns `true` if the application has been removed successfully; `false` otherwise
|
|
31
29
|
*/
|
|
32
|
-
export function mobileRemoveApp(this:
|
|
30
|
+
export declare function mobileRemoveApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
33
31
|
/**
|
|
34
32
|
* Executes the given app on the device under test.
|
|
35
33
|
*
|
|
36
34
|
* 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
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @returns {Promise<void>}
|
|
41
|
-
* @this {XCUITestDriver}
|
|
35
|
+
* @param bundleId - The bundle identifier of the application to be launched
|
|
36
|
+
* @param args - One or more command line arguments for the app. If the app is already running then this argument is ignored.
|
|
37
|
+
* @param environment - Environment variables mapping for the app. If the app is already running then this argument is ignored.
|
|
42
38
|
*/
|
|
43
|
-
export function mobileLaunchApp(this:
|
|
39
|
+
export declare function mobileLaunchApp(this: XCUITestDriver, bundleId: string, args?: string | string[], environment?: Record<string, any>): Promise<void>;
|
|
44
40
|
/**
|
|
45
41
|
* Terminates the given app on the device under test.
|
|
46
42
|
*
|
|
47
43
|
* 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
|
|
49
|
-
* @returns
|
|
50
|
-
* @this {XCUITestDriver}
|
|
44
|
+
* @param bundleId - The bundle identifier of the application to be terminated
|
|
45
|
+
* @returns `true` if the app has been terminated successfully; `false` otherwise
|
|
51
46
|
*/
|
|
52
|
-
export function mobileTerminateApp(this:
|
|
47
|
+
export declare function mobileTerminateApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
53
48
|
/**
|
|
54
49
|
* Activate the given app on the device under test.
|
|
55
50
|
*
|
|
56
51
|
* 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
52
|
*
|
|
58
|
-
* @param
|
|
59
|
-
* @returns {Promise<void>}
|
|
60
|
-
* @this {XCUITestDriver}
|
|
53
|
+
* @param bundleId - The bundle identifier of the application to be activated
|
|
61
54
|
*/
|
|
62
|
-
export function mobileActivateApp(this:
|
|
55
|
+
export declare function mobileActivateApp(this: XCUITestDriver, bundleId: string): Promise<void>;
|
|
63
56
|
/**
|
|
64
57
|
* Kill the given app on the real device under test by instruments service.
|
|
65
58
|
*
|
|
@@ -68,86 +61,116 @@ export function mobileActivateApp(this: import("../driver").XCUITestDriver, bund
|
|
|
68
61
|
* @remarks `appium-xcuitest-driver` v4.4 does not require `py-ios-device` to be installed.
|
|
69
62
|
* @privateRemarks See implementation at https://github.com/YueChen-C/py-ios-device/blob/51f4683c5c3c385a015858ada07a5f1c62d3cf57/ios_device/cli/base.py#L220
|
|
70
63
|
* @see https://github.com/YueChen-C/py-ios-device
|
|
71
|
-
* @param
|
|
72
|
-
* @returns
|
|
64
|
+
* @param bundleId - The bundle identifier of the application to be killed
|
|
65
|
+
* @returns `true` if the app has been killed successfully; `false` otherwise
|
|
73
66
|
* @group Real Device Only
|
|
74
|
-
* @this {XCUITestDriver}
|
|
75
67
|
*/
|
|
76
|
-
export function mobileKillApp(this:
|
|
68
|
+
export declare function mobileKillApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
77
69
|
/**
|
|
78
70
|
* Queries the state of an installed application from the device under test.
|
|
79
71
|
*
|
|
80
72
|
* If the app with the given `bundleId` is not installed, an exception will be thrown.
|
|
81
73
|
*
|
|
82
|
-
* @param
|
|
83
|
-
* @returns
|
|
74
|
+
* @param bundleId - The bundle identifier of the application to be queried
|
|
75
|
+
* @returns The actual application state code
|
|
84
76
|
* @see https://developer.apple.com/documentation/xctest/xcuiapplicationstate?language=objc
|
|
85
|
-
* @this {XCUITestDriver}
|
|
86
77
|
*/
|
|
87
|
-
export function mobileQueryAppState(this:
|
|
78
|
+
export declare function mobileQueryAppState(this: XCUITestDriver, bundleId: string): Promise<AppState>;
|
|
88
79
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* @
|
|
80
|
+
* Installs the given application to the device under test.
|
|
81
|
+
*
|
|
82
|
+
* This is a wrapper around {@linkcode mobileInstallApp mobile: installApp}.
|
|
83
|
+
*
|
|
84
|
+
* @param appPath - Path to the application bundle or .ipa/.app file
|
|
85
|
+
* @param opts - Installation options
|
|
86
|
+
* @param opts.timeoutMs - Maximum time to wait for installation to complete (in milliseconds)
|
|
87
|
+
* @param opts.strategy - If `true`, checks the version before installing and skips if already installed
|
|
92
88
|
*/
|
|
93
|
-
export function installApp(
|
|
89
|
+
export declare function installApp(this: XCUITestDriver, appPath: string, opts?: {
|
|
90
|
+
timeoutMs?: number;
|
|
91
|
+
strategy?: boolean;
|
|
92
|
+
}): Promise<void>;
|
|
94
93
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* @
|
|
94
|
+
* Activates the given app on the device under test.
|
|
95
|
+
*
|
|
96
|
+
* This is a wrapper around {@linkcode mobileLaunchApp mobile: launchApp}. If the app is already
|
|
97
|
+
* running, it will be activated (brought to foreground). If the app is not installed or cannot
|
|
98
|
+
* be launched, an exception is thrown.
|
|
99
|
+
*
|
|
100
|
+
* @param bundleId - The bundle identifier of the application to be activated
|
|
101
|
+
* @param opts - Launch options
|
|
102
|
+
* @param opts.environment - Environment variables mapping for the app
|
|
103
|
+
* @param opts.arguments - Command line arguments for the app
|
|
98
104
|
*/
|
|
99
|
-
export function activateApp(bundleId: string, opts?:
|
|
105
|
+
export declare function activateApp(this: XCUITestDriver, bundleId: string, opts?: {
|
|
106
|
+
environment?: Record<string, any>;
|
|
107
|
+
arguments?: string[];
|
|
108
|
+
}): Promise<void>;
|
|
100
109
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
110
|
+
* Checks whether the given application is installed on the device under test.
|
|
111
|
+
*
|
|
112
|
+
* This is a wrapper around {@linkcode mobileIsAppInstalled mobile: isAppInstalled}.
|
|
113
|
+
* Offload apps are treated as not installed.
|
|
114
|
+
*
|
|
115
|
+
* @param bundleId - The bundle identifier of the application to be checked
|
|
116
|
+
* @returns `true` if the application is installed; `false` otherwise
|
|
103
117
|
*/
|
|
104
|
-
export function isAppInstalled(this:
|
|
118
|
+
export declare function isAppInstalled(this: XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
105
119
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* @
|
|
120
|
+
* Terminates the given app on the device under test.
|
|
121
|
+
*
|
|
122
|
+
* This is a wrapper around {@linkcode mobileTerminateApp mobile: terminateApp}.
|
|
123
|
+
* The command performs termination via XCTest's `terminate` API. If the app is not installed,
|
|
124
|
+
* an exception is thrown. If the app is not running, nothing is done.
|
|
125
|
+
*
|
|
126
|
+
* @param bundleId - The bundle identifier of the application to be terminated
|
|
127
|
+
* @returns `true` if the app has been terminated successfully; `false` otherwise
|
|
109
128
|
*/
|
|
110
|
-
export function terminateApp(this:
|
|
129
|
+
export declare function terminateApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
111
130
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
131
|
+
* Queries the state of an installed application from the device under test.
|
|
132
|
+
*
|
|
133
|
+
* This is a wrapper around {@linkcode mobileQueryAppState mobile: queryAppState}.
|
|
134
|
+
* If the app with the given `bundleId` is not installed, an exception will be thrown.
|
|
135
|
+
*
|
|
136
|
+
* @param bundleId - The bundle identifier of the application to be queried
|
|
137
|
+
* @returns The actual application state code
|
|
138
|
+
* @see https://developer.apple.com/documentation/xctest/xcuiapplicationstate?language=objc
|
|
114
139
|
*/
|
|
115
|
-
export function queryAppState(this:
|
|
140
|
+
export declare function queryAppState(this: XCUITestDriver, bundleId: string): Promise<AppState>;
|
|
116
141
|
/**
|
|
117
142
|
* List applications installed on the real device under test
|
|
118
143
|
*
|
|
119
144
|
* Read [Pushing/Pulling files](https://appium.io/docs/en/writing-running-appium/ios/ios-xctest-file-movement/) for more details.
|
|
120
|
-
* @param
|
|
121
|
-
* @returns
|
|
145
|
+
* @param applicationType - The type of applications to list.
|
|
146
|
+
* @returns A list of apps where each item is a mapping of bundle identifiers to maps of platform-specific app properties.
|
|
122
147
|
* @remarks Having `UIFileSharingEnabled` set to `true` in the return app properties map means this app supports file upload/download in its `documents` container.
|
|
123
148
|
* @group Real Device Only
|
|
124
149
|
*/
|
|
125
|
-
export function mobileListApps(applicationType?:
|
|
150
|
+
export declare function mobileListApps(this: XCUITestDriver, applicationType?: 'User' | 'System'): Promise<Record<string, any>[]>;
|
|
126
151
|
/**
|
|
127
152
|
* Deletes application data files, so it could start from the clean state next time
|
|
128
153
|
* it is launched.
|
|
129
154
|
* This API only works on a Simulator.
|
|
130
155
|
*
|
|
131
|
-
* @param
|
|
132
|
-
* @
|
|
133
|
-
* @returns {Promise<boolean>} true if any files from the app's data container have been deleted
|
|
156
|
+
* @param bundleId Application bundle identifier
|
|
157
|
+
* @returns true if any files from the app's data container have been deleted
|
|
134
158
|
*/
|
|
135
|
-
export function mobileClearApp(this:
|
|
159
|
+
export declare function mobileClearApp(this: XCUITestDriver, bundleId: string): Promise<boolean>;
|
|
136
160
|
/**
|
|
137
|
-
*
|
|
138
|
-
* the app after the timeout or keep it minimized based on the parameter value.
|
|
161
|
+
* Closes the app (simulates device home button press).
|
|
139
162
|
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
163
|
+
* It is possible to restore the app after a timeout or keep it minimized based on the parameter value.
|
|
164
|
+
*
|
|
165
|
+
* @param seconds - Timeout configuration. Accepts:
|
|
166
|
+
* - A positive number (seconds): app will be restored after the specified number of seconds
|
|
167
|
+
* - A negative number or zero: app will not be restored (kept minimized)
|
|
168
|
+
* - `undefined` or `null`: app will not be restored (kept minimized)
|
|
169
|
+
* - An object with `timeout` property:
|
|
170
|
+
* - `{timeout: 5000}`: app will be restored after 5 seconds (timeout in milliseconds)
|
|
171
|
+
* - `{timeout: null}` or `{timeout: -2}`: app will not be restored
|
|
172
|
+
*/
|
|
173
|
+
export declare function background(this: XCUITestDriver, seconds?: number | {
|
|
174
|
+
timeout?: number | null;
|
|
175
|
+
}): Promise<void>;
|
|
153
176
|
//# sourceMappingURL=app-management.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-management.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-management.
|
|
1
|
+
{"version":3,"file":"app-management.d.ts","sourceRoot":"","sources":["../../../lib/commands/app-management.ts"],"names":[],"mappings":"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"}
|