Skip to content

Commit 61b35a2

Browse files
author
Andrei Kamarouski
committed
bump up selenium to 4.17.0
1 parent ee4762e commit 61b35a2

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

build.gradle

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ plugins {
55
group = 'com.zebrunner'
66
version = "${version != 'unspecified' ? version : '1.7.0'}"
77

8+
sourceSets.all {
9+
configurations.getByName(runtimeClasspathConfigurationName) {
10+
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
11+
}
12+
configurations.getByName(compileClasspathConfigurationName) {
13+
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
14+
}
15+
}
16+
817
repositories {
918
mavenCentral()
1019
}
@@ -13,8 +22,8 @@ dependencies {
1322
compileOnly('com.konghq:unirest-java:3.13.10')
1423
implementation('org.yaml:snakeyaml:1.30')
1524

16-
implementation("net.bytebuddy:byte-buddy:1.12.18")
17-
compileOnly('io.appium:java-client:8.3.0')
25+
implementation("net.bytebuddy:byte-buddy:1.14.11")
26+
compileOnly('org.seleniumhq.selenium:selenium-remote-driver:4.17.0')
1827

1928
implementation('org.slf4j:slf4j-api:1.7.36')
2029
compileOnly("log4j:log4j:1.2.17")

src/main/java/com/zebrunner/agent/core/webdriver/StartSessionInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import org.openqa.selenium.remote.HttpCommandExecutor;
1414
import org.openqa.selenium.remote.RemoteWebDriver;
1515
import org.openqa.selenium.remote.http.ClientConfig;
16-
import org.openqa.selenium.remote.http.netty.NettyClient;
16+
import org.openqa.selenium.remote.http.jdk.JdkHttpClient;
1717

1818
import java.io.PrintWriter;
1919
import java.io.StringWriter;
@@ -81,7 +81,7 @@ private static void substituteSeleniumHub(RemoteWebDriver driver) throws NoSuchF
8181
setFieldValue(commandExecutor, "remoteServer", seleniumHubUrl);
8282

8383
Object clientObject = getFieldValue(commandExecutor, "client");
84-
if (clientObject instanceof NettyClient) {
84+
if (clientObject instanceof JdkHttpClient) {
8585
String userInfo = seleniumHubUrl.getUserInfo();
8686
if (userInfo != null && !userInfo.isEmpty()) {
8787
String[] credentials = userInfo.split(":", 2);

0 commit comments

Comments
 (0)