0 votes
1 view
in Devops and Agile by (25k points)

So I have read all the docs on adding chromedriver to my path and followed all of them. I am on a Mac with Selenium2, maven, eclipse, and all the latest drivers:


The path to the chromedriver executable must be set by the webdriver.chrome.driver system property;

I put chromedriver in my Applications folder and my path looks like:

echo $PATH  


What am I missing? I cannot run with chrome driver at all. Any help would be great I'm trying random stuff now.

Here is my pom section on selenium:

















1 Answer

0 votes
by (63.3k points)

Add this dependency to your project:






This library downloads the latest version of the WebDriver binary you'd need and export the proper Java system variable (webdriver.chrome.driver, webdriver.gecko.driver, webdriver.opera.driver, phantomjs.binary.path, webdriver.edge.driver, webdriver.ie.driver), simply using one of the following sentences respectively:







Welcome to Intellipaat Community. Get your technical queries answered by top developers !