我使用硒的Java 2.42和Mozilla火狐狸-32.0.2版本,当我运行Eclipse的脚本启动Google它给了我错误火狐硒(JAVA)不工作
org.openqa.selenium.firefox.NotConnectedException:
Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
Firefox console output: 6.
我尝试降级Firefox的版本,但错误仍然存在。
似乎是兼容性问题。你把firefox降级了。 http://stackoverflow.com/questions/25646639/firefox-webdriver-doesnt-work-with-firefox-32 – Morvader 2014-09-24 07:29:42
Selenium最新版本仅支持firefox版本至33.0。所以请检查你的Firefox版本。 – 2015-10-05 10:41:17