NetCoreWebDriverFactory  3.0.0
Easy WebDriver generation for .NET Core
AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder Class Reference

Builder class for easy configuration More...

Public Member Functions

WebDriverConfiguration Build ()
 Generate the WebDriverConfiguration from the current state of the builder. More...
 
WebDriverConfigurationBuilder WithBrowser (Browser browser)
 Set the required Browser More...
 
WebDriverConfigurationBuilder WithGridUri (Uri gridUri)
 Set the required Uri for the Selenium Grid More...
 
WebDriverConfigurationBuilder WithHeadless (bool headless)
 Set the Headless switch as required More...
 
WebDriverConfigurationBuilder WithIsLocal (bool isLocal)
 Set the IsLocal switch as required More...
 
WebDriverConfigurationBuilder WithPlatformType (PlatformType platformType)
 Set the required PlatformType More...
 
WebDriverConfigurationBuilder WithWindowSize (WindowSize windowSize)
 Set the required value for the WindowSize Enum More...
 
WebDriverConfigurationBuilder WithWindowDefinedSize (Size customWindowSize)
 Set the required WindowDefinedSize (Caution: only used for WindowSize.Custom/ WindowSize.Defined) More...
 
WebDriverConfigurationBuilder WithCustomSize (Size customWindowSize)
 Shortcut method to request the given Custom Size More...
 
WebDriverConfigurationBuilder RunRemotelyOn (Uri gridUri)
 Shortcut method to request running remotely on the given Uri More...
 
WebDriverConfigurationBuilder RunHeadless ()
 Set the Browser to run in headless mode More...
 
string GetJsonConfigString ()
 Return a formatted, human readable Json string suitable for saving locally in a Config_WebDriver.json file More...
 

Static Public Member Functions

static WebDriverConfigurationBuilder Start ()
 return a new instance of this class More...
 

Detailed Description

Builder class for easy configuration

Member Function Documentation

◆ Build()

WebDriverConfiguration AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.Build ( )

Generate the WebDriverConfiguration from the current state of the builder.

Returns

◆ GetJsonConfigString()

string AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.GetJsonConfigString ( )

Return a formatted, human readable Json string suitable for saving locally in a Config_WebDriver.json file

Returns

◆ RunHeadless()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.RunHeadless ( )

Set the Browser to run in headless mode

Returns

◆ RunRemotelyOn()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.RunRemotelyOn ( Uri  gridUri)

Shortcut method to request running remotely on the given Uri

Parameters
gridUri
Returns

◆ Start()

static WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.Start ( )
static

return a new instance of this class

Returns

◆ WithBrowser()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.WithBrowser ( Browser  browser)

Set the required Browser

Parameters
browser
Returns

◆ WithCustomSize()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.WithCustomSize ( Size  customWindowSize)

Shortcut method to request the given Custom Size

Parameters
customWindowSize
Returns

◆ WithGridUri()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.WithGridUri ( Uri  gridUri)

Set the required Uri for the Selenium Grid

Parameters
gridUri
Returns

◆ WithHeadless()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.WithHeadless ( bool  headless)

Set the Headless switch as required

Parameters
headless
Returns

◆ WithIsLocal()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.WithIsLocal ( bool  isLocal)

Set the IsLocal switch as required

Parameters
isLocal
Returns

◆ WithPlatformType()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.WithPlatformType ( PlatformType  platformType)

Set the required PlatformType

Parameters
platformType
Returns

◆ WithWindowDefinedSize()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.WithWindowDefinedSize ( Size  customWindowSize)

Set the required WindowDefinedSize (Caution: only used for WindowSize.Custom/ WindowSize.Defined)

Parameters
customWindowSize
Returns

◆ WithWindowSize()

WebDriverConfigurationBuilder AlexanderOnTest.NetCoreWebDriverFactory.Utils.Builders.WebDriverConfigurationBuilder.WithWindowSize ( WindowSize  windowSize)

Set the required value for the WindowSize Enum

Parameters
windowSize
Returns

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