NetCoreWebDriverFactory  3.0.0
Easy WebDriver generation for .NET Core
AlexanderOnTest.WebDriverFactoryNunitConfig.TestSettings.WebDriverSettings Class Reference

Static Public Attributes

static IWebDriverConfiguration WebDriverConfiguration
 Return the Configuration to use - Priority: More...
 

Properties

static Browser Browser = GetEnumSettingOrDefault("browserType", Browser.Firefox) [get]
 
static Uri GridUri [get]
 Uri of the grid. Configuration Priority: More...
 
static bool IsLocal [get]
 Run the webdriver locally (rather than remote) More...
 
static PlatformType PlatformType = GetEnumSettingOrDefault("platform", PlatformType.Windows) [get]
 PlatformType for the RemoteWebDriver request More...
 
static WindowSize WindowSize = GetEnumSettingOrDefault("windowSize", WindowSize.Hd) [get]
 Requested Browser Window Size More...
 
static bool Headless = GetBoolSettingOrDefault("headless", false) [get]
 Run the WebDriver instance Headless (Supported only on Firefox and Chrome) More...
 
static Size CustomWindowSize [get]
 Requested Custom browser size for WindowSize.Custom More...
 

Member Data Documentation

◆ WebDriverConfiguration

IWebDriverConfiguration AlexanderOnTest.WebDriverFactoryNunitConfig.TestSettings.WebDriverSettings.WebDriverConfiguration
static
Initial value:
=> GetConfigFromFileSystemIfPresent<WebDriverConfiguration>("Config_WebDriver.json")
?? WebDriverConfigurationBuilder.Start()
.WithBrowser(Browser)
.WithGridUri(GridUri)
.WithHeadless(Headless)
.WithIsLocal(IsLocal)
.WithPlatformType(PlatformType)
.WithWindowSize(WindowSize)
.WithWindowDefinedSize(CustomWindowSize)
.Build()

Return the Configuration to use - Priority:

  1. A value provided in "My Documents/Config_WebDriver.json" (Windows) or "/Config_WebDriver.json" (Mac / Linux)
  2. The value in an applied .runsettings file
  3. Default values.

Property Documentation

◆ CustomWindowSize

Size AlexanderOnTest.WebDriverFactoryNunitConfig.TestSettings.WebDriverSettings.CustomWindowSize
staticget
Initial value:
= new Size(
TestContext.Parameters.Get<int>("customWidth", 0 ),
TestContext.Parameters.Get<int>("customHeight", 0))

Requested Custom browser size for WindowSize.Custom

◆ GridUri

Uri AlexanderOnTest.WebDriverFactoryNunitConfig.TestSettings.WebDriverSettings.GridUri
staticget

Uri of the grid. Configuration Priority:

  1. A value provided in "My Documents/Config_GridUri.json" (Windows) or "/Config_GridUri.json" (Mac / Linux)
  2. The value in an applied .runsettings file
  3. Default (Localhost) grid.

◆ Headless

bool AlexanderOnTest.WebDriverFactoryNunitConfig.TestSettings.WebDriverSettings.Headless = GetBoolSettingOrDefault("headless", false)
staticget

Run the WebDriver instance Headless (Supported only on Firefox and Chrome)

◆ IsLocal

bool AlexanderOnTest.WebDriverFactoryNunitConfig.TestSettings.WebDriverSettings.IsLocal
staticget
Initial value:
= Utils.GetConfigFromFileSystemIfPresent<Uri>("Config_GridUri.json") ??
new Uri(GetSettingOrDefault("gridUri", "http://localhost:4444/wd/hub"))

Run the webdriver locally (rather than remote)

◆ PlatformType

PlatformType AlexanderOnTest.WebDriverFactoryNunitConfig.TestSettings.WebDriverSettings.PlatformType = GetEnumSettingOrDefault("platform", PlatformType.Windows)
staticget

PlatformType for the RemoteWebDriver request

◆ WindowSize

WindowSize AlexanderOnTest.WebDriverFactoryNunitConfig.TestSettings.WebDriverSettings.WindowSize = GetEnumSettingOrDefault("windowSize", WindowSize.Hd)
staticget

Requested Browser Window Size


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