ChromeDrive - unknown error: cannot find Chrome binary

14,657

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'

Share:
14,657
Mxfrd
Author by

Mxfrd

Updated on June 09, 2022

Comments

  • Mxfrd
    Mxfrd almost 2 years

    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