I have a rails app that has a capybara/selenium/webdrivers setup with the chromedriver configured.
However, when running a feature spec, I am getting this error:
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: crashed. (chrome not reachable)
I have read it could be related to the chromedriver binary not being found in the expected location, which for mac it is /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
I have ensured that the binary is there and with the right exec permissions:
$ ls -la /Applications/Google\ Chrome.app/Contents/MacOS/
$ -rwxrwxrwx@ 1 johndoe admin 804576 Oct 28 07:23 Google Chrome
Google chrome seems to work fine, and its version matches the one by chromedriver.
These are the options I am using in Capybara:
default_chrome_args = ["mute-audio"]
default_chrome_args << "headless"
default_chrome_args << "incognito"
default_chrome_args << "disk-cache-dir=/dev/null"
default_chrome_args << "media-cache-size=1"
default_chrome_args << "disk-cache-size=1"
default_chrome_args << "disable-gpu"
Any idea on what could be wrong?