Skip to content

Commit

Permalink
docs: add a comment which links to the pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
mwakizaka committed Oct 16, 2024
1 parent 365280a commit 024ea37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WebDriverAgentLib/Routing/FBSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ - (XCUIApplication *)activeApplication
if (nil != self.testedApplication) {
XCUIApplicationState testedAppState = self.testedApplication.state;
if (testedAppState >= XCUIApplicationStateRunningForeground) {
// We look for `SBTransientOverlayWindow` elements for half modals. See https://github.com/appium/WebDriverAgent/pull/946
NSPredicate *searchPredicate = [NSPredicate predicateWithFormat:@"%K == %@ OR %K == %@", @"elementType", @(XCUIElementTypeAlert), @"identifier", @"SBTransientOverlayWindow"];
if ([FBConfiguration shouldRespectSystemAlerts]
&& [[XCUIApplication.fb_systemApplication descendantsMatchingType:XCUIElementTypeAny] matchingPredicate:searchPredicate].count > 0) {
Expand Down

0 comments on commit 024ea37

Please sign in to comment.