Table of Contents

Class WebDriverConfigurationItemParser

Namespace
CSF.Extensions.WebDriver.Factories
Assembly
CSF.Extensions.WebDriver.dll

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

driverTypeProvider IGetsDriverType

A service to get the driver type

optionsTypeProvider IGetsOptionsType

A service to get the options type

optionsFactory ICreatesDriverOptions

A service to get the driver options

loggerProvider IGetsLogger

A logger provider

Methods

GetDriverConfiguration(IConfigurationSection)

Gets an instance of WebDriverCreationOptions from the specified IConfigurationSection.

public WebDriverCreationOptions GetDriverConfiguration(IConfigurationSection configuration)

Parameters

configuration IConfigurationSection

The 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 configuration is null.