Selenium.WebDriver.NetCoreWebDriverFactory 0.9.6

There is a newer version of this package available.
See the version list below for details.
Install-Package Selenium.WebDriver.NetCoreWebDriverFactory -Version 0.9.6
dotnet add package Selenium.WebDriver.NetCoreWebDriverFactory --version 0.9.6
<PackageReference Include="Selenium.WebDriver.NetCoreWebDriverFactory" Version="0.9.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Selenium.WebDriver.NetCoreWebDriverFactory --version 0.9.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Selenium.WebDriver.NetCoreWebDriverFactory, 0.9.6"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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=0.9.6

// Install Selenium.WebDriver.NetCoreWebDriverFactory as a Cake Tool
#tool nuget:?package=Selenium.WebDriver.NetCoreWebDriverFactory&version=0.9.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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


IWebDriver localWebDriver = StaticWebDriverFactory.GetLocalWebDriver(Browser.Firefox, Path.GetDirectoryName(Assembly.GetCallingAssembly().Location));


IWebDriver remoteWebDriver = StaticWebDriverFactory.GetRemoteWebDriver(Browser.Chrome, gridUri, Platform.Linux);

Supported Browsers:
Edge (Windows 10 version 1803 Only)
Internet Explorer 11 (Windows Platforms)
Safari (MacOS)


Tested and working on Windows 10 and Linux.
It SHOULD work on MacOS (at least for Firefox and Chrome) but is currently untested.

The repository at

contains test projects for Windows Linux and MacOS. These can be used to test your setup and demonstrate the options available.

NuGet packages (1)

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

Package Downloads

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 5,106 6/20/2019
2.3.0 965 3/10/2019
2.2.0 349 3/1/2019
2.1.0 413 1/3/2019
2.0.0 371 12/19/2018
1.0.1 419 11/2/2018
1.0.0 457 10/11/2018
0.9.6 420 10/10/2018

v0.9.6 Release Candidate
10 October 2018
Apologies to those of you who pulled the earlier failing versions.
*** Breaking changes***
It appears that reflection cannot be used from a .net Standard library to find the Calling Assembly so my efforts to find the DriverPath fail.
To ensure that a path can be set or not as required (Safari and the latest version of Edge should NOT require a path set) I have now added the driverPath as a parameter for GetLocalWebDriver calls.
The suggested path to use from your .net core project is given in the xml documentation.

9 October 2018
Allow passing of path and debugging.

8 October 2018
Fixed Path calculation to account for use in a package. Third time lucky.

8 October 2018
Fixed Path calculation to account for use in a package.

First release: 5 October 2018
Local and Remote WebDriver creation made easy