Class WebDriverConfigurationItemParser
Default implementation of IParsesSingleWebDriverConfigurationSection.
public class WebDriverConfigurationItemParser : IParsesSingleWebDriverConfigurationSection
- Inheritance
-
WebDriverConfigurationItemParser
- Implements
- Inherited Members
Constructors
WebDriverConfigurationItemParser(IGetsDriverType, IGetsOptionsType, ICreatesDriverOptions, IGetsLogger)
Initializes a new instance of the WebDriverConfigurationItemParser class.
public WebDriverConfigurationItemParser(IGetsDriverType driverTypeProvider, IGetsOptionsType optionsTypeProvider, ICreatesDriverOptions optionsFactory, IGetsLogger loggerProvider)
Parameters
driverTypeProviderIGetsDriverTypeA service to get the driver type
optionsTypeProviderIGetsOptionsTypeA service to get the options type
optionsFactoryICreatesDriverOptionsA service to get the driver options
loggerProviderIGetsLoggerA logger provider
Methods
GetDriverConfiguration(IConfigurationSection)
Gets an instance of WebDriverCreationOptions from the specified IConfigurationSection.
public WebDriverCreationOptions GetDriverConfiguration(IConfigurationSection configuration)
Parameters
configurationIConfigurationSectionThe configuration section which describes the configuration of a WebDriver.
Returns
- WebDriverCreationOptions
A strongly-typed options object, or a null reference indicating an invalid configuration.
Remarks
Note that if the configuration is invalid, then this method will return a null instance of WebDriverCreationOptions.
Exceptions
- ArgumentNullException
If
configurationis null.