appium-webdriveragent 16.15.3 → 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 +19 -0
- package/README.md +1 -1
- package/Scripts/fetch-prebuilt-wda.mjs +3 -2
- package/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m +25 -0
- package/WebDriverAgentLib/Info.plist +2 -2
- package/WebDriverAgentTests/IntegrationTests_tvOS/FBTVFocusIntegrationTests.m +21 -0
- package/package.json +9 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
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
|
+
|
|
13
|
+
## 16.16.0 (2026-10-17)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* move WebDriverAgent into the monorepo as packages/webdriveragent ([#76](https://github.com/appium/appium-ios/issues/76)) ([e5886f6](https://github.com/appium/appium-ios/commit/e5886f6f2265f4fc94e5c4c35889f67bd09aad96))
|
|
18
|
+
|
|
19
|
+
|
|
1
20
|
## [16.15.3](https://github.com/appium/WebDriverAgent/compare/v16.15.2...v16.15.3) (2026-10-16)
|
|
2
21
|
|
|
3
22
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://npmjs.org/package/appium-webdriveragent)
|
|
4
4
|
[](https://npmjs.org/package/appium-webdriveragent)
|
|
5
5
|
|
|
6
|
-
[](https://github.com/appium/appium-ios/actions/workflows/release.yml)
|
|
7
7
|
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
|
|
@@ -16,9 +16,10 @@ const log = logger.getLogger('WDA');
|
|
|
16
16
|
*/
|
|
17
17
|
async function fetchPrebuiltWebDriverAgentAssets() {
|
|
18
18
|
const packageJson = JSON.parse(readFileSync(path.resolve(__dirname, '..', 'package.json'), 'utf8'));
|
|
19
|
-
|
|
19
|
+
// lerna's independent-mode release tag
|
|
20
|
+
const tag = `${packageJson.name}@${packageJson.version}`;
|
|
20
21
|
log.info(`Getting links to webdriveragent release ${tag}`);
|
|
21
|
-
const downloadUrl = `https://api.github.com/repos/appium/
|
|
22
|
+
const downloadUrl = `https://api.github.com/repos/appium/appium-ios/releases/tags/${encodeURIComponent(tag)}`;
|
|
22
23
|
log.info(`Getting WDA release ${downloadUrl}`);
|
|
23
24
|
let releases;
|
|
24
25
|
try {
|
|
@@ -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.
|
|
18
|
+
<string>16.16.1</string>
|
|
19
19
|
<key>CFBundleSignature</key>
|
|
20
20
|
<string>????</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>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.
|
|
3
|
+
"version": "16.16.1",
|
|
4
4
|
"description": "Package bundling WebDriverAgent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Appium",
|
|
@@ -9,15 +9,16 @@
|
|
|
9
9
|
"WebDriverAgent",
|
|
10
10
|
"iOS"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://github.com/appium/
|
|
12
|
+
"homepage": "https://github.com/appium/appium-ios/tree/main/packages/webdriveragent",
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/appium/
|
|
14
|
+
"url": "https://github.com/appium/appium-ios/issues"
|
|
15
15
|
},
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
17
|
"author": "Appium Contributors",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "
|
|
20
|
+
"url": "https://github.com/appium/appium-ios.git",
|
|
21
|
+
"directory": "packages/webdriveragent"
|
|
21
22
|
},
|
|
22
23
|
"files": [
|
|
23
24
|
"lib",
|
|
@@ -48,10 +49,6 @@
|
|
|
48
49
|
"build": "tsc -b",
|
|
49
50
|
"dev": "npm run build -- --watch",
|
|
50
51
|
"clean": "npm run build -- --clean",
|
|
51
|
-
"lint": "oxlint -c oxlint.config.mjs .",
|
|
52
|
-
"lint:fix": "oxlint -c oxlint.config.mjs --fix .",
|
|
53
|
-
"format": "oxfmt -c oxfmt.config.mjs .",
|
|
54
|
-
"format:check": "oxfmt -c oxfmt.config.mjs --check .",
|
|
55
52
|
"prepare": "npm run build",
|
|
56
53
|
"version": "npm run sync-wda-version",
|
|
57
54
|
"test": "node --enable-source-maps --experimental-test-module-mocks --test --test-timeout=60000 \"./build/test/unit/**/*.spec.js\"",
|
|
@@ -73,20 +70,20 @@
|
|
|
73
70
|
"teen_process": "^4.2.0"
|
|
74
71
|
},
|
|
75
72
|
"devDependencies": {
|
|
76
|
-
"@appium/coresim": "^1.
|
|
73
|
+
"@appium/coresim": "^1.13.1",
|
|
77
74
|
"@appium/oxc-config": "^1.1.0",
|
|
78
|
-
"@appium/semantic-release-config": "^1.1.0",
|
|
79
75
|
"@appium/tsconfig": "^1.2.0",
|
|
80
76
|
"@appium/types": "^1.0.0-rc.1",
|
|
81
77
|
"@types/async-lock": "^1.4.2",
|
|
82
78
|
"@types/node": "^26.0.0",
|
|
83
79
|
"@types/sinon": "^22.0.0",
|
|
84
|
-
"appium-xcode": "^7.
|
|
80
|
+
"appium-xcode": "^7.2.3",
|
|
85
81
|
"semver": "^7.3.7",
|
|
86
82
|
"sinon": "^22.0.0"
|
|
87
83
|
},
|
|
88
84
|
"engines": {
|
|
89
85
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
90
86
|
"npm": ">=10"
|
|
91
|
-
}
|
|
87
|
+
},
|
|
88
|
+
"gitHead": "396c3ea39a609981f73330cc27d58bee33258a6e"
|
|
92
89
|
}
|