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]

An error like this may occur. A brief summary of workaround steps.

procedure

Common setting

  1. Launch the Chrome browser and check the Chrome version
  2. Check the Chrome version from the settings

If you are using chromedriver-binary

▼Chromedriver https://pypi.org/project/chromedriver-binary/

  1. Open "Release history" from the list of Navigation chromedriver-binary · PyPI 2020-08-21 13-56-01.png
  2. Open the link of the same or similar version of Chrome from the list of "Release history"
  1. 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

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

  1. Open the download page of ChromeDriver and open the link of the same or similar version of Chrome
  1. Download the zip file that matches the OS of your environment https:chromedriver.storage.googleapis.com:index..png
  2. Replace the downloaded Chrome Driver with the existing Chrome Driver

→ With this, if python processing is executed and no error occurs, it is OK

Recommended Posts

What to do if a version error occurs in the selenium Chrome driver
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if a UnicodeDecodeError occurs in pip
What to do if a Unicode Encode Error occurs in Sublime Text Python
[Python] What to do if an error occurs in pip (pyinstaller, pyautogui, etc.)
What to do if you get a "No versions found" error in pipenv
[python] What to do when an error occurs in send_keys of headless chrome
What to do if an error message "There was a problem displaying this web page" is displayed in Chrome's Web Driver (Selenium)
What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
What to do if pip gives a DistributionError in Homebrew
What to do when a Remove Error occurs when updating conda
What to do if the print command itself causes an error in Maya python
What to do if Python does not switch from the System version in pyenv
What to do if you get a minus zero in Python
What to do if you can't use the trash in Lubuntu 18.04.
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if pip --user returns an error in a virtual environment created with pyenv
What to do if there is a decimal in python json .dumps
What to do if an error occurs when importing numpy with VScode
[OSX] [pyenv] What to do when an SSL error occurs in pip
If you get a no attribute error in boto3, check the version
What to do if pipreqs results in UnicodeDecodeError
[Django] What to do if an Integrity Error occurs when registering data from the management site to the database
What to do when SSL error occurs in pip in Windows10, miniconda, VScode environment
What to do if NotADirectoryError: [Errno 20] Not a directory:'xdg-settings' appears in jupyter notebook
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04
What to do if pip install fails in Xcode 5.1
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get the error Input contains NaN, infinity or a value too large for dtype ('float64'). In machine learning
[Selenium] Open the link in a new tab and move it [Python / Chrome Driver]
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if the progress bar is not displayed in tqdm of python
What to do if you get the error RuntimeError: Python is not installed as a framework when trying to use matplitlib and pylab in Python 3.3
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you can't hit the arrow keys in the Python interactive console
What to do if you run python in IntelliJ and end with an error
What to do if you get a Call with too many input arguments error at DoAndReturn in a golang test
What to do if a communication error occurs due to proxy when installing with package management of pip, npm, gem
What to do if the package dependency cannot be repaired
What to do if you get "coverage unknown" in Coveralls
What to do when an error occurs with import _ssl
What to do if you can't log in as root
Make a note of what you want to do in the future with Raspberry Pi
What to do if the image is not displayed using matplotlib etc. in the Docker container
What to do when a Missing artifact occurs in a jar that is not defined in pom.xml
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if ʻObject arrays cannot be loaded when allow_pickle = False` occurs in numpy.load ()
What to do if Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: windows-31j occurs in PyCharm
What to do if yum breaks
[AWS] What to do when the ping command causes a "timeout"
How to determine the existence of a selenium element in Python
[Beanstalk] What to do when an error occurs with import uuid
What to do if "Unnamed: 0" is added in to_csv-> read_csv in pandas
What to do if the inode is exhausted on EC2 Linux
How to automatically install Chrome Driver for Chrome version with Python + Selenium + Chrome
What to do when UnicodeDecodeError occurs during read_csv in pandas (pd.read_table ())
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
What to do when the value type is ambiguous in Python?
What to do if you get angry with'vertices' must be a 2D list ... in matplotlib arrow