appium-webdriveragent 16.9.4 → 16.10.0

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
@@ -1,3 +1,9 @@
1
+ ## [16.10.0](https://github.com/appium/WebDriverAgent/compare/v16.9.4...v16.10.0) (2026-08-29)
2
+
3
+ ### Features
4
+
5
+ * add displayId in the wda/screen ([#1238](https://github.com/appium/WebDriverAgent/issues/1238)) ([bfbe6b0](https://github.com/appium/WebDriverAgent/commit/bfbe6b00b196647f87267827627a5ff675496c30))
6
+
1
7
  ## [16.9.4](https://github.com/appium/WebDriverAgent/compare/v16.9.3...v16.9.4) (2026-08-29)
2
8
 
3
9
  ### Bug Fixes
@@ -174,6 +174,7 @@
174
174
  @"statusBarSize": @{@"width": @(statusBarSize.width),
175
175
  @"height": @(statusBarSize.height),
176
176
  },
177
+ @"displayId": @([FBScreen displayID]),
177
178
  @"scale": @([FBScreen scale]),
178
179
  });
179
180
  }
@@ -15,11 +15,11 @@
15
15
  <key>CFBundlePackageType</key>
16
16
  <string>FMWK</string>
17
17
  <key>CFBundleShortVersionString</key>
18
- <string>16.9.4</string>
18
+ <string>16.10.0</string>
19
19
  <key>CFBundleSignature</key>
20
20
  <string>????</string>
21
21
  <key>CFBundleVersion</key>
22
- <string>16.9.4</string>
22
+ <string>16.10.0</string>
23
23
  <key>NSPrincipalClass</key>
24
24
  <string/>
25
25
  </dict>
@@ -12,6 +12,11 @@ NS_ASSUME_NONNULL_BEGIN
12
12
 
13
13
  @interface FBScreen : NSObject
14
14
 
15
+ /**
16
+ The identifier of the main device's display
17
+ */
18
+ + (long long)displayID;
19
+
15
20
  /**
16
21
  The scale factor of the main device's screen
17
22
  */
@@ -13,6 +13,11 @@
13
13
 
14
14
  @implementation FBScreen
15
15
 
16
+ + (long long)displayID
17
+ {
18
+ return XCUIScreen.mainScreen.displayID;
19
+ }
20
+
16
21
  + (double)scale
17
22
  {
18
23
  return [XCUIScreen.mainScreen scale];
@@ -22,10 +22,14 @@
22
22
  [self launchApplication];
23
23
  }
24
24
 
25
+ - (void)testDisplayID
26
+ {
27
+ XCTAssertGreaterThanOrEqual([FBScreen displayID], 0LL);
28
+ }
29
+
25
30
  - (void)testScreenScale
26
31
  {
27
32
  XCTAssertTrue([FBScreen scale] >= 2);
28
33
  }
29
34
 
30
35
  @end
31
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "16.9.4",
3
+ "version": "16.10.0",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "keywords": [
6
6
  "Appium",