appium-webdriveragent 7.0.1 → 7.0.2
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
|
+
## [7.0.2](https://github.com/appium/WebDriverAgent/compare/v7.0.1...v7.0.2) (2024-02-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Miscellaneous Chores
|
|
5
|
+
|
|
6
|
+
* Tune alert detection if system app is active ([#854](https://github.com/appium/WebDriverAgent/issues/854)) ([857d3de](https://github.com/appium/WebDriverAgent/commit/857d3decf497935098ba6acb61654be1da173b11))
|
|
7
|
+
|
|
1
8
|
## [7.0.1](https://github.com/appium/WebDriverAgent/compare/v7.0.0...v7.0.1) (2024-02-21)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -533,7 +533,7 @@ NSDictionary<NSNumber *, NSString *> *auditTypeValuesToNames(void) {
|
|
|
533
533
|
if (nil == otherApp) {
|
|
534
534
|
return NO;
|
|
535
535
|
}
|
|
536
|
-
return [self.bundleID isEqualToString:(NSString *)otherApp.bundleID];
|
|
536
|
+
return self == otherApp || [self.bundleID isEqualToString:(NSString *)otherApp.bundleID];
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
@end
|
|
@@ -261,7 +261,12 @@
|
|
|
261
261
|
- (XCUIElement *)alertElement
|
|
262
262
|
{
|
|
263
263
|
if (nil == self.element) {
|
|
264
|
-
|
|
264
|
+
XCUIApplication *systemApp = XCUIApplication.fb_systemApplication;
|
|
265
|
+
if ([systemApp fb_isSameAppAs:self.application]) {
|
|
266
|
+
self.element = systemApp.fb_alertElement;
|
|
267
|
+
} else {
|
|
268
|
+
self.element = systemApp.fb_alertElement ?: self.application.fb_alertElement;
|
|
269
|
+
}
|
|
265
270
|
}
|
|
266
271
|
return self.element;
|
|
267
272
|
}
|