The Chrome Driver indicates compatibility with version 114, but it is actually intended to support version 113 - as mentioned in Selenium Python

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
from time import sleep


driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))


driver.get(input("Link: "))

I recently opened my application after a few months and noticed that Chromium had updated to a new version. It appears that ChromeDriver only supports version 114, but I have installed version 113.0.5672.63 which is causing issues. When attempting to launch my Selenium application, I encounter the following error:

     
[29728:29416:0809/171603.204:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled.

DevTools listening on ws://127.0.0.1:52567/devtools/browser/abc399bf-e2a2-40b8-8c14-360ebee67372
Traceback (most recent call last):
  File "main.py", line 8, in <module>
    driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__
    super().__init__(
  File "Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 56, in __init__
    super().__init__(
  File "Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 206, in __init__
    self.start_session(capabilities)
  File "AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 290, in start_session      
    response = self.execute(Command.NEW_SESSION, caps)["value"]
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute
    self.error_handler.check_response(response)
  File "AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, 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 113.0.5672.0 with binary path 
AppData\Local\Chromium\Application\chrome.exe
Stacktrace:
Backtrace:
        GetHandleVerifier [0x0078A813+48355]
        (No symbol) [0x0071C4B1]
        (No symbol) [0x00625358]
        (No symbol) [0x006461AC]
        (No symbol) [0x00641EF3]
        (No symbol) [0x00640579]
        (No symbol) [0x00670C55]
        (No symbol) [0x0067093C]
        (No symbol) [0x0066A536]
        (No symbol) [0x006482DC]
        (No symbol) [0x006493DD]
        GetHandleVerifier [0x009EAABD+2539405]
        GetHandleVerifier [0x00A2A78F+2800735]
        GetHandleVerifier [0x00A2456C+2775612]
        GetHandleVerifier [0x008151E0+616112]
        (No symbol) [0x00725F8C]
        (No symbol) [0x00722328]
        (No symbol) [0x0072240B]
        (No symbol) [0x00714FF7]
        BaseThreadInitThunk [0x75B07D59+25]
        RtlInitializeExceptionChain [0x7728B79B+107]
        RtlClearBits [0x7728B71F+191]

Any suggestions on how to fix this issue?

Answer №1

The most recent release of selenium introduces a new driver manager that supersedes ChromeDriverManager. It is recommended to stop using ChromeDriverManager or specifying an executable_path for Chrome().

After updating your selenium version, give this approach a try:

from selenium import webdriver
from selenium.webdriver.chrome.service import Service

service = Service()
options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=service, options=options)
# ...
driver.quit()

Answer №2

Consider adjusting your webdriver version to align with your current browser version.

webdriver.Chrome(service=Service(ChromeDriverManager("113.0.5672.63").install())

Answer №3

This particular error notification...

selenium.common.exceptions.SessionNotCreatedException: Message: the session was not established: The current version of ChromeDriver is compatible only with Chrome version 114        
The browser's version currently stands at 113.0.5672.0 with the binary pathway 
AppData\Local\Chromium\Application\chrome.exe

...indicates that SessionNotCreatedException occurred due to a discrepancy in versions between ChromeDriver and .


Details

The specific instance of Google Chrome utilized to launch your application has been setup in a customized directory, causing Chromium to update its version to v114.0

However, the default instance of Google Chrome located at

AppData\Local\Chromium\Application\chrome.exe
remains at 113.0.5672.0. Hence, resulting in the version mismatch.


Solution

To resolve this issue, manually initiate a new instance of Google Chrome using the binary from

AppData\Local\Chromium\Application\chrome.exe
, update the version accordingly, and then proceed with executing your test script. Your problem should be resolved after this step.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Issue with scraping Google Map reviews_average and reviews_count encountered

I attempted to scrape Google Maps but encountered an issue when trying to extract reviews count and average. It only scraped the first 4 out of a total of 8. for index in range(min(total, len(listings))): try: ...

Python Selenium Webdriver Click Method Not Functioning Properly

I'm currently working on the integration of my Wegmans account with a spreadsheet through Selenium and chromedriver in Docker. However, I am encountering an issue where clicking the next button on the login/sign-in page does not produce any effect on ...

How can I obtain a rounded integer in Python?

My dilemma involves dividing the number 120 by 100 in Python. The result I am currently receiving is 1.2, however, I am seeking a solution to obtain only 2 (not 2.0) without importing any libraries. Is there anyone who can provide assistance with this? ...

A simple method to determine the length of a response list in Python when using the requests module

When I'm using the request library to parse data, it returns a list of JSON data. However, when I try to find the length of the response list, I encounter an error that states TypeError: object of type 'Response' has no len(). Here is the co ...

Exploring the power of Django: Leveraging AJAX requests and utilizing path

I am currently exploring ways to pass variables to a specific JavaScript file that initiates an AJAX request within Django. Assume we have a URL with a path parameter linking to a particular view: url(r'^post/(?P<post_id>\d+)/$', Tem ...

The error encountered is a NameError, specifically stating that the name '<name>' has not been defined when attempting to use the % format syntax for strings

Traceback (most recent call last): File "C:\Users\Simon\Downloads\rpgbs.py", line 72, in <module> print("%(chara) has %(health) HP." % {chara:names[k], health:str(health[k])}) NameError: name 'chara' is not defined ...

Discovering the ultimate progenitor

My goal is to identify the ultimate parent using Dir pandas, but I am facing a unique challenge where the graph structure may not align perfectly with my requirements. Here is the input data: Child Parent Class 1001 8888 A 1001 1002 D 1001 1002 ...

Navigating through a multi-level dataframe using Python

I have encountered JSON values within my dataframe and am now attempting to iterate through them. Despite several attempts, I have been unsuccessful in converting the dataframe values into a nested dictionary format that would allow for easier iteration. ...

Error encountered in Selenium while attempting to test the login functionality with Java: NoSuchElementException

Currently, I am following a Selenium testing framework tutorial by John Sonmez and encountered an issue while attempting to execute my very first test. The test involves two methods: 1. LoginPage.GoTo(); which opens the Wordpress login page and 2. LoginPag ...

Maintain individual dataframe structure following feature selection process on a collection of dataframes

The list of dataframes represented by df contains individual dataframes denoted by y. Post feature selection process, the desired outcome is to preserve selected features from each dataframe as separate outputs - mut_fs and mirna_fs. dfs = [mut, mirna, mrn ...

Is there a way to create a plot with repeating x-axis values without relying on x-values provided in the dataset?

Although there are already answered questions about plotting in Python where x-axis values appear more than once, with the difference being that my data points are not equidistant. I want to plot over a fixed x-axis range that is not strictly related to th ...

Execute a click action on a web element using Python's Selenium only if

Currently working with Python Selenium, my goal is to verify the visibility of an element and then proceed to click on it if visible... # Verify whether the element is visibly displayed checkElement = driver.find_element_by_xpath("//a[@id='form1& ...

communicating global variables between Django and JavaScript

I want to make variables from my settings.py accessible in all JavaScript code used throughout my project. What is the best way to accomplish this elegantly? Currently, I am considering two options: Create a context processor and define these globals ...

What could be causing the JSON.parse() function to fail in my program?

Currently utilizing Django and attempting to fetch data directly using javascript. Below are the code snippets. Within the idx_map.html, the JS section appears as follows: var act = '{{ activities_json }}'; document.getElementById("json") ...

`JSON Data Type Verification - Recommendations`

My data pipeline receives a continuous flow of events in JSON format. While the schema for the JSON is well-defined, the source of these events does not always adhere to the expected data types. Sample Schema: { "type":"object", "$schema": "http: ...

Can Selenium Be Used Without the Need to Install the Chrome App?

Is it possible to utilize Selenium without having to download the entire Google Chrome application? This question crossed my mind when I noticed that Selenium runs smoothly on replit, but encounters errors when run on VS Code on my computer (which lacks Go ...

Using Python to navigate JSON files containing multiple arrays

When attempting to extract data from a JSON file and transform it into an object type, I encountered multiple arrays of latitudes and longitudes. How can I handle this using Python? Snippet of Python code* import os from flask import Flask, render_templat ...

Can PyGObject effectively replace Tk on both Windows and Linux platforms?

Python 3.5.4, Windows 7, Ubuntu Mate 18.04 We are currently working on 7-8 Python 3 projects that are designed to run on both Windows 7 and Ubuntu Mate platforms. Our primary development environment is on Windows using LiClipse with a tk user interface. ...

Running a script as a file in Java: A step-by-step guide

In my project, I have a Python script that relies on an accompanying XML file to function properly. To make this work, I am reading in both files as InputStreams and then creating temporary files for each of them: InputStream is = (this.getClass().getClas ...

Struggling with Selenium WebDriver failing to identify an element, despite numerous attempts to resolve the issue

I'm still a beginner when it comes to using Selenium WebDriver, but I've managed to write a couple of JUnit tests with it. However, now that I'm on my third test, I'm facing an issue where a specific element cannot be located. The error ...