appium-webdriveragent 7.0.0 → 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,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [7.0.1](https://github.com/appium/WebDriverAgent/compare/v7.0.0...v7.0.1) (2024-02-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Miscellaneous Chores
|
|
12
|
+
|
|
13
|
+
* Simplify the logic of alert element detection ([#851](https://github.com/appium/WebDriverAgent/issues/851)) ([54f91f1](https://github.com/appium/WebDriverAgent/commit/54f91f198e45535ea9d86b7eee40b21f43f84294))
|
|
14
|
+
|
|
1
15
|
## [7.0.0](https://github.com/appium/WebDriverAgent/compare/v6.1.1...v7.0.0) (2024-02-12)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -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,15 +261,11 @@
|
|
|
261
261
|
- (XCUIElement *)alertElement
|
|
262
262
|
{
|
|
263
263
|
if (nil == self.element) {
|
|
264
|
-
|
|
265
|
-
if (
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
self.element = activeApp.fb_alertElement;
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
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;
|
|
273
269
|
}
|
|
274
270
|
}
|
|
275
271
|
return self.element;
|