Reputation: 43
Here is my problem: run a selenium test with chrome.
I do this:
ChromeOptions options = new ChromeOptions();
options.setBinary("/Applications/Google/Google Chrome.app");
System.setProperty("webdriver.chrome.driver", "/Users/Blabla/Documents/lib/chrome/chromedriver");
And when I do mvn test
, I get this error:
unknown error: cannot find Chrome binary
Upvotes: 4
Views: 14897
Reputation: 5113
According to the ChromeDriver Capabilities docs:
Path to the Chrome executable to use (on Mac OS X, this should be the actual binary, not just the app. e.g., '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome')
So you need to locate your application in the Finder and do 'Show Package Contents'
Upvotes: 2