Selenium Chrome Browser org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start

Debugging Steps

It may be either of the two below issue.

1. Chrome Driver not started for some reason:

Run the chrome driver in terminal maually

C:\Users\Jim> C:\Users\Jim\Downloads\chromedriver_win32\chromedriver.exe

Now we have to get the following message denoting server started sucessfully.
enter image description here

If you are not getting above message and your server is not started, then check what is error you are getting and respond accorsingly? May downloaded corrupted binary, the download it again.

2. Unable to access the chrome driver with hostname as localhost

If you able to start chromedriver sucessfully as in above steps, now try to access the below url with respective port.
http://localhost:{port}/status

For e.g., in above message, the server started on port 9515. Access the url in browser, http://localhost:9515/status

enter image description here

You should get above message indicating server is accessible with hostname as localhost

If your are not able access, then open C:\Windows\System32\drivers\etc\hosts in editor with administrator privilege and check localhost DNS is mapped to 127.0.0.1

enter image description here

Leave a Comment