CodeGeass
CodeGeass

Reputation: 639

Jenkins chromedriver path in selenium grid

So i have Jenkins on my local machine. Selenium grid on it, and chrome plugin as well.

When i make a new configuration in the Chrome section you have to specify the chrome driver path.

Jenkins recommends:

"Path to the chromedriver executable. This needs to be set only once as it defines a global property. If you set it in multiple browser definitions, the latest will be used. If you use the Jenkins chromedriver plugin, the path will be $JENKINS_HOME/tools/chromedriver/chromedriver.ext"

So i've set it to $JENKINS_HOME/tools/chromedriver/chromedriver.ext. Problem is when i run my tests i get the following error:

org.openqa.selenium.WebDriverException: The driver executable does not exist: /Users/Shared/Jenkins/Home/tools/chromedriver/chromedriver.ext

I've also google searched this issue into oblivion but I can't find an answer.

Upvotes: 1

Views: 1817

Answers (1)

Krishnan Mahadevan
Krishnan Mahadevan

Reputation: 14746

IMO, you dont need any chrome plugin etc., to make sure chrome automation works. You can merely download the chromedriver binary and make it available in a directory that is part of your PATH environment variable. That should basically do the trick.

Upvotes: 1

Related Questions