Giter Site home page Giter Site logo

InvalidOperationException: This version of ChromeDriver only supports Chrome version X (SessionNotCreated) about webdrivermanager.net HOT 8 CLOSED

rosolko avatar rosolko commented on July 20, 2024 1
InvalidOperationException: This version of ChromeDriver only supports Chrome version X (SessionNotCreated)

from webdrivermanager.net.

Comments (8)

StanlyLife avatar StanlyLife commented on July 20, 2024 1

@rosolko Thank you for taking your time and investigating the issue. it seems like my chrome is of version 85.


**Google Chrome** | 85.0.4183.83 (official version) (64-bit) (cohort: 85_83_Win)
**Versjon** | 94abc2237ae0c9a4cb5f035431c8adfb94324633-refs/branch-heads/4183@{#1658}
**OS** | Windows 10 OS Version 1903 (Build 18362.1016)

However, in the console of the application, it seems to be running (driver) version 83.0.4103.39

Starting ChromeDriver 83.0.4103.39 (ccbf011cb2d2b19b506d844400483861342c20cd-refs/branch-heads/4103@{#416}) on port 56769
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.

I thought WebDriverManager was supposed to update this automatically(?)

from webdrivermanager.net.

deborahdcarlo avatar deborahdcarlo commented on July 20, 2024 1

Hey @rosolko I am having the same problem as @StanlyLife , I have version 85.0.4183.83 in chrome browser, however, it seems that the manager is not being able to update automatically to the latest chromeDriver, which is 85.0.4183.8700, it is trying to use the version 83 instead.

I also thought the WebDriverManager would pick up the latest version of the driver automatically.

from webdrivermanager.net.

issue-label-bot avatar issue-label-bot commented on July 20, 2024

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

from webdrivermanager.net.

rosolko avatar rosolko commented on July 20, 2024

@StanlyLife Can you please check your Chrome browser and Chrome driver versions.

from webdrivermanager.net.

StanlyLife avatar StanlyLife commented on July 20, 2024

@rosolko Any thoughts?

from webdrivermanager.net.

StanlyLife avatar StanlyLife commented on July 20, 2024

UPDATE


Turns out I had installed Selenium.webdrivers.chrome and it was referring to version 83 of the extension... I downgraded to 81 to test and the same error message occurred except it said 81, not 83. I then removed that extension due to browser incompatibility and manually downloaded the driver and set envpath variables, this works.

I then removed the path from ChromeDriver(@"C:\WebDrivers", chromeoptions); and it automatically targets the former extension's version and tries to initiate a webdriver of version 81.

So I looked through the documentation again and saw:

Notice that simply adding new DriverManager().SetUpDriver() does magic for you:
It checks the latest version of the WebDriver binary file
It downloads the binary WebDriver if it is not present in your system

Does this mean that It will not update the webdriver automatically if there already is an older version located on the computer? If that is the case how does the extension check or rather where the other webdrivers exists?

from webdrivermanager.net.

StanlyLife avatar StanlyLife commented on July 20, 2024

Update


Adding new DriverManager().SetUpDriver(new ChromeConfig(), "Latest", Architecture.X64); Installed webdriver inside project folder. However, selenium does not seem to take the webdriver into consideration and is not using it without it beeing specified

from webdrivermanager.net.

Dimitvp avatar Dimitvp commented on July 20, 2024

I think that your initial implementation, in the very first comment above, it is perfectly fine. I am using the same one and it is working in Production.

Does this mean that It will not update the webdriver automatically if there already is an older version located on the computer? If that is the case how does the extension check or rather where the other webdrivers exists?

I am not sure but I think, Yes, this is what does this mean.
I was used to add the WebDriver in my project manually and use it the same way as you do. But since I am using the WebDriver Manager I Deleted the driver from my project and I am letting the Manager to deal with that. After all it is Downloading the Latest Version, even if you look closer into the source code it is doing exactly that.
So my guess is that if you Remove the driver from your project all together and let the Manager do it's magic it will solve you problem ;)

Well here comes the other problem. Sometimes the Chrome is updating by itself(there are some ways to stop that but I am not a fan). In this case you have to restart your program(winService or whatever) and the Manager will download the latest version.
Probably there are ways to automate even that but this is different subject. Also in this issue #85 they implemented useful feature if you don`t want to update your browser.

from webdrivermanager.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.