zoukankan      html  css  js  c++  java
  • 解决 WindowsError: [Error 87] 分类: 问题总结 2014-04-09 22:21 1266人阅读 评论(0) 收藏

    今天执行b = webdriver.Firefox()是报错。我的是firefox 是19.0版本,selenium是2.37版本。

    以下两种情况: A、B,均是因为firefox版本与selenium版本不兼容造成的,在 http://docs.seleniumhq.org/about/platforms.jsp 页面查看selenium支持的firefox版本信息(发现selenium不支持firefox 19.0版本)

    A.

    Traceback (most recent call last):
      File "C:Users ometDesktopa.py", line 10, in <module>
        b = webdriver.Firefox()
      File "C:Python27libsite-packagesseleniumwebdriverfirefoxwebdriver.py", line 59, in __init__
        self.binary, timeout),
    File "C:Python27libsite-packagesseleniumwebdriverfirefoxextension_connection.py", line 47, in __init__
        self.binary.launch_browser(self.profile)
      File "C:Python27libsite-packagesseleniumwebdriverfirefoxfirefox_binary.py", line 61, in launch_browser
        self._wait_until_connectable()
      File "C:Python27libsite-packagesseleniumwebdriverfirefoxfirefox_binary.py", line 105, in _wait_until_connectable
        self.profile.path, self._get_firefox_output()))
    WebDriverException: Message: "Can't load the profile. Profile Dir: c:\users\chengh~1.qun\appdata\local\temp\tmpqdnfky Firefox output: *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping unavailable install location app-system-local *** LOG addons.xpi: Skipping unavailable install location app-system-share *** LOG addons.xpi: checkForChanges "

    B.

    startupinfo() error 87

    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    洛谷 P1591 阶乘数码
    洛谷 P2008 大朋友的数字
    洛谷 P1716 双调序列
    洛谷 P2309 loidc,卖卖萌
    洛谷 P1324 矩形分割
    洛谷 P2690 接苹果
    洛谷 P1239 计数器
    hdu_4352_XHXJ's LIS(数位DP+状态压缩)
    hdu_5648_DZY Loves Math
    hdu_5179_beautiful number(数位DP)
  • 原文地址:https://www.cnblogs.com/think1988/p/4627912.html
Copyright © 2011-2022 走看看