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
wrappedICreatesDriverOptionsThe wrapped service
Exceptions
- ArgumentNullException
If
wrappedis null.
Methods
CreateOptions(Type, IConfigurationSection)
Creates and returns a new driver options instance.
public DriverOptions CreateOptions(Type optionsType, IConfigurationSection config)
Parameters
optionsTypeTypeThe desired type of the options object
configIConfigurationSectionThe CSF.Extensions.WebDriver configuration
Returns
- DriverOptions
A new driver options instance