When Selenium tells me that the Chrome driver version is different (Python)

When Selenium tells me that the Chrome driver version is different (Python)

This issue: Chromedriver version error

When I use Selenium for the first time in a long time, something doesn't work ... Is there something like this? Looking at the error command

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 76

I got this error. This happens when the versions of Chrome and Chrome driver are different. Then what should I do? The answer is simple. All you have to do is match the version.

Solution

Find out the version of Chrome

First open Chrome. Then press the menu with three vertical dots next to the top icon. Go to "Help" in it and press "About Google Chrome". Then you can check the version of Chrome after that. Remember the version there.

Install Chrome driver

Then install the appropriate Chrome driver for your version.

pip install chromedriver-binary == 76.0.3809.132 <-"Enter the version of Chrome you checked earlier"

You can install it by running the above in a terminal. Since the place where 76.0.3809.132 is written is the version, please replace it with the version of Chrome confirmed earlier and execute it.

I think you often get an error here. If you read the error, you may find that various versions are listed. It doesn't have the version of Chromedriver you just entered, but it does have the version you're viewing! So please select one version from the Chrome version and rewrite the above version part again.

Recommended Posts

When Selenium tells me that the Chrome driver version is different (Python)
How to automatically install Chrome Driver for Chrome version with Python + Selenium + Chrome
Workaround for the problem that? Is displayed when checking the version when using non-standard perl | python with pkg version
[Python] I made a bot that tells me the current temperature when I enter a place name on LINE
It seems that the version of pyflakes is not the latest when flake8 is installed
Are Php / Ruby / Python that only runs when the file is called directly
When you want to update the chrome driver.
What to do if a version error occurs in the selenium Chrome driver
Chrome cannot be opened with selenium because the version of Chrome driver does not match
[Selenium] Open the link in a new tab and move it [Python / Chrome Driver]
There is a pattern that the program did not stop when using Python threading
The timing when the value of the default argument is evaluated is different between Ruby and Python.
Note the frequently used options in Python + Selenium + Chrome
Find the part that is 575 from Wikipedia in Python
python chrome driver ver. Solving the problem of difference
[Python] Why the referenced objects have the same ID when the same integer is assigned to different variables
Note links that may be useful when using Python, Selenium2
[Selenium] Print without header and footer (forced) [Python / Chrome Driver]
What is the default TLS version of the python requests module?
Operate your browser using the Selenium Web Driver Python bindings
How to deal with the problem that the current directory moves when Python is executed from Atom
The story that the version of python 3.7.7 was not adapted to Heroku
Play a sound in Python assuming that the keyboard is a piano keyboard
How to judge that the cross key is input in Python3
Import modules that are often used when starting the python interpreter
The story that inheritance behavior is quite different in each language
Build Python environment on Ubuntu (when pip is not the default)
What to do when the value type is ambiguous in Python?
[Python] Whiten the parts that turn black when there is no data in the Choropleth map of Folium.
I started to work at different times, so I made a bot that tells me the time to leave