-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown HttpClient factory netty when create remote webdriver #9173
Comments
Run |
Thanks @barancev for your comments. I ran it, and didn't see any selenium in webdrivermanager. Here's the output:
|
I removed webdriver manager, and still got the same error. I noticed that the dependency of 4 includes version of 3.*, is this expected?
|
It worked when use individual dependencies instead of the java one.
|
Not sure what's going on in your system, I've created this simple POM file
and the result of
|
Also please note that 4.0.0-beta-1 has beed released, it's recommended to upgrade to this version. |
Thanks @barancev . I updated to beta-1, still the same issue. So weird. Thanks for all the help. |
The issue you're having is because of Spring.
You have overridden only the selenium-java artifact, but Spring continues to manages the transitive dependencies. The proper way to override would be to do:
And the use it without version>
|
@jddipqd It works! Thank you! |
🐛 Bug Report
Get "Unknown HttpClient factory netty" when create remote web driver using latest selenium version 4.0.0-alpha-7.
To Reproduce
Here's the pom I used:
Error log:
java.lang.ExceptionInInitializerError
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:157)
at com.kt.drivers.ChromeWebDriverServiceImpl.create(ChromeWebDriverServiceImpl.java:67)
at com.kt.cases.BaseTest.beforeMethod(BaseTest.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:61)
at org.testng.internal.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:366)
at org.testng.internal.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:320)
at org.testng.internal.TestInvoker.runConfigMethods(TestInvoker.java:701)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:527)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66)
at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:109)
Caused by: java.lang.IllegalArgumentException: Unknown HttpClient factory netty
at org.openqa.selenium.remote.http.HttpClient$Factory.create(HttpClient.java:54)
at org.openqa.selenium.remote.http.HttpClient$Factory.createDefault(HttpClient.java:70)
at org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:47)
... 36 more
Detailed steps to reproduce the behavior:
Expected behavior
Web driver can be created successfully.
Test script or set of commands reproducing this issue
Source codes to create web driver, and the same codes work for selenium 3.
Environment
OS: IOS
Browser: Chrome
Browser version:
Browser Driver version: ChromeDriver 88.0.4324.96
Language Bindings version:
Selenium Grid version (if applicable):
The text was updated successfully, but these errors were encountered: