【问题标题】:webdriver Firefox and selenium error (must use Gecko driver)webdriver Firefox 和 selenium 错误(必须使用 Gecko 驱动)
【发布时间】:2018-06-09 22:02:45
【问题描述】:

我正在尝试运行driver = webdriver.Firefox(capabilities={"marionette":False}),但收到以下消息:

WebDriverException: Message: Can't load the profile. Possible firefox version mismatch. You must use GeckoDriver instead for Firefox 48+. Profile Dir: /var/folders/yl/nmd8mk3102vd3c003pbfnvs1tfpjn2/T/tmpm66g_w_2 If you specified a log_file in the FirefoxBinary constructor, check it for details.

我不确定如何使用 GeckoDriver。这是 Firefox 60 的错误/是否有人遇到同样的问题并且使用的是旧版本?

谢谢!

【问题讨论】:

标签: selenium-webdriver


【解决方案1】:

显然,GeckoDriver 和 Firefox 60 存在兼容性问题。如果其他人遇到类似问题,我建议下载 Firefox 的 ESR 版本,v52.8.1 或更低版本。这解决了我遇到的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-12-31
    • 1970-01-01
    • 1970-01-01
    • 2015-09-26
    • 2019-04-09
    • 2016-11-07
    • 1970-01-01
    相关资源
    最近更新 更多