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