【问题标题】:Selenium 3.0 not working with Firefox 51.0.1 [duplicate]Selenium 3.0 不适用于 Firefox 51.0.1 [重复]
【发布时间】:2017-06-30 22:12:24
【问题描述】:

我正在使用 eclipse 3.0(Firefox 浏览器)在 java 中运行一个简单的程序。但是运行后,我收到以下错误:

线程 "main" java.lang.IllegalStateException 中的异常:驱动程序可执行文件的路径必须由 webdriver.gecko.driver 系统属性设置;

谁能给我在Firefox上运行的解决方法。 注意:在所有程序运行正常之前,但在 Firefox 中更新后,出现错误。

【问题讨论】:

    标签: java selenium firefox


    【解决方案1】:

    您需要先下载 GeckoDriver。之后,您可以将其添加到环境变量部分的 PATH 变量中,也可以使用“webdriver.gecko.driver”属性设置路径。查看以下文章的步骤 -

    http://www.automationtestinghub.com/selenium-3-0-launch-firefox-with-geckodriver/

    【讨论】:

    • 优秀!!!现在代码工作...谢谢!!!
    猜你喜欢
    • 1970-01-01
    • 2015-02-03
    • 1970-01-01
    • 2016-11-25
    • 2016-12-06
    • 2016-12-12
    • 2017-03-05
    • 2017-03-19
    相关资源
    最近更新 更多