How to Set Firefox Binary Path of Firefox in Selenium in Linux

Firefox is showing Cannot find firefox binary in PATH. error in MAC OS

According to https://github.com/SeleniumHQ/selenium/wiki/FirefoxDriver there is a property you have to set to set the binary path:

webdriver.firefox.bin

so i assume you have to do following:

    System.setProperty("webdriver.firefox.bin","/Applications/Firefox.app/Contents/MacOS/firefox-bin");
WebDriver driver = new FirefoxDriver();

I hope this helps :)

Firefox WebDriver: Failed to connect to binary

This is likely to be a version mismatch between Selenium and Firefox.

According to a comment on one of their GitHub issues, Selenium 2.53.1 is known to work well with Firefox 47.0.1.

https://github.com/SeleniumHQ/selenium/issues/2527

To keep using Firefox 55, you need to use a higher version of Selenium (if it's already supported).



Related Topics



Leave a reply



Submit