appium-webdriveragent 4.10.23 → 4.10.24
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.10.24](https://github.com/appium/WebDriverAgent/compare/v4.10.23...v4.10.24) (2023-02-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Catch unexpected exceptions thrown by the alerts monitor ([#660](https://github.com/appium/WebDriverAgent/issues/660)) ([aa22555](https://github.com/appium/WebDriverAgent/commit/aa22555f0dcf98de43c95cb20be73e911a97741e))
|
|
7
|
+
|
|
1
8
|
## [4.10.23](https://github.com/appium/WebDriverAgent/compare/v4.10.22...v4.10.23) (2023-02-05)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
#import "FBAlert.h"
|
|
13
13
|
#import "FBApplication.h"
|
|
14
|
+
#import "FBLogger.h"
|
|
14
15
|
#import "XCUIApplication+FBAlert.h"
|
|
15
16
|
|
|
16
17
|
static const NSTimeInterval FB_MONTORING_INTERVAL = 2.0;
|
|
@@ -50,9 +51,16 @@ static const NSTimeInterval FB_MONTORING_INTERVAL = 2.0;
|
|
|
50
51
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
51
52
|
NSArray<FBApplication *> *activeApps = FBApplication.fb_activeApplications;
|
|
52
53
|
for (FBApplication *activeApp in activeApps) {
|
|
53
|
-
XCUIElement *alertElement =
|
|
54
|
+
XCUIElement *alertElement = nil;
|
|
55
|
+
@try {
|
|
56
|
+
alertElement = activeApp.fb_alertElement;
|
|
57
|
+
if (nil != alertElement) {
|
|
58
|
+
[self.delegate didDetectAlert:[FBAlert alertWithElement:alertElement]];
|
|
59
|
+
}
|
|
60
|
+
} @catch (NSException *e) {
|
|
61
|
+
[FBLogger logFmt:@"Got an unexpected exception while monitoring alerts: %@\n%@", e.reason, e.callStackSymbols];
|
|
62
|
+
}
|
|
54
63
|
if (nil != alertElement) {
|
|
55
|
-
[self.delegate didDetectAlert:[FBAlert alertWithElement:alertElement]];
|
|
56
64
|
break;
|
|
57
65
|
}
|
|
58
66
|
}
|