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