解決Selenium與firefox瀏覽器版本不兼容問題

解決Selenium與firefox瀏覽器版本不兼容問題

因爲在用java打開firefox瀏覽器的時候報錯

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

在網上查閱了說是兼容問題

然後就開始找selenium版本與對應firefox版本匹配的記錄

各firefox版本下載地址

http://ftp.mozilla.org/pub/firefox/releases/

各selenium jar包下載地址

http://selenium-release.storage.googleapis.com/index.html

在selenium下載頁面 http://www.seleniumhq.org/download/ (需FQ) 各個版本的changelog中,會記錄支持的firefox版本,如下所示:

裏面可以找到對應的記錄,仔細閱讀即可。

我挑選的第一個匹配

v2.53.1
=======

Firefox:
    * Update to allow use with Firefox 47.0.1


selenium-server-standalone-2.53.1.jar
firefox47
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章