Which Firefox version is compatible with Selenium 2.53.0?

匿名 (未验证) 提交于 2019-12-03 01:52:01

问题:

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



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!