Table of Contents

Class EdgeDriver

Namespace
OpenQA.Selenium.Edge
Assembly
WebDriver.dll

Provides a mechanism to write tests against Edge

public class EdgeDriver : RemoteWebDriver, IWebDriver, IDisposable, ISearchContext, IJavaScriptExecutor, IFindsById, IFindsByClassName, IFindsByLinkText, IFindsByName, IFindsByTagName, IFindsByXPath, IFindsByPartialLinkText, IFindsByCssSelector, ITakesScreenshot, IHasInputDevices, IHasCapabilities, IAllowsFileDetection
Inheritance
EdgeDriver
Implements
Inherited Members

Constructors

EdgeDriver()

Initializes a new instance of the EdgeDriver class.

public EdgeDriver()

EdgeDriver(EdgeDriverService)

Initializes a new instance of the EdgeDriver class using the specified driver service.

public EdgeDriver(EdgeDriverService service)

Parameters

service EdgeDriverService

The EdgeDriverService used to initialize the driver.

EdgeDriver(EdgeDriverService, EdgeOptions)

Initializes a new instance of the EdgeDriver class using the specified EdgeDriverService and options.

public EdgeDriver(EdgeDriverService service, EdgeOptions options)

Parameters

service EdgeDriverService

The EdgeDriverService to use.

options EdgeOptions

The EdgeOptions used to initialize the driver.

EdgeDriver(EdgeDriverService, EdgeOptions, TimeSpan)

Initializes a new instance of the EdgeDriver class using the specified EdgeDriverService.

public EdgeDriver(EdgeDriverService service, EdgeOptions options, TimeSpan commandTimeout)

Parameters

service EdgeDriverService

The EdgeDriverService to use.

options EdgeOptions

The EdgeOptions to be used with the Edge driver.

commandTimeout TimeSpan

The maximum amount of time to wait for each command.

EdgeDriver(EdgeOptions)

Initializes a new instance of the EdgeDriver class using the specified options.

public EdgeDriver(EdgeOptions options)

Parameters

options EdgeOptions

The EdgeOptions to be used with the Edge driver.

EdgeDriver(string)

Initializes a new instance of the EdgeDriver class using the specified path to the directory containing EdgeDriver.exe.

public EdgeDriver(string edgeDriverDirectory)

Parameters

edgeDriverDirectory string

The full path to the directory containing EdgeDriver.exe.

EdgeDriver(string, EdgeOptions)

Initializes a new instance of the EdgeDriver class using the specified path to the directory containing EdgeDriver.exe and options.

public EdgeDriver(string edgeDriverDirectory, EdgeOptions options)

Parameters

edgeDriverDirectory string

The full path to the directory containing EdgeDriver.exe.

options EdgeOptions

The EdgeOptions to be used with the Edge driver.

EdgeDriver(string, EdgeOptions, TimeSpan)

Initializes a new instance of the EdgeDriver class using the specified path to the directory containing EdgeDriver.exe, options, and command timeout.

public EdgeDriver(string edgeDriverDirectory, EdgeOptions options, TimeSpan commandTimeout)

Parameters

edgeDriverDirectory string

The full path to the directory containing EdgeDriver.exe.

options EdgeOptions

The EdgeOptions to be used with the Edge driver.

commandTimeout TimeSpan

The maximum amount of time to wait for each command.