问题: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的东西,关键还是官方的可以打开的网页。

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

 

相关文章:

  • 2022-12-23
  • 2021-04-24
  • 2021-04-13
  • 2022-02-16
  • 2022-12-23
  • 2021-10-24
  • 2021-06-22
  • 2021-07-02
猜你喜欢
  • 2021-11-05
  • 2022-02-24
  • 2021-12-20
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案