【发布时间】:2018-08-17 05:48:58
【问题描述】:
我收到以下错误。能给点建议吗。
`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.13.0', revision: '2f0d292', time: '2018-06-25T15:32:14.902Z'
System info: host: 'CTSAUS-LT-641', ip: '10.243.111.75', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_172'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:116)
at java.util.Optional.orElseGet(Unknown Source)
at org.openqa.selenium.firefox.FirefoxOptions.getBinary(FirefoxOptions.java:217)
at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:161)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:125)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:103)
at newpackage.MyClass.main(MyClass.java:11)`
【问题讨论】:
-
@eisbehr 请不要
<blockquote>错误跟踪日志,否则调试错误日志变得困难。 -
@Ritam,也请添加你做的代码试用
-
@RitamDutta 用你的代码试验更新问题
标签: selenium selenium-webdriver windows-10 environment-variables