NetCoreWebDriverFactory  3.0.0
Easy WebDriver generation for .NET Core
AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory Class Reference

Static Factory for DriverOptions More...

Static Public Member Functions

static ChromeOptions GetChromeOptions (PlatformType platformType, bool headless=false)
 Return a configured ChromeOptions instance for a RemoteWebDriver. More...
 
static ChromeOptions GetChromeOptions (bool headless=false)
 Return a configured ChromeOptions instance for a local WebDriver. More...
 
static FirefoxOptions GetFirefoxOptions (PlatformType platformType, bool headless=false)
 Return a configured FirefoxOptions instance for a RemoteWebDriver. More...
 
static FirefoxOptions GetFirefoxOptions (bool headless=false)
 Return a configured FirefoxOptions instance for a local WebDriver. More...
 
static EdgeOptions GetEdgeOptions (PlatformType platformType=PlatformType.Any)
 Return a configured EdgeOptions instance. More...
 
static InternetExplorerOptions GetInternetExplorerOptions (PlatformType platformType=PlatformType.Any)
 Return a configured InternetExplorerOptions instance. More...
 
static SafariOptions GetSafariOptions (PlatformType platformType=PlatformType.Any)
 Return a configured SafariOptions instance. More...
 
static T SetPlatform< T > (T options, PlatformType platformType)
 Add the platform configuration to a DriverOptions instance. More...
 
static T AddHeadlessOption< T > (T driverOptions)
 Add the headless flag if available. More...
 

Detailed Description

Static Factory for DriverOptions

Member Function Documentation

◆ AddHeadlessOption< T >()

static T AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory.AddHeadlessOption< T > ( driverOptions)
static

Add the headless flag if available.

Template Parameters
T
Parameters
driverOptions
Returns
Type Constraints
T :DriverOptions 

◆ GetChromeOptions() [1/2]

static ChromeOptions AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory.GetChromeOptions ( PlatformType  platformType,
bool  headless = false 
)
static

Return a configured ChromeOptions instance for a RemoteWebDriver.

Parameters
platformType
headless
Returns

◆ GetChromeOptions() [2/2]

static ChromeOptions AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory.GetChromeOptions ( bool  headless = false)
static

Return a configured ChromeOptions instance for a local WebDriver.

Parameters
headless
Returns

◆ GetEdgeOptions()

static EdgeOptions AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory.GetEdgeOptions ( PlatformType  platformType = PlatformType.Any)
static

Return a configured EdgeOptions instance.

Parameters
platformType
Returns

◆ GetFirefoxOptions() [1/2]

static FirefoxOptions AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory.GetFirefoxOptions ( PlatformType  platformType,
bool  headless = false 
)
static

Return a configured FirefoxOptions instance for a RemoteWebDriver.

Parameters
platformType
headless
Returns

◆ GetFirefoxOptions() [2/2]

static FirefoxOptions AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory.GetFirefoxOptions ( bool  headless = false)
static

Return a configured FirefoxOptions instance for a local WebDriver.

Parameters
headless
Returns

◆ GetInternetExplorerOptions()

static InternetExplorerOptions AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory.GetInternetExplorerOptions ( PlatformType  platformType = PlatformType.Any)
static

Return a configured InternetExplorerOptions instance.

Parameters
platformType
Returns

◆ GetSafariOptions()

static SafariOptions AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory.GetSafariOptions ( PlatformType  platformType = PlatformType.Any)
static

Return a configured SafariOptions instance.

Parameters
platformType
Returns

◆ SetPlatform< T >()

static T AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.StaticDriverOptionsFactory.SetPlatform< T > ( options,
PlatformType  platformType 
)
static

Add the platform configuration to a DriverOptions instance.

Template Parameters
T
Parameters
options
platformType
Returns
Type Constraints
T :DriverOptions 

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