Table of Contents

Interface ICustomizesOptions<TOptions>

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

An object which can customize the options for a web driver before they are used to create the OpenQA.Selenium.IWebDriver.

public interface ICustomizesOptions<in TOptions> where TOptions : DriverOptions

Type Parameters

TOptions

Remarks

Implementations of this interface are rarely required. They are used to customize the options for creating a web driver after OptionsFactory has created the options instance but before it is used to create the web driver.

This is useful when you need to customize the options for a web driver in a way which is not supported by the binding from a configuration file. For example, some web driver options do not provide property getters/setters but must be configured using methods. In this case you can implement this interface with a class to customize the options as required.

The implementation of this interface should be specified via the OptionsCustomizer property. This will instantiate the customizer and call the CustomizeOptions(TOptions) method before the web driver is created.

Methods

CustomizeOptions(TOptions)

Customizes the options for a web driver.

void CustomizeOptions(TOptions options)

Parameters

options TOptions

The WebDriver options.