selenium 问题:Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

问题:Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

原因: selenium-server-standalone-x.xx.x.jar 版本和 Firefox版本不搭。

解决方案一:选用低版本的Firefox

Step1:卸载已经安装的Firefox

Step2:安装一个老版本的Firefox

老版本火狐的下载地址:https://ftp.mozilla.org/pub/firefox/releases/

比如说我的selenium是selenium-server-standalone-2.44.0.jar,安装最新的44版本就出现问题,但是卸载之后换成33.1.1没有问题啦。

 Step3: 关闭自动更新

打开“工具” -> “选项” -> “高级” -> "更新“ ,选择 ”不检查更新“,将”自动更新“下面的”搜索引擎“不选择,点击”确定“。

解决方案二: 选用高版本的selenium

selenium版本下载地址: http://selenium-release.storage.googleapis.com/index.html

超多超全的selenium的东西,关键还是官方的可以打开的网页。

原文地址:https://www.cnblogs.com/miniren/p/5015623.html