Table of Contents

Class LogLevelDriverOptionsFactoryDecorator

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

Decorator for ICreatesDriverOptions which conditionally sets the logging preference for the options, based upon BrowserLogLevel.

public class LogLevelDriverOptionsFactoryDecorator : ICreatesDriverOptions
Inheritance
LogLevelDriverOptionsFactoryDecorator
Implements
Inherited Members

Constructors

LogLevelDriverOptionsFactoryDecorator(ICreatesDriverOptions)

Initialises a new instance of LogLevelDriverOptionsFactoryDecorator.

public LogLevelDriverOptionsFactoryDecorator(ICreatesDriverOptions wrapped)

Parameters

wrapped ICreatesDriverOptions

The wrapped service

Exceptions

ArgumentNullException

If wrapped is null.

Methods

CreateOptions(Type, IConfigurationSection)

Creates and returns a new driver options instance.

public DriverOptions CreateOptions(Type optionsType, IConfigurationSection config)

Parameters

optionsType Type

The desired type of the options object

config IConfigurationSection

The CSF.Extensions.WebDriver configuration

Returns

DriverOptions

A new driver options instance