Skip to content

Commit

Permalink
Merge pull request #60 from appium/master
Browse files Browse the repository at this point in the history
Fork Sync: Update from parent repository
  • Loading branch information
github-actions[bot] authored Feb 22, 2024
2 parents 278fb60 + 878b62a commit ab1239c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [7.0.1](https://github.com/appium/WebDriverAgent/compare/v7.0.0...v7.0.1) (2024-02-21)


### Miscellaneous Chores

* Simplify the logic of alert element detection ([#851](https://github.com/appium/WebDriverAgent/issues/851)) ([54f91f1](https://github.com/appium/WebDriverAgent/commit/54f91f198e45535ea9d86b7eee40b21f43f84294))

## [7.0.0](https://github.com/appium/WebDriverAgent/compare/v6.1.1...v7.0.0) (2024-02-12)


Expand Down
11 changes: 1 addition & 10 deletions WebDriverAgentLib/FBAlert.m
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,7 @@ - (BOOL)clickAlertButton:(NSString *)label error:(NSError **)error
- (XCUIElement *)alertElement
{
if (nil == self.element) {
self.element = self.application.fb_alertElement;
if (nil == self.element) {
XCUIApplication *systemApp = XCUIApplication.fb_systemApplication;
for (XCUIApplication *activeApp in XCUIApplication.fb_activeApplications) {
if (systemApp.processID == activeApp.processID) {
self.element = activeApp.fb_alertElement;
break;
}
}
}
self.element = XCUIApplication.fb_systemApplication.fb_alertElement ?: self.application.fb_alertElement;
}
return self.element;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appium-webdriveragent",
"version": "7.0.0",
"version": "7.0.1",
"description": "Package bundling WebDriverAgent",
"main": "./build/index.js",
"scripts": {
Expand Down

0 comments on commit ab1239c

Please sign in to comment.