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.