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.
<PackageVersion Include="WebDriverDownloader" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="WebDriverDownloader" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WebDriverDownloader --version 1.0.0
                    
#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.
#:package WebDriverDownloader@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WebDriverDownloader&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=WebDriverDownloader&version=1.0.0
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net7.0-windows7.0 is compatible.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 405 12/17/2022