We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c3719b commit 960ab92Copy full SHA for 960ab92
WebDriverAgentLib/FBApplication.m
@@ -81,7 +81,8 @@ + (instancetype)fb_activeApplicationWithDefaultBundleId:(nullable NSString *)bun
81
}
82
if (nil == activeApplicationElement && activeApplicationElements.count > 0) {
83
activeApplicationElement = [activeApplicationElements firstObject];
84
- } else {
+ }
85
+ if (nil == activeApplicationElement) {
86
NSString *errMsg = @"No applications are currently active";
87
@throw [NSException exceptionWithName:FBElementNotVisibleException reason:errMsg userInfo:nil];
88
0 commit comments