appium-webdriveragent 7.0.0 → 7.0.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
+ ## [7.0.1](https://github.com/appium/WebDriverAgent/compare/v7.0.0...v7.0.1) (2024-02-21)
2
+
3
+
4
+ ### Miscellaneous Chores
5
+
6
+ * Simplify the logic of alert element detection ([#851](https://github.com/appium/WebDriverAgent/issues/851)) ([54f91f1](https://github.com/appium/WebDriverAgent/commit/54f91f198e45535ea9d86b7eee40b21f43f84294))
7
+
1
8
  ## [7.0.0](https://github.com/appium/WebDriverAgent/compare/v6.1.1...v7.0.0) (2024-02-12)
2
9
 
3
10
 
@@ -261,16 +261,7 @@
261
261
  - (XCUIElement *)alertElement
262
262
  {
263
263
  if (nil == self.element) {
264
- self.element = self.application.fb_alertElement;
265
- if (nil == self.element) {
266
- XCUIApplication *systemApp = XCUIApplication.fb_systemApplication;
267
- for (XCUIApplication *activeApp in XCUIApplication.fb_activeApplications) {
268
- if (systemApp.processID == activeApp.processID) {
269
- self.element = activeApp.fb_alertElement;
270
- break;
271
- }
272
- }
273
- }
264
+ self.element = XCUIApplication.fb_systemApplication.fb_alertElement ?: self.application.fb_alertElement;
274
265
  }
275
266
  return self.element;
276
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {