Skip to content

Commit

Permalink
feat: Add some useful details to the device info output (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Sep 5, 2019
1 parent faa95f9 commit 17e8498
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions WebDriverAgentLib/Commands/FBCustomCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,16 @@ + (NSDictionary *)processArguments:(XCUIApplication *)app
return FBResponseWithObject(@{
@"currentLocale": currentLocale,
@"timeZone": self.timeZone,
@"name": UIDevice.currentDevice.name,
@"model": UIDevice.currentDevice.model,
@"uuid": [UIDevice.currentDevice.identifierForVendor UUIDString] ?: @"unknown",
// https://developer.apple.com/documentation/uikit/uiuserinterfaceidiom?language=objc
@"userInterfaceIdiom": @(UIDevice.currentDevice.userInterfaceIdiom),
#if TARGET_OS_SIMULATOR
@"isSimulator": @(YES),
#else
@"isSimulator": @(NO),
#endif
});
}

Expand Down

0 comments on commit 17e8498

Please sign in to comment.