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

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

  • 相关阅读:
    JavaScript三元运算符
    JavaScript相等运算符
    SQL 查询优化
    C# 平时碰见的问题【2】
    android 利用TrafficStats类获取本应用的流量
    android 输出.txt 文本换行问题
    【转载】input 中 type='text' 的提交问题
    Pycharm 使用 (一)
    SqlBulkCopy 插入100W条数据时 属性BatchSize的作用
    C# 平时碰见的问题【1】
  • 原文地址:https://www.cnblogs.com/think1988/p/4627912.html
Copyright © 2011-2022 走看看