appium-webdriveragent 9.5.0 → 9.5.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,9 @@
|
|
|
1
|
+
## [9.5.1](https://github.com/appium/WebDriverAgent/compare/v9.5.0...v9.5.1) (2025-04-10)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* Make sure we don't store element snapshot in the cache ([#1001](https://github.com/appium/WebDriverAgent/issues/1001)) ([cfe052b](https://github.com/appium/WebDriverAgent/commit/cfe052bb3adb3f3b24d0a34f386c60cf1516b308))
|
|
6
|
+
|
|
1
7
|
## [9.5.0](https://github.com/appium/WebDriverAgent/compare/v9.4.1...v9.5.0) (2025-04-10)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
@@ -269,6 +269,7 @@
|
|
|
269
269
|
NSString *focusedUUID = [elementCache storeElement:(useNativeCachingStrategy
|
|
270
270
|
? focusedElement
|
|
271
271
|
: [focusedElement fb_stableInstanceWithUid:focusedElement.fb_uid])];
|
|
272
|
+
focusedElement.lastSnapshot = nil;
|
|
272
273
|
if (focusedUUID && [focusedUUID isEqualToString:(id)request.parameters[@"uuid"]]) {
|
|
273
274
|
isFocused = YES;
|
|
274
275
|
}
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<key>CFBundlePackageType</key>
|
|
16
16
|
<string>FMWK</string>
|
|
17
17
|
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>9.5.
|
|
18
|
+
<string>9.5.1</string>
|
|
19
19
|
<key>CFBundleSignature</key>
|
|
20
20
|
<string>????</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>9.5.
|
|
22
|
+
<string>9.5.1</string>
|
|
23
23
|
<key>NSPrincipalClass</key>
|
|
24
24
|
<string/>
|
|
25
25
|
</dict>
|
|
@@ -55,7 +55,9 @@ XCUIElement *maybeStable(XCUIElement *element)
|
|
|
55
55
|
id<FBResponsePayload> FBResponseWithCachedElement(XCUIElement *element, FBElementCache *elementCache, BOOL compact)
|
|
56
56
|
{
|
|
57
57
|
[elementCache storeElement:maybeStable(element)];
|
|
58
|
-
|
|
58
|
+
NSDictionary *response = FBDictionaryResponseWithElement(element, compact);
|
|
59
|
+
element.lastSnapshot = nil;
|
|
60
|
+
return FBResponseWithStatus([FBCommandStatus okWithValue:response]);
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
id<FBResponsePayload> FBResponseWithCachedElements(NSArray<XCUIElement *> *elements, FBElementCache *elementCache, BOOL compact)
|
|
@@ -64,6 +66,7 @@ id<FBResponsePayload> FBResponseWithCachedElements(NSArray<XCUIElement *> *eleme
|
|
|
64
66
|
for (XCUIElement *element in elements) {
|
|
65
67
|
[elementCache storeElement:maybeStable(element)];
|
|
66
68
|
[elementsResponse addObject:FBDictionaryResponseWithElement(element, compact)];
|
|
69
|
+
element.lastSnapshot = nil;
|
|
67
70
|
}
|
|
68
71
|
return FBResponseWithStatus([FBCommandStatus okWithValue:elementsResponse]);
|
|
69
72
|
}
|