Selenium – This version of ChromeDriver only supports Chrome version error on Ubuntu for version higher than 114

I use Selenium web driver to scrap some website data that I need for my property analysis. In this case I use chromedriver.

When I want to run it after I upgraded my Chrome browser on Ubuntu I found this error.

My steps to resolve this

1) Check my Chrome browser version and found it is 123.

chrome browser version 123
chrome browser version 123

2) Check my chromedriver version by typing

chromedriver version 114
chromedriver version 114

I found my version is 114 not same as my browser.

3) Check the location of the chrome driver by typing

In my case I found my chrome driver at /usr/local/sbin

chrome driver location on ubuntu
chrome driver location on ubuntu

4) Download the latest chromedriver at

Google Chrome Driver for version after version 114

5) After extracting the latest chromedriver, replace the old one.

Ensure you download the right chrome driver which is highlighted in blue.

download chromedriver v123
download chromedriver v123

ubuntu replace old chromedriver
ubuntu replace old chromedriver

Then when I run back my program, it works!