Comments (3)
Same here. However, you can configure the path to the driver yourself when creating it:
var config = new EdgeConfig();
var architecture = ArchitectureHelper.GetArchitecture();
var version = config.GetLatestVersion();
var url = UrlHelper.BuildUrl(architecture == Architecture.X32 ? config.GetUrl32() : config.GetUrl64(), version);
var path = FileHelper.GetBinDestination(config.GetName(), version, architecture, config.GetBinaryName());
return new EdgeDriver(
EdgeDriverService.CreateDefaultService(Path.GetDirectoryName(path), Path.GetFileName(path)),
new EdgeOptions().SetCommonOptions()).SetCommonTimeouts(pageLoadTimeout);
So pretty much doing what SetUpDriver()
does. Note that I've omitted a few things like it uses the latest version every time.
from webdrivermanager.net.
First of all thank you very much for answering, about your answer and testest and still giving an error, this time you returned an error to me: OpenQA.Selenium.DriverServiceNotFoundException: The file C: \ Users \ - \ AppData \ Local \ Temp \ Edge \ 85.0.529.0 \ X64 \ msedgedriver.exe does not exist. The driver can be downloaded at http://go.microsoft.com/fwlink/?LinkId=619687
from webdrivermanager.net.
Hmm, it seems that for you somehow it resolves the path to another folder. Anyway, try to figure out where WebDriverManager downloads the driver and configure the path to it in the ctor of EdgeDriver.
from webdrivermanager.net.
Related Issues (20)
- Nuget is out of date HOT 1
- After chrome update getting This version of ChromeDriver only supports Chrome version 111 error HOT 1
- 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
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.