Chromedriver.exe starts, but I still get "Timed out waiting for ChromeDriver server to start". Chrome not starting.

8,846 views
Skip to first unread message

Freenow82

unread,
Mar 22, 2012, 11:52:40 AM3/22/12
to seleniu...@googlegroups.com
Hi guys, I am new here, but any help would be appreciated.

I am trying to run a simple selenium test with Chrome. My chromedriver.exe is in the PATH and the program starts chromedriver (I can see it starting in the taskmanager in my windows 7).

My program is basically just this now:

WebDriver driver = new ChromeDriver();
driver
.get("http://www.google.com");

But then instead of starting Chrome, it just sits there, until I get this error:

\Started ChromeDriver
port=47708
version=19.0.1068.0
log=C:\seltest\chromedriver.log
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_03'
Driver info: driver.version: ChromeDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:435)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:139)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:144)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:86)
    at LoginTest_Chrome.main(LoginTest_Chrome.java:22)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.openqa.selenium.WebDriverException: Timed out waiting for ChromeDriver server to start.
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_03'
Driver info: driver.version: ChromeDriver
    at org.openqa.selenium.chrome.ChromeDriverService.start(ChromeDriverService.java:166)
    at org.openqa.selenium.chrome.ChromeCommandExecutor.execute(ChromeCommandExecutor.java:46)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:415)
    ... 10 more
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:47708/status, http://localhost:47708/healthz] to be available after 20002 ms
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:86)
    at org.openqa.selenium.chrome.ChromeDriverService.start(ChromeDriverService.java:164)
    ... 12 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:143)
    at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:61)
    ... 13 more
Caused by: java.util.concurrent.TimeoutException
    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258)
    at java.util.concurrent.FutureTask.get(FutureTask.java:119)
    at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:130)
    ... 14 more

Freenow82

unread,
Mar 23, 2012, 8:22:01 AM3/23/12
to seleniu...@googlegroups.com
By the way, if I go to: http://localhost:47708/status in my browser, I get:

{"status":0,"value":{"build":{"revision":"","time":"Mar 13 2012 03:09:15 PST","version":""},"os":{"arch":"x86","name":"Windows NT","version":"6.1 SP1"}}}

But if I go to http://localhost:47708/healthz in my browser, it just loads forever and nothing ever happens.

Any ideas why? I disabled firewall and anti-virus.

Jason Dumontier

unread,
Mar 23, 2012, 12:37:27 PM3/23/12
to seleniu...@googlegroups.com
Not sure if this is it but I had a similar problem until I changed to the dev channel version of Chrome. 

Freenow82

unread,
Mar 23, 2012, 12:59:55 PM3/23/12
to seleniu...@googlegroups.com
Thanks for the tip. I just downloaded the latest dev channel version but unfortunately no luck.

Jason Dumontier

unread,
Mar 23, 2012, 2:14:38 PM3/23/12
to seleniu...@googlegroups.com
Sorry if this does not help either but one more thing to try in case you have PATH problems.  Add  webdriver.chrome.driver as a system property.

Daniel Davison

unread,
Dec 18, 2013, 1:11:38 PM12/18/13
to seleniu...@googlegroups.com
I actually have just recently started getting this error.

I've been using Eclipse for as long as I can remember, and it works fine there, but I just recently moved to Intellij IDEA and I can't seem to get it working there.

webdriver.chrome.driver is set, and nothing has changed.  in fact - i actually checked out the same project that eclipse has where it is working, but still no dice with running using IntelliJ.

Since a change in IDE should not have an effect on the project contents or semantics.. i wonder if this issue is something deeper?  Possibly between the differences of jre7/ vs jdk1.7../ ?

I've tried switching my junit configuration to no end - e.g. changing my working directory, changing the alternate JRE, but still no dice..  This is a very interesting error!


On Thursday, March 22, 2012 11:52:40 AM UTC-4, Freenow82 wrote:

yoo...@gmail.com

unread,
Nov 22, 2018, 5:54:32 AM11/22/18
to Selenium Users
I met same issue in soapui(the groovy selenium scripts work well in eclipse, but meet multiple issues in soapui...) and here's the solution:
1. Set Proxy setting in soapui preference
2. Set driver path firstly: 
System.setProperty("webdriver.chrome.driver", "C:\\Driver\\browserDrivers\\chromedriver.exe");
ChromeDriver driver = new ChromeDriver();
Reply all
Reply to author
Forward
0 new messages