配置的selenium3.0使用了你说的这个办法,但是我代码报错如下,帮忙看一下,非常感谢
Exception in thread "main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: WIN10
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'
System info: host: 'WIN10-612221128', ip: '192.168.10.106', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.Executable.<init>(Executable.java:75)
at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:60)
at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:56)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:127)
at LoginTest.main(LoginTest.java:21)
专题开篇:Selenium 3.0对于Firefox浏览器启动的改变(geckodriver)让你害怕的不是未知的未来,而是不断重複著过去的错误。 发现问题:为什么从Selenium2.x切换到Selenium 3.0驱动不了Firefox浏览器? Selenium2...