File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
src/main/java/com/zebrunner/agent/core/webdriver Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ plugins {
55group = ' com.zebrunner'
66version = " ${ 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+
817repositories {
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" )
Original file line number Diff line number Diff line change 1313import org .openqa .selenium .remote .HttpCommandExecutor ;
1414import org .openqa .selenium .remote .RemoteWebDriver ;
1515import 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
1818import java .io .PrintWriter ;
1919import 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 );
You can’t perform that action at this time.
0 commit comments