Skip to content

Commit

Permalink
Update FBSession.m
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Dec 12, 2024
1 parent e142b2f commit 3c0e22f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebDriverAgentLib/Routing/FBSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ - (XCUIApplication *)activeApplication
if (nil != self.testedApplication) {
XCUIApplicationState testedAppState = self.testedApplication.state;
if (testedAppState >= XCUIApplicationStateRunningForeground) {
NSPredicate *searchPredicate = [NSPredicate predicateWithFormat:@"%K == %@ OR identifier IN {%@, %@}",
NSPredicate *searchPredicate = [NSPredicate predicateWithFormat:@"%K == %@ OR %K IN {%@, %@}",
@"elementType", @(XCUIElementTypeAlert),
// To look for `SBTransientOverlayWindow` elements. See https://github.com/appium/WebDriverAgent/pull/946
@"SBTransientOverlayWindow",
@"identifier", @"SBTransientOverlayWindow",
// To look for 'criticalAlertSetting' elements https://developer.apple.com/documentation/usernotifications/unnotificationsettings/criticalalertsetting
// See https://github.com/appium/appium/issues/20835
@"Notification"];
Expand Down

0 comments on commit 3c0e22f

Please sign in to comment.