webdriver.Chrome()中的错误将我的Ubuntu从14.04更新到16.04

时间:2016-09-29 07:07:15

标签: python ubuntu-16.04

我最近将我的Ubuntu从14.04更新到16.04,当时我正在尝试运行driver = webdriver.Chrome()

I am using the Python Selenium and getting the following error:
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 67, in __init__
    desired_capabilities=desired_capabilities)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 87, in __init__
    self.start_session(desired_capabilities, browser_profile)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 141, in start_session
    'desiredCapabilities': desired_capabilities,
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 201, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 181, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: unrecognized Blink revision: d65a1c2f313b54fb0b90bb8a1082e4f5ecba2dda
  (Driver info: chromedriver=2.10.267518,platform=Linux 4.4.0-21-generic x86_64)

任何一个请求都可以帮助我解决问题。

1 个答案:

答案 0 :(得分:0)

这是chromedriver的旧版本,首先是先下载最新的chromedriver,然后将其添加到系统路径中。