python – cannot call selenium-webdriver in linux

I’m new at selenium, saw some tutorials but having problems using it.

I have 2 browsers installed and hoping not having to install another to use selenium.

Opera: Version:96.0.4693.50; System:Linux Mint 20 (x86_64; MATE); Chromium version:110.0.5481.178

Chromium: Versión 110.0.5481.100 (Build oficial) for Linux Mint (64 bits)

I’ve searched the web driver for both and the best I could find was:

ChromeDriver 110.0.5481.77 but it’s version does not match the chromium one.

I tried :

from selenium import webdriver

driver = webdriver.Chrome('chromedriver_linux64_114/chromedriver')

and get the error Incompatible release of chromedriver (version 110.0.5481.100) detected in PATH: /usr/bin/chromedriver

as I understand the version I’ve downloaded is not compatible, but it was the highest 110 one in chromedriver page (also tried with one 114… the latest one)

How could I solve this problem?

Read more here: Source link