The installed version of Chromedriver is newer than the current version

Currently, I am utilizing Selenium for end-to-end tests with jest.

My browser of choice is Chrome version 85.0.4183.121, and the correct chromedriver version is present in my PATH. When I execute chromeversion -v in the command line, it returns

ChromeDriver 85.0.4183.87 (cd6713ebf92fa1cacc0f1a598df280093af0c5d7-refs/branch-heads/4183@{#1689})

Despite having the appropriate versions, when attempting to run tests using webdriver, I encounter the error

SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 74
, which is puzzling since it indicates that I have chromedriver 74 installed.

I have researched similar issues but have yet to find a solution that addresses my problem directly.

Any assistance would be greatly appreciated.

Answer №1

After some investigating, I discovered the issue: The project contained its own chromedriver.exe file, causing the tests to utilize it instead of the one in my system's PATH. This ensures consistency across team members but was leading to errors. Once I swapped out the incorrect chromedriver with the proper version, everything ran smoothly.

Answer №2

There was an additional Chromedriver binary saved in the Repository that was actively in use.

Answer №3

To ensure compatibility, it is important to keep your Chrome browser and Chrome driver exe up-to-date. Check your Chrome browser version and download the corresponding version of the Chrome driver exe from this link.

There are two solutions to this issue:

The first option is to use the latest Chrome driver exe for your browser version 85. The second option is to downgrade your browser version, although the first option is the recommended solution.

Answer №4

When you encounter the following message during execution:

ChromeDriver is compatible only with Chrome version 74

We recommend downloading and using Chromedriver version 74 to resolve this issue.

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

What is the best way to automatically create a PDF file that includes interactive JavaScript charts?

My goal is to create a word document or PDF containing charts from various JavaScript chart libraries. I've successfully implemented these libraries on websites, but now I want to include them in my documents as well. My initial attempt involved usin ...

trim() function acting strangely

There seems to be an unexpected occurrence with the trim() function, as it is removing the á character. https://i.stack.imgur.com/whZBN.png This particular code snippet is typically used in various JavaScript projects without any issues. However, a clie ...

Using Three.js to apply a sprite as a texture to a spherical object

function generateLabel(icon, labelText, labelText2, labelText3, bgColor, fontColor, transparency, xCoordinate, yCoordinate, zCoordinate){ $('#imglabelcontainer').append('<div class="imglabel" id="imglabel'+labelText+'" style ...

Unable to display image source in viewport

Currently, I am working on developing a basic ionic app that interacts with an API that I have created. I am encountering an issue where all data is being displayed correctly in the view except for the src attribute of an image. When I use console.log to c ...

Setting Authorization with username, password, and domain in Angular 2 HTTP Request

I am facing an issue with calling an API method hosted on another machine using Angular 2 component with Http. When accessing the API from a browser, I can connect by entering a username and password as shown below: https://i.stack.imgur.com/JJqpC.png Ho ...

Is there a way to efficiently retrieve multiple values from an array and update data in a specific column using matching IDs?

In my Event Scheduler spreadsheet, I am looking for a way to efficiently manage adding or removing employees from the query table in column A. Currently, I have a dropdown list in each row to select names and a script that can only replace one name at a ...

How can we efficiently add a new node to a polyline link in gojs while maintaining the original positions of points in the links adjacent to the inserted node

After posting a question on StackOverflow (Seeking Javascript library for displaying and editing networks of nodes and edges), I was directed to the gojs splice sample. The sample has been helpful, but I've hit a roadblock trying to achieve the speci ...

Display TypeScript console log exclusively during development mode

Can console logs in TypeScript/JavaScript be selectively outputted based on Webpack bundling mode? I frequently use comments for status messages in my app and do not want to remove them for production versions. ...

I'm looking for ways to incorporate TypeScript definition files (.d.ts) into my AngularJS application without using the reference path. Can anyone provide

I'm interested in leveraging .d.ts files for enhanced intellisense while coding in JavaScript with VScode. Take, for instance, a scenario where I have an Angular JS file called comments.js. Within comments.js, I aim to access the type definitions prov ...

Sending data from one Angular component to another on a button click

I have a background in Python, but I recently started delving into learning Angular and I'm encountering some difficulties. The concept of working between components is proving to be quite confusing for me, and I'm struggling to grasp it. Despite ...

What is the best way to execute an API that relies on a variable determined by a previous API call?

I am facing a challenge in creating a node seed script using an API that is paginated with a property called 'numberOfPages'. My goal is to seed a database on each page by running a for loop based on the value of 'numberOfPages'. Howev ...

Instructions on giving an identifier to a canvas element within a three.js project

In my three.js project, I have created a render object and connected it with DomElement as shown below: var renderer = new THREE.WebGLRenderer({ antialias: true }); renderer.setClearColor( 0xAAAAAA, 1 ); renderer.setSize(window.innerWi ...

Utilizing HTML5 to Access and Update custom data attributes

I have implemented the following code: var activeFilter = $('<li></li>').data('input-id', 'mycustomId'); $('#container').append(activeFilter); Now, I am faced with the challenge of retrieving a specific ...

Is there a way to create a header that fades out or disappears when scrolling down and reappears when scrolling up?

After spending some time researching and following tutorials, I have not made much progress with my goal. The task at hand is to hide the top header of my website when the user scrolls down and then make it reappear when they scroll back up to the top of t ...

Converting RSS title to HTML format with the help of JavaScript

I am currently working on populating a menu on a webpage with the 5 latest topics from our site's RSS newsfeed using JavaScript (specifically jQuery version 1.9.1). I have been searching for a solution, but most answers I find reference deprecated scr ...

Learn how to customize button styles in ExtJS with the pressedCls configuration option

Is there a way to change the color when a button is pressed? I tried using the pressedCls config but it didn't work. How can I fix this issue or is there another method to set the CSS when a button is pressed? Thank you so much! Javascript: Ext.crea ...

Retrieve JSON information from the driver's console using Selenium with Python

I am trying to retrieve JSON data from the console, which is shown in this image. Here are the codes I have used so far: j = driver.execute_script(" return document.getElementsByClassName('form-group text required assessment_questions_choices_text ...

When navigating to a new page in Vue.js, automatically scroll to the top of the view

I attempted to utilize this.$router.replace(…) within the router-link, however it does not appear to be effective. Is there a built-in Vue method for achieving the same functionality without relying on any external libraries? ...

Leveraging Javascript to generate universal HTML content for various Javascript files

Present Situation: I have a timesheet feature that enables users to input their leave, TOIL, and sick days along with the respective hours. Additionally, there is a table that dynamically adds a new row every time the plus button is clicked using the foll ...

Creating a dynamic form that efficiently captures user information and automatically redirects to the appropriate web page

Sorry for the unusual question, but it was the best way I could think of asking. I have come across websites with fill-in-the-blank lines where you can input your desired information and then get redirected to another page. For example: "What are you sea ...