org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VISTA
Build info: version: '2.48.2', revision: '41bccdd', time: '2015-10-09 19:59:12'
System info: host: 'MININT-RQ9DS4O', ip: '30.10.3.30', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_60'
Driver info: driver.version: FirefoxDriver
There are four solutions:
1. firefox reinstalled in the default path;
THE | Expected Location of Firefox |
Linux | firefox (found using "which") |
Mac | /Applications/Firefox.app/Contents/MacOS/firefox |
Windows | %PROGRAMFILES%\Mozilla Firefox\firefox.exe |
2. The setting value directly by System.setProperty webdriver.firefox.bin method ;
3. Use setCapability set ;
4. FirefoxBinary classes and public FirefoxDriver (FirefoxBinary binary, FirefoxProfile profile) This constructor;
Reference: http: //sariyalee.iteye.com/blog/1688271