appium-webdriveragent 9.3.1 → 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,15 @@
|
|
|
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
|
+
|
|
7
|
+
## [9.3.2](https://github.com/appium/WebDriverAgent/compare/v9.3.1...v9.3.2) (2025-03-26)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Adjust limitXPathContextScope setting name ([#995](https://github.com/appium/WebDriverAgent/issues/995)) ([9789e39](https://github.com/appium/WebDriverAgent/commit/9789e393b55bc682a9a8ef5a65fba5e4dbf752ce))
|
|
12
|
+
|
|
1
13
|
## [9.3.1](https://github.com/appium/WebDriverAgent/compare/v9.3.0...v9.3.1) (2025-03-25)
|
|
2
14
|
|
|
3
15
|
### Miscellaneous Chores
|
|
@@ -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>
|
|
@@ -34,4 +34,4 @@ NSString* const FB_SETTING_ANIMATION_COOL_OFF_TIMEOUT = @"animationCoolOffTimeou
|
|
|
34
34
|
NSString* const FB_SETTING_MAX_TYPING_FREQUENCY = @"maxTypingFrequency";
|
|
35
35
|
NSString* const FB_SETTING_RESPECT_SYSTEM_ALERTS = @"respectSystemAlerts";
|
|
36
36
|
NSString* const FB_SETTING_USE_CLEAR_TEXT_SHORTCUT = @"useClearTextShortcut";
|
|
37
|
-
NSString* const FB_SETTING_LIMIT_XPATH_CONTEXT_SCOPE = @"
|
|
37
|
+
NSString* const FB_SETTING_LIMIT_XPATH_CONTEXT_SCOPE = @"limitXPathContextScope";
|
|
@@ -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
|
}
|