Selenium.WebDriver.NetCoreWebDriverFactory 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Selenium.WebDriver.NetCoreWebDriverFactory --version 2.0.0                
NuGet\Install-Package Selenium.WebDriver.NetCoreWebDriverFactory -Version 2.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="Selenium.WebDriver.NetCoreWebDriverFactory" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Selenium.WebDriver.NetCoreWebDriverFactory --version 2.0.0                
#r "nuget: Selenium.WebDriver.NetCoreWebDriverFactory, 2.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 Selenium.WebDriver.NetCoreWebDriverFactory as a Cake Addin
#addin nuget:?package=Selenium.WebDriver.NetCoreWebDriverFactory&version=2.0.0

// Install Selenium.WebDriver.NetCoreWebDriverFactory as a Cake Tool
#tool nuget:?package=Selenium.WebDriver.NetCoreWebDriverFactory&version=2.0.0                

A library to ease the creation of Selenium WebDriver instances in .net Core projects.

Usage
Instantiate a WebDriverFactory from a .NET Core project:
IWebDriverFactory webDriverFactory =  new DefaultWebDriverFactory(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), {{yourGridUri}});

Use the alternative Windows1803WebDriverFactory implementation for Windows 10 version 1803 and earlier.
IWebDriverFactory webDriverFactory =  new Windows1803WebDriverFactory(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), {{yourGridUri}});

This is not intended for .NET Framework (as it is really not required) but if you would like to use it in a Framework project use:
IWebDriverFactory webDriverFactory =  new FrameworkWebDriverFactory({{yourGridUri}});

Then to use it
IWebDriver localWebDriver = webDriverFactory.GetLocalWebDriver(Browser.xxxx);
or
IWebDriver remoteWebDriver = webDriverFactory.GetRemoteWebDriver(Browser.xxxx, PlatformType.xxxx);

Supported Browsers:
Chrome
Firefox
Edge (Windows 10)
Internet Explorer 11 (Windows Platforms)
Safari (MacOS)

Platforms:
Windows (PlatformType.Windows)
Linux        (PlatformType.Linux)
MacOS     (PlatformType.Mac)

Tested and working on Windows 10, Linux (Ubuntu 18.04) and MacOS Mojave

The repository at
https://github.com/AlexanderOnTesting/NetCoreWebDriverFactory
contains test projects for Windows, Linux and MacOS. These can be used to test your setup and demonstrate the options available.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Selenium.WebDriver.NetCoreWebDriverFactory:

Package Downloads
Selenium.WebDriver.WebDriverFactoryNunitConfig

Pick up NetCoreWebDriverFactory configuration for Nunit 3 test projects from runsettings files and with local file override options. See project URL for details.

Kwolo.MaseratiConnect

.net library to retrieve data about a car from Maserati Connect

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.1.0 10,925 5/29/2022
4.0.0 1,554 4/23/2022
4.0.0-RC3 893 4/21/2022
4.0.0-RC2 864 4/20/2022
4.0.0-RC1 846 4/4/2022
4.0.0-beta7 905 2/18/2022
4.0.0-beta6 866 2/13/2022
4.0.0-beta5 862 2/9/2022
4.0.0-beta4 826 2/7/2022
4.0.0-beta30 802 4/4/2022
4.0.0-beta3 896 2/6/2022
4.0.0-beta2 915 2/5/2022
4.0.0-beta12 850 2/21/2022
4.0.0-beta 901 2/5/2022
3.0.0 30,607 6/20/2019
2.3.0 2,196 3/10/2019
2.2.0 1,592 3/1/2019
2.1.0 1,475 1/3/2019
2.0.0 1,448 12/19/2018
1.0.1 1,575 11/2/2018
1.0.0 1,550 10/11/2018
0.9.6 1,571 10/10/2018

v2.0.0 final
Significant refactoring from v1.0.1 for simplified usage:
1) IWebDriverFactory:
       IWebDriver GetRemoteWebDriver(Browser browser, PlatformType platformType = PlatformType.Any, WindowSize windowSize = WindowSize.Hd, bool headless = false);
       IWebDriver GetRemoteWebDriver(DriverOptions options, WindowSize windowSize = WindowSize.Hd);

       IWebDriver GetLocalWebDriver(Browser browser, WindowSize windowSize = WindowSize.Hd, bool headless = false);
       IWebDriver GetLocalWebDriver(ChromeOptions options, WindowSize windowSize = WindowSize.Hd);
       IWebDriver GetLocalWebDriver(FirefoxOptions options, WindowSize windowSize = WindowSize.Hd);
       IWebDriver GetLocalWebDriver(EdgeOptions options, WindowSize windowSize = WindowSize.Hd);
       IWebDriver GetLocalWebDriver(InternetExplorerOptions options, WindowSize windowSize = WindowSize.Hd);
       IWebDriver GetLocalWebDriver(SafariOptions options, WindowSize windowSize = WindowSize.Hd);

DefaultWebDriverFactory no longer has a default constructor and must be instantiated using
       public DefaultWebDriverFactory(string installedDriverPath, Uri gridUri = null, IDriverOptionsFactory driverOptionsFactory = null)

2) IDriverOptionsFactory:
       T GetLocalDriverOptions<T>(bool headless = false) where T : DriverOptions;
       T GetRemoteDriverOptions<T>(PlatformType platformType) where T : DriverOptions;

In addition, DefaultDriverOptionsFactory exposes a new constructor:
      public DefaultDriverOptionsFactory(Dictionary<Type, DriverOptions> driverOptionsDictionary)
to enable the use of your own standard DriverOptions choices.