appium-webdriveragent 9.2.0 → 9.3.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
@@ -1,3 +1,15 @@
1
+ ## [9.3.1](https://github.com/appium/WebDriverAgent/compare/v9.3.0...v9.3.1) (2025-03-25)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * **deps-dev:** bump sinon from 19.0.5 to 20.0.0 ([#994](https://github.com/appium/WebDriverAgent/issues/994)) ([f55462f](https://github.com/appium/WebDriverAgent/commit/f55462f4fa63314dfea48670d17ee54dc5fe2d96))
6
+
7
+ ## [9.3.0](https://github.com/appium/WebDriverAgent/compare/v9.2.0...v9.3.0) (2025-03-21)
8
+
9
+ ### Features
10
+
11
+ * Add /window/rect W3C endpoint ([#991](https://github.com/appium/WebDriverAgent/issues/991)) ([34f9510](https://github.com/appium/WebDriverAgent/commit/34f95107997bdec63219a2fd917de899de3e198c))
12
+
1
13
  ## [9.2.0](https://github.com/appium/WebDriverAgent/compare/v9.1.0...v9.2.0) (2025-03-13)
2
14
 
3
15
  ### Features
@@ -53,6 +53,7 @@
53
53
  return
54
54
  @[
55
55
  [[FBRoute GET:@"/window/size"] respondWithTarget:self action:@selector(handleGetWindowSize:)],
56
+ [[FBRoute GET:@"/window/rect"] respondWithTarget:self action:@selector(handleGetWindowRect:)],
56
57
  [[FBRoute GET:@"/window/size"].withoutSession respondWithTarget:self action:@selector(handleGetWindowSize:)],
57
58
  [[FBRoute GET:@"/element/:uuid/enabled"] respondWithTarget:self action:@selector(handleGetEnabled:)],
58
59
  [[FBRoute GET:@"/element/:uuid/rect"] respondWithTarget:self action:@selector(handleGetRect:)],
@@ -525,13 +526,32 @@
525
526
  {
526
527
  XCUIApplication *app = request.session.activeApplication ?: XCUIApplication.fb_activeApplication;
527
528
 
529
+ CGRect frame = app.wdFrame;
528
530
  #if TARGET_OS_TV
529
- CGSize screenSize = app.frame.size;
531
+ CGSize screenSize = frame.size;
530
532
  #else
533
+ CGSize screenSize = FBAdjustDimensionsForApplication(frame.size, app.interfaceOrientation);
534
+ #endif
535
+ return FBResponseWithObject(@{
536
+ @"width": @(screenSize.width),
537
+ @"height": @(screenSize.height),
538
+ });
539
+ }
540
+
541
+
542
+ + (id<FBResponsePayload>)handleGetWindowRect:(FBRouteRequest *)request
543
+ {
544
+ XCUIApplication *app = request.session.activeApplication ?: XCUIApplication.fb_activeApplication;
545
+
531
546
  CGRect frame = app.wdFrame;
547
+ #if TARGET_OS_TV
548
+ CGSize screenSize = frame.size;
549
+ #else
532
550
  CGSize screenSize = FBAdjustDimensionsForApplication(frame.size, app.interfaceOrientation);
533
551
  #endif
534
552
  return FBResponseWithObject(@{
553
+ @"x": @(frame.origin.x),
554
+ @"y": @(frame.origin.y),
535
555
  @"width": @(screenSize.width),
536
556
  @"height": @(screenSize.height),
537
557
  });
@@ -15,11 +15,11 @@
15
15
  <key>CFBundlePackageType</key>
16
16
  <string>FMWK</string>
17
17
  <key>CFBundleShortVersionString</key>
18
- <string>9.2.0</string>
18
+ <string>9.3.1</string>
19
19
  <key>CFBundleSignature</key>
20
20
  <string>????</string>
21
21
  <key>CFBundleVersion</key>
22
- <string>9.2.0</string>
22
+ <string>9.3.1</string>
23
23
  <key>NSPrincipalClass</key>
24
24
  <string/>
25
25
  </dict>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "9.2.0",
3
+ "version": "9.3.1",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -68,7 +68,7 @@
68
68
  "prettier": "^3.0.0",
69
69
  "semantic-release": "^24.0.0",
70
70
  "semver": "^7.3.7",
71
- "sinon": "^19.0.1",
71
+ "sinon": "^20.0.0",
72
72
  "ts-node": "^10.9.1",
73
73
  "typescript": "^5.4.2"
74
74
  },