java-selenium自动化测试

1.错误:org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VISTA

 处理方式(启动firefox前加此行代码):System.setProperty("webdriver.firefox.bin","C:\Mozilla Firefox\firefox.exe");   

2.问题:Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:

  处理方式:错误缘由firefox与selenium2.44版本不兼容

原文地址:https://www.cnblogs.com/RENQIWEI1995/p/8250162.html