AutomaticChromeDriveDownload is a Csharp library chromedrive extension auto-download.
Use the package manager Package Manager to install AutomaticChromeDriveDownload.
PM > Install-Package AutomaticChromeDriveDownload -Version 1.0.8
using AutomaticWebDriver;
namespace ConsoleApp
{
internal class Program
{
static void Main(string[] args)
{
//Return string: with browser google chrome version.
Console.WriteLine(ChromeDriver.Version());
//Return bool: true to download chromedrive success ou false to error.
Console.WriteLine(ChromeDriver.Download(Directory.GetCurrentDirectory()));
//Return bool: true if exist chromedrive in directory.
Console.WriteLine(ChromeDriver.Exists(Directory.GetCurrentDirectory()));
//Return bool: true if exist chromedrive in directory to Overwrite.
Console.WriteLine(ChromeDriver.Overwrite(Directory.GetCurrentDirectory()));
}
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.