NetCoreWebDriverFactory  3.0.0
Easy WebDriver generation for .NET Core
AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.Windows1803LocalWebDriverFactory Class Reference

Implementation of the ILocalWebDriverFactory interface for .NET Core test projects to allow Edge to work on Windows 10 version 1803 and Earlier. More...

Inheritance diagram for AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.Windows1803LocalWebDriverFactory:
AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.DefaultLocalWebDriverFactory AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.LocalWebDriverFactoryBase AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.ILocalWebDriverFactory

Public Member Functions

 Windows1803LocalWebDriverFactory (IDriverOptionsFactory driverOptionsFactory, string installedDriverPath, IWebDriverReSizer webDriverReSizer)
 Return a WebDriverFactory for Windows 10 version 1803 and earlier More...
 
 Windows1803LocalWebDriverFactory (IDriverOptionsFactory driverOptionsFactory, DriverPath driverPath, IWebDriverReSizer webDriverReSizer)
 Return a WebDriverFactory for Windows 10 version 1803 and earlier More...
 
override 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...
 
override 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 1803 or earlier) More...
 
- Public Member Functions inherited from AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.DefaultLocalWebDriverFactory
 DefaultLocalWebDriverFactory (IDriverOptionsFactory driverOptionsFactory, string installedDriverPath, IWebDriverReSizer webDriverReSizer)
 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...
 
 DefaultLocalWebDriverFactory? (IDriverOptionsFactory driverOptionsFactory, DriverPath driverPath, IWebDriverReSizer webDriverReSizer)
 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...
 
- Public Member Functions inherited from AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.LocalWebDriverFactoryBase
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 (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...
 

Additional Inherited Members

- Protected Member Functions inherited from AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.LocalWebDriverFactoryBase
 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 inherited from AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.LocalWebDriverFactoryBase
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...
 

Detailed Description

Implementation of the ILocalWebDriverFactory interface for .NET Core test projects to allow Edge to work on Windows 10 version 1803 and Earlier.

Constructor & Destructor Documentation

◆ Windows1803LocalWebDriverFactory() [1/2]

AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.Windows1803LocalWebDriverFactory.Windows1803LocalWebDriverFactory ( IDriverOptionsFactory  driverOptionsFactory,
string  installedDriverPath,
IWebDriverReSizer  webDriverReSizer 
)

Return a WebDriverFactory for Windows 10 version 1803 and earlier

Parameters
driverOptionsFactory
installedDriverPath
webDriverReSizer

◆ Windows1803LocalWebDriverFactory() [2/2]

AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.Windows1803LocalWebDriverFactory.Windows1803LocalWebDriverFactory ( IDriverOptionsFactory  driverOptionsFactory,
DriverPath  driverPath,
IWebDriverReSizer  webDriverReSizer 
)

Return a WebDriverFactory for Windows 10 version 1803 and earlier

Parameters
driverOptionsFactory
driverPath
webDriverReSizer

Member Function Documentation

◆ GetWebDriver() [1/2]

override IWebDriver AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.Windows1803LocalWebDriverFactory.GetWebDriver ( Browser  browser,
WindowSize  windowSize = WindowSize.Hd,
bool  headless = false,
Size  windowCustomSize = new Size() 
)
virtual

Return a local webdriver of the given browser type with default settings.

Parameters
browser
windowSize
headless
windowCustomSize
Returns

Reimplemented from AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.LocalWebDriverFactoryBase.

◆ GetWebDriver() [2/2]

override IWebDriver AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.Windows1803LocalWebDriverFactory.GetWebDriver ( EdgeOptions  options,
WindowSize  windowSize = WindowSize.Hd,
Size  windowCustomSize = new Size() 
)
virtual

Return a local Edge WebDriver instance. (Only supported on Microsoft Windows 10 version 1803 or earlier)

Parameters
options
windowSize
windowCustomSize
Returns

Reimplemented from AlexanderOnTest.NetCoreWebDriverFactory.WebDriverFactory.LocalWebDriverFactoryBase.


The documentation for this class was generated from the following file: