Hi,

I am trying to write a script to automate some browser actions, using
selenium in python.

However, I get the following error:
Traceback (most recent call last):
  File "test.py", line 26, in <module>
    driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), 
options=options)
             
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/home/ragini/anaconda3/lib/python3.12/site-packages/selenium/webdriver/chrome/webdriver.py",
 line 45, in __init__
    super().__init__(
  File 
"/home/ragini/anaconda3/lib/python3.12/site-packages/selenium/webdriver/chromium/webdriver.py",
 line 66, in __init__
    super().__init__(command_executor=executor, options=options)
  File 
"/home/ragini/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py",
 line 250, in __init__
    self.start_session(capabilities)
  File 
"/home/ragini/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py",
 line 342, in start_session
    response = self.execute(Command.NEW_SESSION, caps)["value"]
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/home/ragini/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py",
 line 429, in execute
    self.error_handler.check_response(response)
  File 
"/home/ragini/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py",
 line 232, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not 
created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 133.0.6943.126 with binary path /usr/sbin/chromium

---

I tried to install the right version of chromedriver for my version of
the browser however, I still get the same error.

selenium version is:
4.29.0

python version:
3.12.7

pip version:
24.2

link to the driver:
https://googlechromelabs.github.io/chrome-for-testing/#stable

The only version matching to my browser for the driver was
133.0.6943.141

Let me know if you have any inputs.

Warm regards
Ragini

Reply via email to