appium-webdriveragent 9.2.0 → 9.3.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
|
+
## [9.3.0](https://github.com/appium/WebDriverAgent/compare/v9.2.0...v9.3.0) (2025-03-21)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* Add /window/rect W3C endpoint ([#991](https://github.com/appium/WebDriverAgent/issues/991)) ([34f9510](https://github.com/appium/WebDriverAgent/commit/34f95107997bdec63219a2fd917de899de3e198c))
|
|
6
|
+
|
|
1
7
|
## [9.2.0](https://github.com/appium/WebDriverAgent/compare/v9.1.0...v9.2.0) (2025-03-13)
|
|
2
8
|
|
|
3
9
|
### 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 =
|
|
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.
|
|
18
|
+
<string>9.3.0</string>
|
|
19
19
|
<key>CFBundleSignature</key>
|
|
20
20
|
<string>????</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>9.
|
|
22
|
+
<string>9.3.0</string>
|
|
23
23
|
<key>NSPrincipalClass</key>
|
|
24
24
|
<string/>
|
|
25
25
|
</dict>
|