selenium.common.exceptions.WebDriverException: Message: u'unknown error: cannot get automation extension from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfeb

Python2.7 selenium3.4.1在使用chrome driver时报错:selenium.common.exceptions.WebDriverException: Message: u'unknown error: cannot get automation extension from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html (Session info: chrome=31.0.1650.57) (Driver info: chromedriver=2.6.232923,platform=Windows NT 6.1 SP1 x86_64)

解决方法:

from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.add_argument("--disable-extensions")

driver = webdriver.Chrome(chrome_options=chrome_options)
原文地址:https://www.cnblogs.com/milian0711/p/8036286.html