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(IGetsWebDriverAndOptionsTypes, ILogger<WebDriverConfigurationItemParser>)

Initializes a new instance of the WebDriverConfigurationItemParser class.

public WebDriverConfigurationItemParser(IGetsWebDriverAndOptionsTypes typeProvider, ILogger<WebDriverConfigurationItemParser> logger)

Parameters

typeProvider IGetsWebDriverAndOptionsTypes

The provider for web driver and options types.

logger ILogger<WebDriverConfigurationItemParser>

The logger for this parser.

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.