Python webdriver call Chrome error

Given the information as follows:

selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

solve:

Download chromedriver, on the specified path, and add the path to the path environment variable (Properties - Advanced System Settings - Advanced - Environment Variables)

Download: https://sites.google.com/a/chromium.org/chromedriver/downloads

PS: Note view your chrome version, you need to download the version with chrome consistent chromedriver

否则会报错:selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version XX

Guess you like

Origin www.cnblogs.com/CinYung/p/11111702.html