啟動Firefox瀏覽器出現不能連接異常
我的java環境已配好,在eclipse能實現輸出語句。
firefox瀏覽器中已裝好firebug,firepath,selenium IDE
在啟動firefox瀏覽器時,總是出現如下問題,
錯誤提示:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
網上說是firefox與selenium版本不兼容。我嘗試過ff29,ff30,ff31,ff33,ff38,ff49,ff56與各種selenium版本相匹配,仍存在這個問題。
該怎么解決?
2017-11-17
應該是你host文件中的地址問題;
把C:\Windows\System32\drivers\etc的hosts文件打開
將# localhost name resolution is handled within DNS itself.下的#127.0.0.1 ? ? ? localhost剪切到上面# For example:下,去掉#保存