Chrome Driver Timeout

1,493 views
Skip to first unread message

bdk

unread,
Jul 29, 2011, 2:21:26 AM7/29/11
to Selenium Users
I'm running ChromeDriver ver 2.2.0, Chrome ver 12.0.742.122 m, Windows
XP

This is simple code:

DesiredCapabilities caps = DesiredCapabilities.chrome();
caps.setJavascriptEnabled(true);
caps.setPlatform(Platform.WINDOWS);
System.setProperty("webdriver.chrome.driver", "C:\\Documents
and Settings\\bdk\\Local Settings\\Application Data\\Google\\Chrome\
\Application\\chrome.exe");
System.out.println("caps = " + caps.toString());
ChromeDriver driver = new ChromeDriver(caps);
driver.get("http://google.com");
System.out.println("driver.getPageSource() = " +
driver.getPageSource());
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
}
driver.quit();

It opens Chrome window and displays google.com website, but throws
Exception:
Exception in thread "main" org.openqa.selenium.WebDriverException:
Timed out waiting for ChromeDriver server to start.
Build info: version: '2.2.0', revision: '13073', time: '2011-07-25
19:23:22'
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',
java.version: '1.6.0_26'

Driver info: driver.version: ChromeDriver
at
org.openqa.selenium.chrome.ChromeDriverService.start(ChromeDriverService.java:
153)
at
org.openqa.selenium.chrome.ChromeCommandExecutor.execute(ChromeCommandExecutor.java:
48)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
385)
at
org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:
104)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:
87)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:
108)
at
com.bogdanandco.arss.WebDriverTest.testChromeDriver(WebDriverTest.java:
83)
at com.bogdanandco.arss.WebDriverTest.main(WebDriverTest.java:49)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed
out waiting for [http://localhost:10816/status, http://localhost:10816/healthz]
to be available after 20005 ms
at
org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:
81)
at
org.openqa.selenium.chrome.ChromeDriverService.start(ChromeDriverService.java:
151)
... 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:
56)
... 13 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:228)
at java.util.concurrent.FutureTask.get(FutureTask.java:91)
at
com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:
130)
... 14 more
Anyone has idea what this could be?
Java property os.arch=x86 looks suspitious as sun.arch.data.model=32.
I'm running on 32bit Windows XP and 64bit dual core AMD processor.

Jayakumar C

unread,
Jul 29, 2011, 8:57:57 AM7/29/11
to seleniu...@googlegroups.com
Set the ChromeDriverServer path instead of Chrome browser binary path in the "webdriver.chrome.driver" property.

System.setProperty("webdriver.chrome.driver", "C:\\blah\\chromedriver.exe");

You can get the ChromeDriver server here ,
http://code.google.com/p/selenium/downloads/list




--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.




--
Jayakumar
Reply all
Reply to author
Forward
0 new messages