Selenium Webdriver http.client.BadStatusLine:''错误?

sta*_*low 5 firefox selenium webdriver python-3.x

我试图让selenium webdriver工作,但即使使用这样一个简单的python脚本:

from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://www.google.com')
driver.quit()
Run Code Online (Sandbox Code Playgroud)

我正进入(状态:

Traceback (most recent call last):
  File "test.py", line 14, in <module>
    driver.get('http://www.google.com')
  File "C:\Python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 207, in get
    self.execute(Command.GET, {'url': url})
  File "C:\Python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 193, in execute
    response = self.command_executor.execute(driver_command, params)
  File "C:\Python34\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 358, in execute
    return self._request(command_info[0], url, body=data)
  File "C:\Python34\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 389, in _request
    resp = self._conn.getresponse()
  File "C:\Python34\lib\http\client.py", line 1171, in getresponse
    response.begin()
  File "C:\Python34\lib\http\client.py", line 351, in begin
    version, status, reason = self._read_status()
  File "C:\Python34\lib\http\client.py", line 321, in _read_status
    raise BadStatusLine(line)
http.client.BadStatusLine: ''
Run Code Online (Sandbox Code Playgroud)

这与我正在尝试的所有脚本一直在进行.Firefox将打开并尝试打开网站,然后关闭,然后打开另一个Firefox实例,但这是一个全新的空白页面.我目前正在使用最新版本的所有内容.Firefox 31.7.0 ESR(根据Firefox更新),Selenium 2.46.0和Python 3.4.任何帮助,将不胜感激!

谢谢

Vik*_*jha 0

使用 Firefox 稳定版本。38 版应该可以工作。