Timed out waiting for driver server to start

1,224 views
Skip to first unread message

Nataraj M

unread,
May 18, 2017, 1:55:46 AM5/18/17
to qapl...@googlegroups.com
hai,
what is the solution to the below problem.(selernium standalone server is running)

package jen;

import org.openqa.selenium.chrome.ChromeDriver;

public class test {

public static void main(String[] args) {
// TODO Auto-generated method stub
    System.setProperty("webdriver.chrome.driver","D:\\NATARAJ_browsing_system\\sell\\chromedriver.exe");
    ChromeDriver driver = new ChromeDriver();
}
}

err:
May 18, 2017 11:17:19 AM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: Process exited with an error: -1073741511 (Exit value: -1073741511)
Exception in thread "main" org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'KALABAIRAVAR', ip: '192.168.2.3', os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.8.0_131'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:193)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:181)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:78)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:184)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:171)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:124)
at jen.test.main(test.java:13)
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://localhost:49775/status] to be available after 20002 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:107)
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:190)
... 10 more
Caused by: com.google.common.util.concurrent.UncheckedTimeoutException: java.util.concurrent.TimeoutException
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:140)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:80)
... 11 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:128)
... 12 more

krishnadhar

unread,
May 18, 2017, 2:54:09 AM5/18/17
to qapl...@googlegroups.com
There is no problem with the piece of written code.

The problems might be

1) OS - microsoft stopped support to XP and using selenium standalone server's and chrome driver's latest version on XP is not advisable.
2) kill any chromedriver.exe process from the process window and then start again

Thanks

--
You received this message because you are subscribed to the Google Groups "QAPlanet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qaplanet+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages