appium-webdriveragent 9.6.1 → 9.6.2
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.6.2](https://github.com/appium/WebDriverAgent/compare/v9.6.1...v9.6.2) (2025-05-01)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* release element screenshot data ([#1013](https://github.com/appium/WebDriverAgent/issues/1013)) ([a85f327](https://github.com/appium/WebDriverAgent/commit/a85f3271991556941234fbc888528051b1569db1))
|
|
6
|
+
|
|
1
7
|
## [9.6.1](https://github.com/appium/WebDriverAgent/compare/v9.6.0...v9.6.1) (2025-04-22)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -562,17 +562,23 @@
|
|
|
562
562
|
|
|
563
563
|
+ (id<FBResponsePayload>)handleElementScreenshot:(FBRouteRequest *)request
|
|
564
564
|
{
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
565
|
+
@autoreleasepool {
|
|
566
|
+
FBElementCache *elementCache = request.session.elementCache;
|
|
567
|
+
XCUIElement *element = [elementCache elementForUUID:(NSString *)request.parameters[@"uuid"]
|
|
568
|
+
checkStaleness:YES];
|
|
569
|
+
NSData *screenshotData = nil;
|
|
570
|
+
@autoreleasepool {
|
|
571
|
+
screenshotData = [element.screenshot PNGRepresentation];
|
|
572
|
+
if (nil == screenshotData) {
|
|
573
|
+
NSString *errMsg = [NSString stringWithFormat:@"Cannot take a screenshot of %@", element.description];
|
|
574
|
+
return FBResponseWithStatus([FBCommandStatus unableToCaptureScreenErrorWithMessage:errMsg
|
|
575
|
+
traceback:nil]);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
NSString *screenshot = [screenshotData base64EncodedStringWithOptions:0];
|
|
579
|
+
screenshotData = nil;
|
|
580
|
+
return FBResponseWithObject(screenshot);
|
|
573
581
|
}
|
|
574
|
-
NSString *screenshot = [screenshotData base64EncodedStringWithOptions:0];
|
|
575
|
-
return FBResponseWithObject(screenshot);
|
|
576
582
|
}
|
|
577
583
|
|
|
578
584
|
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<key>CFBundlePackageType</key>
|
|
16
16
|
<string>FMWK</string>
|
|
17
17
|
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>9.6.
|
|
18
|
+
<string>9.6.2</string>
|
|
19
19
|
<key>CFBundleSignature</key>
|
|
20
20
|
<string>????</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>9.6.
|
|
22
|
+
<string>9.6.2</string>
|
|
23
23
|
<key>NSPrincipalClass</key>
|
|
24
24
|
<string/>
|
|
25
25
|
</dict>
|