Table of Contents

Class EdgeOptions

Namespace
OpenQA.Selenium.Edge
Assembly
WebDriver.dll

Class to manage options specific to EdgeDriver

public class EdgeOptions : ChromiumOptions
Inheritance
EdgeOptions
Inherited Members

Examples

EdgeOptions options = new EdgeOptions();

For use with EdgeDriver:

EdgeDriver driver = new EdgeDriver(options);

For use with RemoteWebDriver:

RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), options.ToCapabilities());

Constructors

EdgeOptions()

Initializes a new instance of the EdgeOptions class.

public EdgeOptions()

Properties

CapabilityName

Gets the name of the capability used to store Chromium options in an ICapabilities object.

public override string CapabilityName { get; }

Property Value

string

UseWebView

Gets or sets whether to create a WebView session used for launching an Edge (Chromium) WebView-based app on desktop.

public bool UseWebView { get; set; }

Property Value

bool

VendorPrefix

Gets the vendor prefix to apply to Chromium-specific capability names.

protected override string VendorPrefix { get; }

Property Value

string

Methods

AddAdditionalEdgeOption(string, object)

Provides a means to add additional capabilities not yet added as type safe options for the Edge driver.

public void AddAdditionalEdgeOption(string optionName, object optionValue)

Parameters

optionName string

The name of the capability to add.

optionValue object

The value of the capability to add.

Remarks

Calling AddAdditionalEdgeOption(string, object) where optionName has already been added will overwrite the existing value with the new value in optionValue. Calling this method adds capabilities to the Edge-specific options object passed to webdriver executable (property name 'ms:edgeOptions').

Exceptions

ArgumentException

thrown when attempting to add a capability for which there is already a type safe option, or when optionName is null or the empty string.