报错信息可能为:selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’ executable needs to be in PATH
解决:
重启后,再次运行项目,OK。
------------------------------------------------分割线--------------------------------------
比如我的python代码:
# coding=utf-8
from selenium import webdriver
browser = webdriver.Chrome()
browser.get('http://www.baidu.com/')