Interface IGetsDriverType
- Namespace
- CSF.Extensions.WebDriver.Factories
- Assembly
- CSF.Extensions.WebDriver.dll
An object which can get the concrete type of a WebDriver, indicated by the configuration.
public interface IGetsDriverType
Methods
TryGetDriverType(WebDriverCreationOptions, IConfigurationSection, out Type)
Validates and gets the Type of the implementation of OpenQA.Selenium.IWebDriver implementation indicated by the configuration.
bool TryGetDriverType(WebDriverCreationOptions options, IConfigurationSection configuration, out Type driverType)
Parameters
optionsWebDriverCreationOptionsThe options, as they have been parsed so far
configurationIConfigurationSectionThe configuration section
driverTypeTypeIf this method returns true then this is a Type of the web driver, otherwise this value is undefined and must be ignored.
Returns
Remarks
Note that it is valid for the driver type to be null if DriverFactoryType is specified. In that scenario, the driver type is unused, but it still indicates a valid configuration.