appium-webdriveragent 4.13.0 → 4.13.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,10 @@
|
|
|
1
|
+
## [4.13.1](https://github.com/appium/WebDriverAgent/compare/v4.13.0...v4.13.1) (2023-04-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Fixed Xpath lookup for Xcode 14.3 ([#681](https://github.com/appium/WebDriverAgent/issues/681)) ([3e0b191](https://github.com/appium/WebDriverAgent/commit/3e0b1914f87585ed69ba20d960502eabb058941c))
|
|
7
|
+
|
|
1
8
|
## [4.13.0](https://github.com/appium/WebDriverAgent/compare/v4.12.2...v4.13.0) (2023-02-23)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
#import "XCUIElement+FBUID.h"
|
|
13
13
|
|
|
14
14
|
#import "FBElementUtils.h"
|
|
15
|
+
#import "FBLogger.h"
|
|
15
16
|
#import "XCUIApplication.h"
|
|
16
17
|
#import "XCUIElement+FBUtilities.h"
|
|
17
18
|
|
|
@@ -35,6 +36,10 @@
|
|
|
35
36
|
|
|
36
37
|
@implementation FBXCElementSnapshotWrapper (FBUID)
|
|
37
38
|
|
|
39
|
+
static void swizzled_validatePredicateWithExpressionsAllowed(id self, SEL _cmd, id predicate, BOOL withExpressionsAllowed)
|
|
40
|
+
{
|
|
41
|
+
}
|
|
42
|
+
|
|
38
43
|
#pragma clang diagnostic push
|
|
39
44
|
#pragma clang diagnostic ignored "-Wobjc-load-method"
|
|
40
45
|
+ (void)load
|
|
@@ -43,6 +48,19 @@
|
|
|
43
48
|
NSAssert(XCElementSnapshotCls != nil, @"Could not locate XCElementSnapshot class");
|
|
44
49
|
Method uidMethod = class_getInstanceMethod(self.class, @selector(fb_uid));
|
|
45
50
|
class_addMethod(XCElementSnapshotCls, @selector(fb_uid), method_getImplementation(uidMethod), method_getTypeEncoding(uidMethod));
|
|
51
|
+
|
|
52
|
+
// Support for Xcode 14.3 requires disabling the new predicate validator, see https://github.com/appium/appium/issues/18444
|
|
53
|
+
Class XCTElementQueryTransformerPredicateValidatorCls = objc_lookUpClass("XCTElementQueryTransformerPredicateValidator");
|
|
54
|
+
if (XCTElementQueryTransformerPredicateValidatorCls == nil) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
Method validatePredicateMethod = class_getClassMethod(XCTElementQueryTransformerPredicateValidatorCls, NSSelectorFromString(@"validatePredicate:withExpressionsAllowed:"));
|
|
58
|
+
if (validatePredicateMethod == nil) {
|
|
59
|
+
[FBLogger log:@"Could not find method +[XCTElementQueryTransformerPredicateValidator validatePredicate:withExpressionsAllowed:]"];
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
IMP swizzledImp = (IMP)swizzled_validatePredicateWithExpressionsAllowed;
|
|
63
|
+
method_setImplementation(validatePredicateMethod, swizzledImp);
|
|
46
64
|
}
|
|
47
65
|
#pragma diagnostic pop
|
|
48
66
|
|