appium-webdriveragent 16.16.0 → 16.16.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
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [16.16.1](https://github.com/appium/appium-ios/compare/appium-webdriveragent@16.16.0...appium-webdriveragent@16.16.1) (2026-10-18)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **webdriveragent:** use the remote Home button to background tvOS apps ([#83](https://github.com/appium/appium-ios/issues/83)) ([2d953f4](https://github.com/appium/appium-ios/commit/2d953f41a598ddcb2ebe10398aecf3164bd00ad4))
|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
## 16.16.0 (2026-10-17)
|
|
7
14
|
|
|
8
15
|
### Features
|
|
@@ -136,8 +136,33 @@ static bool fb_isLocked;
|
|
|
136
136
|
|
|
137
137
|
- (BOOL)fb_goToHomescreenWithError:(NSError **)error
|
|
138
138
|
{
|
|
139
|
+
#if TARGET_OS_TV
|
|
140
|
+
return [self fb_goToHomescreenOnTVWithError:error];
|
|
141
|
+
#else
|
|
139
142
|
return [XCUIApplication fb_switchToSystemApplicationWithError:error];
|
|
143
|
+
#endif
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
#if TARGET_OS_TV
|
|
147
|
+
- (BOOL)fb_goToHomescreenOnTVWithError:(NSError **)error
|
|
148
|
+
{
|
|
149
|
+
// PineBoard rejects launch/activate requests on tvOS 26.5 and 27.0.
|
|
150
|
+
XCUIApplication *foregroundApp = XCUIApplication.fb_activeApplication;
|
|
151
|
+
if ([foregroundApp fb_isSameAppAs:XCUIApplication.fb_systemApplication]) {
|
|
152
|
+
return YES;
|
|
153
|
+
}
|
|
154
|
+
@try {
|
|
155
|
+
[XCUIRemote.sharedRemote pressButton:XCUIRemoteButtonHome];
|
|
156
|
+
} @catch (NSException *exception) {
|
|
157
|
+
return [[[FBErrorBuilder alloc] withDescription:exception.reason] buildError:error];
|
|
158
|
+
}
|
|
159
|
+
return [[[[FBRunLoopSpinner new] timeout:5]
|
|
160
|
+
timeoutErrorMessage:@"Timed out while waiting for the home screen"]
|
|
161
|
+
spinUntilTrue:^BOOL{
|
|
162
|
+
return foregroundApp.state != XCUIApplicationStateRunningForeground;
|
|
163
|
+
} error:error];
|
|
140
164
|
}
|
|
165
|
+
#endif
|
|
141
166
|
|
|
142
167
|
- (BOOL)fb_lockScreen:(NSError **)error
|
|
143
168
|
{
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<key>CFBundlePackageType</key>
|
|
16
16
|
<string>FMWK</string>
|
|
17
17
|
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>16.16.
|
|
18
|
+
<string>16.16.1</string>
|
|
19
19
|
<key>CFBundleSignature</key>
|
|
20
20
|
<string>????</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>16.16.
|
|
22
|
+
<string>16.16.1</string>
|
|
23
23
|
<key>NSPrincipalClass</key>
|
|
24
24
|
<string/>
|
|
25
25
|
</dict>
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
#import <XCTest/XCTest.h>
|
|
10
|
+
#import "XCUIApplication+FBHelpers.h"
|
|
11
|
+
#import "XCUIDevice+FBHelpers.h"
|
|
10
12
|
|
|
11
13
|
#if TARGET_OS_TV
|
|
12
14
|
|
|
@@ -79,6 +81,25 @@
|
|
|
79
81
|
XCTAssertFalse(disabled.hasFocus);
|
|
80
82
|
}
|
|
81
83
|
|
|
84
|
+
- (void)testHomeAndInputAfterDeactivate
|
|
85
|
+
{
|
|
86
|
+
NSError *error = nil;
|
|
87
|
+
XCTAssertTrue([XCUIDevice.sharedDevice fb_goToHomescreenWithError:&error], @"%@", error);
|
|
88
|
+
XCTAssertNotEqual(self.app.state, XCUIApplicationStateRunningForeground);
|
|
89
|
+
XCTAssertEqual(XCUIApplication.fb_systemApplication.state, XCUIApplicationStateRunningForeground);
|
|
90
|
+
[self.app activate];
|
|
91
|
+
for (NSNumber *duration in @[@0, @2]) {
|
|
92
|
+
[self.app launch];
|
|
93
|
+
XCTAssertTrue([self.app fb_deactivateWithDuration:duration.doubleValue error:&error], @"%@", error);
|
|
94
|
+
XCTAssertEqual(self.app.state, XCUIApplicationStateRunningForeground);
|
|
95
|
+
XCTAssertTrue([self.app.buttons[@"cell_1_2"] fb_selectWithError:&error], @"%@", error);
|
|
96
|
+
XCTNSPredicateExpectation *updated = [[XCTNSPredicateExpectation alloc]
|
|
97
|
+
initWithPredicate:[NSPredicate predicateWithFormat:@"label == %@", @"cell_1_2"]
|
|
98
|
+
object:self.app.staticTexts[@"lastSelectedLabel"]];
|
|
99
|
+
[self waitForExpectations:@[updated] timeout:5];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
82
103
|
@end
|
|
83
104
|
|
|
84
105
|
#endif
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-webdriveragent",
|
|
3
|
-
"version": "16.16.
|
|
3
|
+
"version": "16.16.1",
|
|
4
4
|
"description": "Package bundling WebDriverAgent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Appium",
|
|
@@ -84,5 +84,6 @@
|
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
86
86
|
"npm": ">=10"
|
|
87
|
-
}
|
|
87
|
+
},
|
|
88
|
+
"gitHead": "396c3ea39a609981f73330cc27d58bee33258a6e"
|
|
88
89
|
}
|