解決selenium和FireFox版本不兼容問題


相信很多同學剛接觸selenium時,在Eclipse中打開fireFox瀏覽器時會報錯:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
 
在網上找了好多方法,其實這是selenium的jar包和火狐瀏覽器版本不兼容,因為FireFox更新的非常快
 
然后就開始找selenium版本與對應firefox版本匹配的記錄
 
各firefox版本下載地址(ftp上下載較慢,建議直接百度上找對應版本下載)
 
http://ftp.mozilla.org/pub/firefox/releases/
 
各selenium jar包下載地址
 
http://selenium-release.storage.googleapis.com/index.html
 
另外說一下在http://www.seleniumhq.org/download/
 

 有selenium版本對應Firefox版本的說明,大家可以根據自己的版本查找下載。

 比如

v2.53.1
=======

Firefox:
    * Update to allow use with Firefox 47.0.1
selenium-server-standalone-2.53.1.jar
firefox47


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM