NetCoreWebDriverFactory
3.0.0
Easy WebDriver generation for .NET Core
|
Default LocalWebDriverFactory implementation for .NET Core projects. More...
Public Member Functions | |
virtual IWebDriver | GetWebDriver (Browser browser, WindowSize windowSize=WindowSize.Hd, bool headless=false, Size windowCustomSize=new Size()) |
Return a local WebDriver of the given browser type with default settings. More... | |
IWebDriver | GetWebDriver (IWebDriverConfiguration configuration) |
Return a local WebDriver instance of the given configuration. More... | |
virtual IWebDriver | GetWebDriver (ChromeOptions options, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a Local Chrome WebDriver instance. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)" More... | |
virtual IWebDriver | GetWebDriver (FirefoxOptions options, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a local Firefox WebDriver instance. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)" More... | |
virtual IWebDriver | GetWebDriver (EdgeOptions options, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a local Edge WebDriver instance. (Only supported on Microsoft Windows 10 version 1809 or later) More... | |
virtual IWebDriver | GetWebDriver (InternetExplorerOptions options, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a local Internet Explorer WebDriver instance. (Only supported on Microsoft Windows) More... | |
virtual IWebDriver | GetWebDriver (SafariOptions options, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a local Safari WebDriver instance. (Only supported on Mac Os) More... | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
Protected Member Functions | |
LocalWebDriverFactoryBase (IDriverOptionsFactory driverOptionsFactory, string installedDriverPath, IWebDriverReSizer webDriverReSizer, bool useInternalEdgeDriver=false) | |
Return a DriverFactory instance for use in .NET Core projects. Try using installedDriverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)" when running from .NET core projects. More... | |
LocalWebDriverFactoryBase? (IDriverOptionsFactory driverOptionsFactory, DriverPath driverPath, IWebDriverReSizer webDriverReSizer, bool useInternalEdgeDriver=false) | |
Return a DriverFactory instance for use in .NET Core projects. Try using driverPath = new DriverPath(Assembly.GetCallingAssembly()) when testing locally from .NET core projects. More... | |
virtual void | Dispose (bool disposing) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More... | |
IWebDriver | GetLocalWebDriver (ChromeOptions options, string driverPath=null, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a Local Chrome WebDriver instance. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)" More... | |
IWebDriver | GetLocalWebDriver (FirefoxOptions options, string driverPath=null, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a local Firefox WebDriver instance. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)" More... | |
IWebDriver | GetLocalWebDriver (EdgeOptions options, string driverPath=null, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a local Edge WebDriver instance. (Only supported on Microsoft Windows 10) Try using driverPath = null (default) for Windows 10 version 1809 and later. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)" for Windows 10 version 1803 and earlier. More... | |
IWebDriver | GetLocalWebDriver (InternetExplorerOptions options, string driverPath=null, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a local Internet Explorer WebDriver instance. (Only supported on Microsoft Windows) Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)" More... | |
IWebDriver | GetLocalWebDriver (SafariOptions options, string driverPath=null, WindowSize windowSize=WindowSize.Hd, Size windowCustomSize=new Size()) |
Return a local Safari WebDriver instance. (Only supported on Mac Os) Try using driverPath = null (default) More... | |
Properties | |
string | InstalledDriverPath [get] |
The path of installed drivers. More... | |
IWebDriverReSizer | WebDriverReSizer [get] |
The IWebDriverReSizer implementation to use. More... | |
IDriverOptionsFactory | DriverOptionsFactory [get, set] |
The DriverOptionsFactory to use. More... | |
Default LocalWebDriverFactory implementation for .NET Core projects.
|
protected |
Return a DriverFactory instance for use in .NET Core projects. Try using installedDriverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)" when running from .NET core projects.
driverOptionsFactory | |
installedDriverPath | |
webDriverReSizer | |
useInternalEdgeDriver |
|
protectedvirtual |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
disposing |
void AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.LocalWebDriverFactoryBase.Dispose | ( | ) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protected |
Return a Local Chrome WebDriver instance. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)"
options | |
driverPath | |
windowSize | |
windowCustomSize |
|
protected |
Return a local Firefox WebDriver instance. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)"
options | |
driverPath | |
windowSize | |
windowCustomSize |
|
protected |
Return a local Edge WebDriver instance. (Only supported on Microsoft Windows 10) Try using driverPath = null (default) for Windows 10 version 1809 and later. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)" for Windows 10 version 1803 and earlier.
options | |
driverPath | |
windowSize | |
windowCustomSize |
|
protected |
Return a local Internet Explorer WebDriver instance. (Only supported on Microsoft Windows) Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)"
options | |
driverPath | |
windowSize | |
windowCustomSize |
|
protected |
Return a local Safari WebDriver instance. (Only supported on Mac Os) Try using driverPath = null (default)
options | |
driverPath | |
windowSize | |
windowCustomSize |
|
virtual |
Return a local WebDriver of the given browser type with default settings.
browser | |
windowSize | |
headless | |
windowCustomSize |
Implements AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.ILocalWebDriverFactory.
Reimplemented in AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.Windows1803LocalWebDriverFactory.
IWebDriver AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.LocalWebDriverFactoryBase.GetWebDriver | ( | IWebDriverConfiguration | configuration | ) |
Return a local WebDriver instance of the given configuration.
configuration |
Implements AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.ILocalWebDriverFactory.
|
virtual |
Return a Local Chrome WebDriver instance. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)"
options | |
windowSize | |
windowCustomSize |
Implements AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.ILocalWebDriverFactory.
|
virtual |
Return a local Firefox WebDriver instance. Try using driverPath = "Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)"
options | |
windowSize | |
windowCustomSize |
Implements AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.ILocalWebDriverFactory.
|
virtual |
Return a local Edge WebDriver instance. (Only supported on Microsoft Windows 10 version 1809 or later)
options | |
windowSize | |
windowCustomSize |
Implements AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.ILocalWebDriverFactory.
Reimplemented in AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.Windows1803LocalWebDriverFactory.
|
virtual |
Return a local Internet Explorer WebDriver instance. (Only supported on Microsoft Windows)
options | |
windowSize | |
windowCustomSize |
Implements AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.ILocalWebDriverFactory.
|
virtual |
Return a local Safari WebDriver instance. (Only supported on Mac Os)
options | |
windowSize | |
windowCustomSize |
Implements AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.ILocalWebDriverFactory.
|
protected |
Return a DriverFactory instance for use in .NET Core projects. Try using driverPath = new DriverPath(Assembly.GetCallingAssembly()) when testing locally from .NET core projects.
driverOptionsFactory | |
driverPath | |
webDriverReSizer | |
useInternalEdgeDriver |
|
getset |
The DriverOptionsFactory to use.
|
getprotected |
The path of installed drivers.
|
getprotected |
The IWebDriverReSizer implementation to use.