I am using Linux(Ubuntu) when run the web application it gives error:
Firefox cannot find binary path
I am using Firefox 46.0 and selenium 2.53.0.
I am using Linux(Ubuntu) when run the web application it gives error:
Firefox cannot find binary path
I am using Firefox 46.0 and selenium 2.53.0.
I think this should work in your case.
WebDriver firefox = new FirefoxDriver();
FirefoxProfile profile = new FirefoxProfile();
firefox = new FirefoxDriver(new FirefoxBinary(new File(System.getProperty("user.dir"),
"/tools/FirefoxPortable/FirefoxPortable.exe")), profile);
Try by using simple command in console, it should return path:
which firefox
And here is list of FF download site for binaries.
Usually path is like this:
"/usr/bin/firefox/firefox-bin"
Hope this helps,