Skip to content

Commit

Permalink
[grid][java]: apply protocol version in relay session factory
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Apr 26, 2024
1 parent 8723d04 commit eed2f81
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ public Either<WebDriverException, ActiveSession> apply(CreateSessionRequest sess

ClientConfig clientConfig =
ClientConfig.defaultConfig().readTimeout(sessionTimeout).baseUrl(serviceUrl);
if (!serviceProtocolVersion.isEmpty()) {
clientConfig = clientConfig.version(serviceProtocolVersion);
}
HttpClient client = clientFactory.createClient(clientConfig);

Command command = new Command(null, DriverCommand.NEW_SESSION(capabilities));
Expand Down

0 comments on commit eed2f81

Please sign in to comment.