appium-webdriveragent 9.3.2 → 9.3.3
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.3](https://github.com/appium/WebDriverAgent/compare/v9.3.2...v9.3.3) (2025-03-27)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* Properly set snapshot lookup scope if limitXpathContextScope is disabled ([#996](https://github.com/appium/WebDriverAgent/issues/996)) ([03ca7cd](https://github.com/appium/WebDriverAgent/commit/03ca7cd27b7cd92a45b344eb661db973c5dde809))
|
|
6
|
+
|
|
1
7
|
## [9.3.2](https://github.com/appium/WebDriverAgent/compare/v9.3.1...v9.3.2) (2025-03-26)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
#import "FBMacros.h"
|
|
14
14
|
#import "FBElementTypeTransformer.h"
|
|
15
|
+
#import "FBConfiguration.h"
|
|
15
16
|
#import "NSPredicate+FBFormat.h"
|
|
16
17
|
#import "FBXCElementSnapshotWrapper+Helpers.h"
|
|
17
18
|
#import "FBXCodeCompatibility.h"
|
|
@@ -109,8 +110,9 @@
|
|
|
109
110
|
id<FBXCElementSnapshot> snapshot = matchingSnapshots.firstObject;
|
|
110
111
|
matchingSnapshots = @[snapshot];
|
|
111
112
|
}
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
XCUIElement *scopeRoot = FBConfiguration.limitXpathContextScope ? self : self.application;
|
|
114
|
+
return [scopeRoot fb_filterDescendantsWithSnapshots:matchingSnapshots
|
|
115
|
+
onlyChildren:NO];
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<key>CFBundlePackageType</key>
|
|
16
16
|
<string>FMWK</string>
|
|
17
17
|
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>9.3.
|
|
18
|
+
<string>9.3.3</string>
|
|
19
19
|
<key>CFBundleSignature</key>
|
|
20
20
|
<string>????</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>9.3.
|
|
22
|
+
<string>9.3.3</string>
|
|
23
23
|
<key>NSPrincipalClass</key>
|
|
24
24
|
<string/>
|
|
25
25
|
</dict>
|
|
@@ -108,12 +108,24 @@
|
|
|
108
108
|
[FBXCElementSnapshotWrapper ensureWrapped:[parentSnapshots objectAtIndex:0]].wdLabel,
|
|
109
109
|
@"MainView"
|
|
110
110
|
);
|
|
111
|
+
NSArray *elements = [button.application fb_filterDescendantsWithSnapshots:parentSnapshots onlyChildren:NO];
|
|
112
|
+
XCTAssertEqual(elements.count, 1);
|
|
113
|
+
XCTAssertEqualObjects(
|
|
114
|
+
[[elements objectAtIndex:0] wdLabel],
|
|
115
|
+
@"MainView"
|
|
116
|
+
);
|
|
111
117
|
NSArray *currentSnapshots = [FBXPath matchesWithRootElement:button forQuery:@"."];
|
|
112
118
|
XCTAssertEqual(currentSnapshots.count, 1);
|
|
113
119
|
XCTAssertEqualObjects(
|
|
114
120
|
[FBXCElementSnapshotWrapper ensureWrapped:[currentSnapshots objectAtIndex:0]].wdType,
|
|
115
121
|
@"XCUIElementTypeButton"
|
|
116
122
|
);
|
|
123
|
+
NSArray *currentElements = [button.application fb_filterDescendantsWithSnapshots:currentSnapshots onlyChildren:NO];
|
|
124
|
+
XCTAssertEqual(currentElements.count, 1);
|
|
125
|
+
XCTAssertEqualObjects(
|
|
126
|
+
[[currentElements objectAtIndex:0] wdType],
|
|
127
|
+
@"XCUIElementTypeButton"
|
|
128
|
+
);
|
|
117
129
|
} @finally {
|
|
118
130
|
FBConfiguration.limitXpathContextScope = previousValue;
|
|
119
131
|
}
|