diff --git a/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.h b/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.h index e60efaa48..ca7fc53d8 100644 --- a/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.h +++ b/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.h @@ -70,7 +70,7 @@ typedef NS_ENUM(NSUInteger, FBUIInterfaceAppearance) { - (nullable NSData *)fb_screenshotWithError:(NSError*__autoreleasing*)error; /** - Returns device current wifi ip4 address + Returns device's current wifi ip4 address */ - (nullable NSString *)fb_wifiIPAddress; diff --git a/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m b/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m index 5b95b8c62..ef8664fb6 100644 --- a/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m +++ b/WebDriverAgentLib/Categories/XCUIDevice+FBHelpers.m @@ -134,7 +134,7 @@ - (NSString *)fb_wifiIPAddress continue; } NSString *interfaceName = [NSString stringWithUTF8String:temp_addr->ifa_name]; - if(![interfaceName containsString:@"en"]) { + if(![interfaceName isEqualToString:@"en0"]) { temp_addr = temp_addr->ifa_next; continue; }