Comments (8)
@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.
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 is not confident enough to auto-label this issue. See dashboard for more details.
from webdrivermanager.net.
@StanlyLife Can you please check your Chrome browser and Chrome driver versions.
from webdrivermanager.net.
@rosolko Any thoughts?
from webdrivermanager.net.
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.
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.
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)
- Help needed HOT 1
- Edge driver issue with jenkins
- Need "Control Flow Guard" Enabled On Assemblies
- [🐛 Bug]: WebDriverManager.Net not working with new chromedriver endpoints for Chrome since version 115 HOT 42
- SetUpDriver(new FirefoxConfig()) returns null! HOT 2
- FileLoadException with `System.Text.Json` when upgrading to v2.17.0 HOT 3
- Consider replace WebDriverManager by Selenium built-in SeleniumManager HOT 7
- Product version of .dll does not update with e.g. netsparkle HOT 1
- This version of ChromeDriver only supports Chrome version 114 HOT 8
- SetUpDriver attempting to write to Group Policy Directory HOT 2
- (Suggestion) Set chromedriver cache HOT 1
- Chrome on Linux gives "System.Exception : Unable to locate installed browser for runtime platform Unix" HOT 1
- VersionResolveStrategy.MatchingBrowser); -- Cannot implicitly convert type 'void' to 'string' HOT 4
- System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.InvalidOperationException : session not created: This version of ChromeDriver only supports Chrome version 116 Current browser version is 118.0.5993.71 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated) HOT 3
- Getting Error with calling the WebDriverManager to get the lastest exe
- can not download new chrome driver from today as there have changed directory chrome version 122 HOT 4
- WebDriverManager for .Net - DriverManager + VersionResolveStrategy.MatchingBrowser throws a System.IO.FileNotFoundException HOT 2
- Any way to automatically download latest Chrome (not chromedriver)? HOT 2
- WebDriverManager throws next issue: System.Net.Http.HttpRequestException: An error occurred while sending the request.
- Getting a ThreadAbortError when calling RemoveZip(zipPath); HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdrivermanager.net.