Gaurav Singh
Gaurav Singh

Reputation: 11

Chromedriver not loading in time. Gives error org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start

I have written some automation scripts to download data from websites. I am using Selenium webdriver libraries and Chromedriver. and I have created runnable jars for each script and have scheduled them. Whenever scripts run on remote desktop, most of the time i am getting this error

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

This exception is thrown on the line

driver = new ChromeDriver();

So is there any way to increase the wait time for chromedriver to launch so that this issue may not occur. Or any other reason this issue is happening. I am using latest chromedriver version 2.34

Upvotes: 1

Views: 746

Answers (3)

ArunPrakash
ArunPrakash

Reputation: 137

Looks similar to Run multiple instances of Selenium driver in same machine

Upvotes: 0

Victor K
Victor K

Reputation: 21

How about implicityWait? Have you set?

 wd.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

Another custom solution you can try to add Thread.sleep.. but it is not recommended.

Upvotes: 0

Victor K
Victor K

Reputation: 21

Have you set properties to your Chromedriver?

   System.setProperty("webdriver.chrome.driver", "chromedriver.exe");

Upvotes: 1

Related Questions