Skip to content

Commit

Permalink
keep lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Sep 21, 2023
1 parent 00be076 commit 5f538aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions WebDriverAgentLib/Commands/FBSessionCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -419,14 +419,17 @@ + (NSDictionary *)sessionInformation
};
}

/*
Return the device kind as lower case
*/
+ (NSString *)deviceName:(UIUserInterfaceIdiom) userInterfaceIdiom
{
if (userInterfaceIdiom == UIUserInterfaceIdiomPad) {
return @"iPad";
return @"ipad";
} else if (userInterfaceIdiom == UIUserInterfaceIdiomTV) {
return @"Apple TV";
return @"apple tv";
} else if (userInterfaceIdiom == UIUserInterfaceIdiomPhone) {
return @"iPhone";
return @"iphone";
}
// CarPlay, Mac, Vision UI or unknown are possible
return @"Unknown";
Expand Down

0 comments on commit 5f538aa

Please sign in to comment.