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 Chrome

Open aishwarya2801-ux opened this issue 3 years ago • 4 comments

          io.github.bonigarcia.wdm.config.WebDriverManagerException: There was an error creating WebDriver object for Chrome
at io.github.bonigarcia.wdm.WebDriverManager.instantiateDriver(WebDriverManager.java:1775)
at io.github.bonigarcia.wdm.WebDriverManager.create(WebDriverManager.java:425)
at utility.BaseTest.Launch_Application(BaseTest.java:83)
at stepDefinition.LoginTest.user_login_to_the_application(LoginTest.java:33)
at ?.user login to the application(file:///D:/agenthuronIT/_work/2/s/BDDFramework/src/main/java/bddFeature/A-login.feature:25)

Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at io.github.bonigarcia.wdm.webdriver.WebDriverCreator.createLocalWebDriver(WebDriverCreator.java:61)

i am getting this error can some one please help me with this ?

Originally posted by @aishwarya2801-ux in https://github.com/bonigarcia/webdrivermanager/issues/576#issuecomment-1560698446

aishwarya2801-ux avatar May 24 '23 08:05 aishwarya2801-ux

@bonigarcia can u please help me with this issue... i have updated webdriver , chrome driver selenium still the program is getting failed in pipeline

aishwarya2801-ux avatar May 24 '23 08:05 aishwarya2801-ux

@bonigarcia still i am facing the same issue could u please suggest me some answers?

Aishu2801 avatar Jun 08 '23 11:06 Aishu2801

Please follow the issue template to report any issue.

bonigarcia avatar Jun 12 '23 14:06 bonigarcia

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

<dependency>
		<groupId>io.github.bonigarcia</groupId>
		<artifactId>webdrivermanager</artifactId>
		<version>6.1.1</version>
	</dependency>

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

harshchokshi avatar Jul 19 '25 07:07 harshchokshi