Skip to content

Commit

Permalink
feat: do not get active process information in a new session request (#…
Browse files Browse the repository at this point in the history
…774)

* fix: improve new session creation performance

* Update FBSessionCommands.m
  • Loading branch information
KazuCocoa authored Sep 22, 2023
1 parent 5d2bd5f commit 2784ce4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions WebDriverAgentLib/Commands/FBSessionCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,10 @@ + (NSString *)buildTimestamp
];
}

/**
Return current session information.
This response does not have any active application information.
*/
+ (NSDictionary *)sessionInformation
{
return
Expand Down Expand Up @@ -438,15 +442,10 @@ + (NSString *)deviceNameByUserInterfaceIdiom:(UIUserInterfaceIdiom) userInterfac

+ (NSDictionary *)currentCapabilities
{
FBApplication *application = [FBSession activeSession].activeApplication;
// to log the info in the system
[FBLogger logFmt:@"Current active application bundle id is %@", application.bundleID];
return
@{
@"device": [self.class deviceNameByUserInterfaceIdiom:[UIDevice currentDevice].userInterfaceIdiom],
@"sdkVersion": [[UIDevice currentDevice] systemVersion],
@"browserName": application.label ?: [NSNull null],
@"CFBundleIdentifier": application.bundleID ?: [NSNull null],
@"sdkVersion": [[UIDevice currentDevice] systemVersion]
};
}

Expand Down

0 comments on commit 2784ce4

Please sign in to comment.