DEPRECATED! The Official Respository chromedriver-autoinstaller has now been updated to address the issues with Chrome 115. We recommend using the official repository as it is better maintained than current chromedriver-autoinstaller-fix repository. You can find it here
The library chromedriver-autoinstaller-fix
addresses and resolves certain issues present in the original python-chromedriver-autoinstaller.
pip install chromedriver-autoinstaller-fix
Just type import chromedriver_autoinstaller_fix
in the module you want to use chromedriver.
from selenium import webdriver
import chromedriver_autoinstaller_fix
chromedriver_autoinstaller_fix.install() # Check if the current version of chromedriver exists
# and if it doesn't exist, download it automatically,
# then add chromedriver to path
driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title