Skip to content

Commit c851871

Browse files
VietND96sandeepsuryaprasad
authored andcommitted
[grid][java]: apply protocol version in relay session factory (SeleniumHQ#13880)
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 09993cf commit c851871

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/src/org/openqa/selenium/grid/node/relay/RelaySessionFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ public Either<WebDriverException, ActiveSession> apply(CreateSessionRequest sess
159159

160160
ClientConfig clientConfig =
161161
ClientConfig.defaultConfig().readTimeout(sessionTimeout).baseUrl(serviceUrl);
162+
if (!serviceProtocolVersion.isEmpty()) {
163+
clientConfig = clientConfig.version(serviceProtocolVersion);
164+
}
162165
HttpClient client = clientFactory.createClient(clientConfig);
163166

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

0 commit comments

Comments
 (0)