webdrivermanager icon indicating copy to clipboard operation
webdrivermanager copied to clipboard

io.github.bonigarcia.wdm.config.WebDriverManagerException: There was an error creating WebDriver object for Edge

Open harshchokshi opened this issue 1 year ago • 4 comments

I am facing the issue I do not know what happen suddenly it was working fine last Saturday please provide me the solution.

io.github.bonigarcia.wdm.config.WebDriverManagerException: io.github.bonigarcia.wdm.config.WebDriverManagerException: java.net.UnknownHostException: msedgedriver.azureedge.net at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:1443) at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:1206) at io.github.bonigarcia.wdm.WebDriverManager.fallback(WebDriverManager.java:1459) at io.github.bonigarcia.wdm.WebDriverManager.handleException(WebDriverManager.java:1437) at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:1206) at io.github.bonigarcia.wdm.WebDriverManager.setup(WebDriverManager.java:429) at testenvironment.TestSetup.testEnvironmentSetup(TestSetup.java:52) at testenvironment.TestSetup.startTestSuite(TestSetup.java:77) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:141) at org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:71) at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:400) at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:333) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:358) at org.testng.SuiteRunner.run(SuiteRunner.java:312) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1274) at org.testng.TestNG.runSuitesLocally(TestNG.java:1208) at org.testng.TestNG.runSuites(TestNG.java:1112) at org.testng.TestNG.run(TestNG.java:1079) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:293) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:91) Caused by: io.github.bonigarcia.wdm.config.WebDriverManagerException: java.net.UnknownHostException: msedgedriver.azureedge.net at io.github.bonigarcia.wdm.managers.EdgeDriverManager.getDriversFromXml(EdgeDriverManager.java:308) at io.github.bonigarcia.wdm.managers.EdgeDriverManager.getDriverUrls(EdgeDriverManager.java:138) at io.github.bonigarcia.wdm.WebDriverManager.createUrlHandler(WebDriverManager.java:1464) at io.github.bonigarcia.wdm.WebDriverManager.download(WebDriverManager.java:1294) at io.github.bonigarcia.wdm.WebDriverManager.manage(WebDriverManager.java:1200) ... 23 more Caused by: java.net.UnknownHostException: msedgedriver.azureedge.net at java.base/java.net.InetAddress$CachedLookup.get(InetAddress.java:988) at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1818) at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1688) at org.apache.hc.client5.http.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:61) at org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:169) at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:490) at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:164) at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:174) at org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:144) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:192) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:150) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:113) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:110) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:183) at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:87) at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.apache.hc.client5.http.classic.HttpClient.executeOpen(HttpClient.java:183) at io.github.bonigarcia.wdm.online.HttpClient.execute(HttpClient.java:151) at io.github.bonigarcia.wdm.managers.EdgeDriverManager.getDriversFromXml(EdgeDriverManager.java:267) ... 27 more

Image

harshchokshi avatar Jul 19 '25 08:07 harshchokshi

This issue is fixed in WebDriverManager 6.2.0.

bonigarcia avatar Jul 19 '25 09:07 bonigarcia

@bonigarcia

https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager

I cannot see the 6.2.0 version in the Maven Repository where can I find that I need to add in pom.xml and need to start my project work

harshchokshi avatar Jul 19 '25 10:07 harshchokshi

https://central.sonatype.com/artifact/io.github.bonigarcia/webdrivermanager

bonigarcia avatar Jul 19 '25 10:07 bonigarcia

https://central.sonatype.com/artifact/io.github.bonigarcia/webdrivermanager

Thanks !!

Issue is resolved now.

harshchokshi avatar Jul 19 '25 10:07 harshchokshi