哪个Firefox版本兼容Selenium 2.53.0?我尝试过Firefox 45.0,我得到了这样的异常:
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}发布于 2016-06-28 17:02:23
我在Firefox 47.0上运行Selenium Webdriver 2.53.0时遇到了类似的问题。
Selenium Webdriver 2.53.0可以与Firefox46.0一起使用。你可以在https://support.mozilla.org/en-US/kb/install-older-version-of-firefox上找到提到的版本。
发布于 2016-06-16 14:39:33
您还可以尝试添加以下内容:
System.setProperty("webdriver.firefox.bin","C:\\Users\\AppData\\Local\\Mozilla Firefox\\firefox.exe");
WebDriver driver=new FirefoxDriver(); 如果它也不工作,那么你需要降级你的FF
发布于 2018-10-10 16:53:46
嗨,我有同样的问题,我希望你已经解决了你的问题,但也许我的答案可以帮助其他人。
我发现Firefox26、selenium 2.48.2和webdriver可以很好地协同工作。以下是下载链接:
phpSeleniumWebDrive
selenium-server-standalone-2.48.2
https://stackoverflow.com/questions/36747430
复制相似问题