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

An overridable implementation of the IDriverOptionsFactory Interface. More...

Inheritance diagram for AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory:
AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.IDriverOptionsFactory

Public Member Functions

 DefaultDriverOptionsFactory ()
 Construct a default DriverOptionsFactory. More...
 
 DefaultDriverOptionsFactory (Dictionary< Type, DriverOptions > driverOptionsDictionary)
 Constructor to override the default DriverOptions. More...
 
GetLocalDriverOptions< T > (bool headless=false)
 Return a DriverOptions instance of the correct type configured for a Local WebDriver. More...
 
GetRemoteDriverOptions< T > (PlatformType platformType)
 Return a DriverOptions instance of the correct type configured for a RemoteWebDriver. More...
 
void Dispose ()
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 

Protected Member Functions

virtual T SetPlatform< T > (T options, PlatformType platformType)
 Add the platform configuration to a DriverOptions instance. More...
 
virtual T AddHeadlessOption< T > (T driverOptions)
 Add the headless flag if available. More...
 
virtual void Dispose (bool disposing)
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 

Properties

Dictionary< Type, DriverOptions > DriverOptionsDictionary [get]
 Dictionary of basically configured DriverOptions instances. More...
 

Detailed Description

An overridable implementation of the IDriverOptionsFactory Interface.

Constructor & Destructor Documentation

◆ DefaultDriverOptionsFactory() [1/2]

AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory.DefaultDriverOptionsFactory ( )

Construct a default DriverOptionsFactory.

◆ DefaultDriverOptionsFactory() [2/2]

AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory.DefaultDriverOptionsFactory ( Dictionary< Type, DriverOptions >  driverOptionsDictionary)

Constructor to override the default DriverOptions.

Parameters
driverOptionsDictionary

Member Function Documentation

◆ AddHeadlessOption< T >()

virtual T AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory.AddHeadlessOption< T > ( driverOptions)
protectedvirtual

Add the headless flag if available.

Template Parameters
T
Parameters
driverOptions
Returns
Type Constraints
T :DriverOptions 

◆ Dispose() [1/2]

virtual void AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory.Dispose ( bool  disposing)
protectedvirtual

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Parameters
disposing

◆ Dispose() [2/2]

void AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory.Dispose ( )

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

◆ GetLocalDriverOptions< T >()

T AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory.GetLocalDriverOptions< T > ( bool  headless = false)

Return a DriverOptions instance of the correct type configured for a Local WebDriver.

Template Parameters
T
Parameters
headless
Returns

Implements AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.IDriverOptionsFactory.

Type Constraints
T :DriverOptions 

◆ GetRemoteDriverOptions< T >()

T AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory.GetRemoteDriverOptions< T > ( PlatformType  platformType)

Return a DriverOptions instance of the correct type configured for a RemoteWebDriver.

Template Parameters
T
Parameters
platformType
Returns

Implements AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.IDriverOptionsFactory.

Type Constraints
T :DriverOptions 

◆ SetPlatform< T >()

virtual T AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory.SetPlatform< T > ( options,
PlatformType  platformType 
)
protectedvirtual

Add the platform configuration to a DriverOptions instance.

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

Property Documentation

◆ DriverOptionsDictionary

Dictionary<Type, DriverOptions> AlexanderOnTest.NetCoreWebDriverFactory.DriverOptionsFactory.DefaultDriverOptionsFactory.DriverOptionsDictionary
getprotected

Dictionary of basically configured DriverOptions instances.


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