Which Firefox version is compatible with Selenium

2019-01-11 17:08发布

问题:

Which Firefox version is compatible with Selenium 2.53.0? I tried Firefox 45.0 and I am getting this exception:

org.openqa.selenium.WebDriverException: Failed to connect to binary           
FirefoxBinary(/Applications/Firefox.app/Contents/MacOS/firefox-bin) on   port 7055; process output follows: 
foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"l   ocales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"45.0","maxVersion":"45.*"},{"id":"xpcshell@tests.mozilla.org","minVersion":"0","maxVersion":"10"}],"targetPlatforms":[],"multiprocessCompatible":false,"seen":true}

回答1:

I had the similar problem running Selenium Webdriver 2.53.0 with Firefox 47.0.

Selenium Webdriver 2.53.0 works with Firefox 46.0. You can find the the mentioned version at https://support.mozilla.org/en-US/kb/install-older-version-of-firefox.



回答2:

Also you could try to add:

System.setProperty("webdriver.firefox.bin","C:\\Users\\AppData\\Local\\Mozilla Firefox\\firefox.exe");
WebDriver driver=new  FirefoxDriver(); 

if it is also not working, then you need to downgrade your FF



回答3:

hi I had the same problem, I hope you have solved yours, but maybe my answer can help someone else.

i found firefox 26, selenium 2.48.2 and a webdriver that work very good together. here are the download links:

phpSeleniumWebDrive

selenium-server-standalone-2.48.2

firefox26