appium-webdriveragent 7.0.1 → 7.0.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,17 @@
1
+ ## [7.0.3](https://github.com/appium/WebDriverAgent/compare/v7.0.2...v7.0.3) (2024-03-03)
2
+
3
+
4
+ ### Miscellaneous Chores
5
+
6
+ * tune release packages ([#856](https://github.com/appium/WebDriverAgent/issues/856)) ([aa0765e](https://github.com/appium/WebDriverAgent/commit/aa0765e425faba6c035a9933320e91679b167b80))
7
+
8
+ ## [7.0.2](https://github.com/appium/WebDriverAgent/compare/v7.0.1...v7.0.2) (2024-02-28)
9
+
10
+
11
+ ### Miscellaneous Chores
12
+
13
+ * Tune alert detection if system app is active ([#854](https://github.com/appium/WebDriverAgent/issues/854)) ([857d3de](https://github.com/appium/WebDriverAgent/commit/857d3decf497935098ba6acb61654be1da173b11))
14
+
1
15
  ## [7.0.1](https://github.com/appium/WebDriverAgent/compare/v7.0.0...v7.0.1) (2024-02-21)
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,7 +261,12 @@
261
261
  - (XCUIElement *)alertElement
262
262
  {
263
263
  if (nil == self.element) {
264
- self.element = XCUIApplication.fb_systemApplication.fb_alertElement ?: self.application.fb_alertElement;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {