【问题标题】:Selenium doesn't work with firefox 19.0.2Selenium 不适用于 Firefox 19.0.2
【发布时间】:2013-03-14 12:09:03
【问题描述】:

升级 firefox 19 后,我在 selenium Web 驱动程序中遇到以下错误

WebDriverException: Message: "Can't load the profile. Profile Dir:

除了降级firefox还有什么办法解决这个问题

【问题讨论】:

  • 你使用的是什么版本的 Selenium?
  • 然后升级。 Firefox 19 支持直到 v2.31

标签: python firefox selenium webdriver


【解决方案1】:

我怀疑 selenium 丢失了配置文件配置。

尝试重新加载全新的个人资料,看看是否能解决您的问题:

profile = Selenium::WebDriver::Firefox::Profile.new
driver = Selenium::WebDriver.for :firefox, :profile => profile

或者对于您已经在 Firefox 中创建的特定配置文件:

profile = Selenium::WebDriver::Firefox::Profile.from_name "Selenium"
driver = Selenium::WebDriver.for(:firefox, :profile => profile)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-02-03
    • 2016-11-25
    • 2016-12-06
    • 2016-12-12
    • 2017-03-05
    • 2017-03-19
    • 1970-01-01
    相关资源
    最近更新 更多