Skip to content

Commit

Permalink
[grid][java]: apply protocol version in relay session factory (#13880)
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 authored May 4, 2024
1 parent 970557d commit fe2edbd
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 fe2edbd

Please sign in to comment.