在 Centos 7 虚拟机中从 Bamboo 获取 运行 selenium webdriver 测试的 NotConnectedException 错误

Getting NotConnectedException error on running selenium webdriver test from Bamboo in Centos 7 Virtual Machine

我正在尝试 运行 cantos VM 中来自 bamboo 的 selenium 测试。但它显示错误 org.openqa.selenium.firefox.NotConnectedException:45000 毫秒后无法连接到端口 7055 上的主机 127.0.0.1。 Firefox 控制台输出:

我正在使用 Selenium Standalone Server 2.52.0 并尝试使用以下 FF 版本但出现相同的错误

FF 38 FF 45 FF 44 最终 40

任何人都可以帮助解决这个问题。

解决办法是把user.dir的路径设置到安装firefox的bin目录下。