-
Notifications
You must be signed in to change notification settings - Fork 0
Selenium.WebDriver.WebDriverFactoryNunitConfig
Alexander Dunn edited this page Feb 21, 2019
·
2 revisions
This package is a simple .NET Standard library provided to allow easy configuration of Selenium WebDriver instances launched by the Selenium.WebDriver.NetCoreWebDriverFactory
The primary intended property for use is:
public static IWebDriverConfiguration WebDriverConfiguration
If you prefer however the individual configurations are also available
public static Browser Browserpublic static Uri GridUripublic static bool IsLocalpublic static PlatformType PlatformTypepublic static WindowSize WindowSizepublic static bool Headless
In addition:
Provides the methods that I used in generating them if you would like to use them for generating your own TestSettings class for additional configurations
public static string GetSettingOrDefault(string settingName, string defaultValue)public static T GetEnumSettingOrDefault<T>(string settingName, T defaultValue) where T : Enumpublic static bool GetBoolSettingOrDefault(string settingName, bool defaultValue)public static T GetConfigFromFileSystemIfPresent<T>(string filename, System.Environment.SpecialFolder fileLocation = Environment.SpecialFolder.MyDocuments)