[PYTHON] What to do if a version error occurs in the selenium Chrome driver
Overview
If you are using the Chrome driver with selenim, due to the Chrome version upgrade
Message: session not created: This version of ChromeDriver only supports Chrome version [XX]
- [XX] is the value of any version
An error like this may occur.
A brief summary of workaround steps.
procedure
Common setting
- Launch the Chrome browser and check the Chrome version
- Check the Chrome version from the settings
- You can also hit the URL below.
chrome://settings/help

If you are using chromedriver-binary
▼Chromedriver
https://pypi.org/project/chromedriver-binary/
- Open "Release history" from the list of Navigation

- Open the link of the same or similar version of Chrome from the list of "Release history"
- Select 84.0.4147.30.0 this time.

- Get (copy) the pip command at the top of the screen
4, open the terminal (command line)
5, uninstall chromedriver-binary
pip uninstall chromedriver-binary
6, reinstall with the obtained command
- The following is the command of 84.0.4147.30.0
pip install chromedriver-binary==84.0.4147.30.0
→ With this, if python processing is executed and no error occurs, it is OK
If you have downloaded the chrome driver
▼ Chrome Driver download page
http://chromedriver.chromium.org/downloads
- Open the download page of ChromeDriver and open the link of the same or similar version of Chrome
- Select 84.0.4147.30.0 this time.

- Download the zip file that matches the OS of your environment

- Replace the downloaded Chrome Driver with the existing Chrome Driver
→ With this, if python processing is executed and no error occurs, it is OK