I was suffering from ChromeDriver version error with selenium + python + chrome, so make a note of what to do
If you set as below, the Chrome Driver that matches the Chrome version will be installed automatically!
import requests
from selenium import webdriver
from webdriver_manager.utils import chrome_version
from webdriver_manager.chrome import ChromeDriverManager
version = chrome_version()
url = 'http://chromedriver.storage.googleapis.com/LATEST_RELEASE_' + version
response = requests.get(url)
driver = webdriver.Chrome(executable_path=ChromeDriverManager(response.text).install())
Recommended Posts