Google chrome is not lauching | Selenium Forum
M
Posted on 28/09/2015
Hi,
i m not able to launch google chrome using following code

{
System.setProperty("webdriver.chrome.driver", "C:\\Users\\Rameshnithya\\Desktop\\chromedriver.exe");

WebDriver driver = new ChromeDriver();
}

i m getting the following error
Starting ChromeDriver 2.16.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961) on port 11268
Only local connections are allowed.
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: chrome failed to start
(Driver info: chromedriver=2.16.333243 (0bfa1d3575fc1044244f21ddb82bf870944ef961),platform=Windows NT 6.3 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 4.24 seconds
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 02:56:46'
System info: host: 'ramesh', ip: '192.168.1.111', os.name: 'Windows 8.1', os.arch: 'x86', os.version: '6.3', java.version: '1.8.0_60'
Driver info: org.openqa.selenium.chrome.ChromeDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:141)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:170)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:159)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:116)
at SeleniumBasics.main(SeleniumBasics.java:12)

Please can anyone help me in it. thanks in advance......

M
Replied on 28/09/2015

[quote:3ml21jax]Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: chrome failed to start[/quote:3ml21jax]

there is no stack trace. and its "unknown error".

check the version of chrome driver that its the latest one.


M
Replied on 29/09/2015

Hi,
i m using the latest version of chrome driver only and google chrome Version 45.0.2454.99 m.In the same way i am able to launch IE.could u please help.
thanks,
nithya.


M
Replied on 30/09/2015

try uninstalling the chrome and reinstalling it.