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