Table of Contents

Interface IGetsDriverType

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

An object which can get the concrete type of a WebDriver, indicated by the configuration.

public interface IGetsDriverType

Methods

TryGetDriverType(WebDriverCreationOptions, IConfigurationSection, out Type)

Validates and gets the Type of the implementation of OpenQA.Selenium.IWebDriver implementation indicated by the configuration.

bool TryGetDriverType(WebDriverCreationOptions options, IConfigurationSection configuration, out Type driverType)

Parameters

options WebDriverCreationOptions

The options, as they have been parsed so far

configuration IConfigurationSection

The configuration section

driverType Type

If this method returns true then this is a Type of the web driver, otherwise this value is undefined and must be ignored.

Returns

bool

true if the driver type information is valid; false if not

Remarks

Note that it is valid for the driver type to be null if DriverFactoryType is specified. In that scenario, the driver type is unused, but it still indicates a valid configuration.