【问题标题】:Selenium webdriver with Python crashes after upgrading to Firefox 18升级到 Firefox 18 后,带有 Python 的 Selenium webdriver 崩溃
【发布时间】:2013-01-08 23:31:34
【问题描述】:

这是我在尝试运行时收到的消息:Traceback(最近一次调用最后一次):

 File "C:\Python27\intertwyneloginandemail", line 3, in <module>
 driver = webdriver.Firefox()
 File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 51, in __init__
 self.binary, timeout),
 File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\extension_connection.py", line 47, in __init__
 self.binary.launch_browser(self.profile)
 File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 44, in launch_browser
 self._wait_until_connectable()
 File "C:\Python27\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 86, in _wait_until_connectable
 self.profile.path, self._get_firefox_output()))

 WebDriverException: Message: "Can't load the profile. Profile Dir:   
 c:\\users\\aarons\\appdata\\local\\temp\\tmphqwoq5 Firefox output: *** LOG addons.xpi: startup\r\n*** WARN addons.xpi: Ignoring missing add-on in C:\\Program Files (x86)\\Common  
 Files\\McAfee\\SystemCore\r\n*** LOG addons.xpi: Skipping unavailable install location app-system-local\r\n*** LOG addons.xpi: Skipping unavailable install location app-system-share\r\n***
 LOG addons.xpi: checkForChanges\r\n*** LOG addons.xpi: No changes found\r\n" 

【问题讨论】:

    标签: firefox selenium python-2.7 selenium-webdriver


    【解决方案1】:

    尝试将 selenium 包更新到最新版本(2.29.0)

    【讨论】:

    • +1 - 我以前的解决方法是在 Firefox 15 中创建一个目录并将其用作 FirefoxBinary。更新比那样做要好得多:)
    • 谢谢大家,我可以使用以下命令对其进行更新:安装 -U selenium。
    • 这对我也有用.....用相同的命令更新了 selenium...谢谢大家...
    猜你喜欢
    • 1970-01-01
    • 2019-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多