WebDriverDownloader 1.0.0
dotnet add package WebDriverDownloader --version 1.0.0
NuGet\Install-Package WebDriverDownloader -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WebDriverDownloader" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebDriverDownloader --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WebDriverDownloader, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WebDriverDownloader as a Cake Addin
#addin nuget:?package=WebDriverDownloader&version=1.0.0
// Install WebDriverDownloader as a Cake Tool
#tool nuget:?package=WebDriverDownloader&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Webdriver Downloader
Sick of having to update your webdriver each time there is a new version of your favorite web browser? This lib is for you.
🎯 Goal
- Download a supported driver for your web browser version.
⚙ Features
- Detect your installed browser version and download the latest driver supporting it.
- Allow you to force the download of a new driver.
- Support driver options.
✔️ Supported web browsers
Browser | Supported |
---|---|
Google Chrome | ✔️ |
Microsoft Edge | ✔️ |
📗 How to use it?
The lib has 3 primary functions:
- GetChromeDriver: download (if necessary) and return the chromedriver for your version of Google Chrome.
- GetEdgeDriver: download (if necessary) and return the msedgedriver for your version of Microsoft Edge.
- GetAvailableBrowserWebDriver: call GetChromeDriver first, then GetEdgeDriver is an issue occured with GetChromeDriver.
Additionally, there are two functions to download the drivers:
- DownloadEdgeDriver
- DownloadChromeDriver They are not needed if you use the primary functions above.
Bellow is a sample code getting using GetAvailableBrowserWebDriver:
Console.WriteLine("WebDriver downloader started");
string[] arguments = new[] { "--log-level=3" };
WebDriverDownloader wdd = new WebDriverDownloader();
IWebDriver driver = await wdd.GetAvailableBrowserWebDriver(arguments);
Console.WriteLine("Google Chrome or Microsoft Edge should be opened. Press a key to quit.");
Console.ReadKey();
driver.Quit();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0-windows7.0 is compatible. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0-windows7.0
- Selenium.WebDriver (>= 4.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 284 | 12/17/2022 |