升级到Firefox 18后,使用Python的Selenium webdriver崩溃了

时间:2013-01-25 02:28:37

标签: firefox selenium python-2.7 selenium-webdriver

以下是我在尝试运行时收到的消息: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" 

1 个答案:

答案 0 :(得分:5)

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