Class EdgeDriver
Provides a mechanism to write tests against Edge
public class EdgeDriver : ChromiumDriver, IWebDriver, IDisposable, ISearchContext, IJavaScriptExecutor, IFindsElement, ITakesScreenshot, ISupportsPrint, IActionExecutor, IAllowsFileDetection, IHasCapabilities, IHasCommandExecutor, IHasSessionId, ICustomDriverCommandExecutor, IHasVirtualAuthenticator, ISupportsLogs, IDevTools
- Inheritance
-
EdgeDriver
- Implements
- Inherited Members
- Extension Methods
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
serviceEdgeDriverServiceThe EdgeDriverService used to initialize the driver.
Exceptions
- ArgumentNullException
If
serviceis null.
EdgeDriver(EdgeDriverService, EdgeOptions)
Initializes a new instance of the EdgeDriver class using the specified EdgeDriverService and options.
public EdgeDriver(EdgeDriverService service, EdgeOptions options)
Parameters
serviceEdgeDriverServiceThe EdgeDriverService to use.
optionsEdgeOptionsThe EdgeOptions used to initialize the driver.
Exceptions
- ArgumentNullException
If
serviceoroptionsare null.
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
serviceEdgeDriverServiceThe EdgeDriverService to use.
optionsEdgeOptionsThe EdgeOptions to be used with the Edge driver.
commandTimeoutTimeSpanThe maximum amount of time to wait for each command.
Exceptions
- ArgumentNullException
If
serviceoroptionsare null.
EdgeDriver(EdgeOptions)
Initializes a new instance of the EdgeDriver class using the specified options.
public EdgeDriver(EdgeOptions options)
Parameters
optionsEdgeOptionsThe EdgeOptions to be used with the Edge driver.
Exceptions
- ArgumentNullException
If
optionsis null.
EdgeDriver(string)
Initializes a new instance of the EdgeDriver class using the specified path to the directory containing the WebDriver executable.
public EdgeDriver(string edgeDriverDirectory)
Parameters
edgeDriverDirectorystringThe full path to the directory containing the WebDriver executable.
EdgeDriver(string, EdgeOptions)
Initializes a new instance of the EdgeDriver class using the specified path to the directory containing the WebDriver executable and options.
public EdgeDriver(string edgeDriverDirectory, EdgeOptions options)
Parameters
edgeDriverDirectorystringThe full path to the directory containing the WebDriver executable.
optionsEdgeOptionsThe EdgeOptions to be used with the Edge driver.
Exceptions
- ArgumentNullException
If
optionsis null.
EdgeDriver(string, EdgeOptions, TimeSpan)
Initializes a new instance of the EdgeDriver class using the specified path to the directory containing the WebDriver executable, options, and command timeout.
public EdgeDriver(string edgeDriverDirectory, EdgeOptions options, TimeSpan commandTimeout)
Parameters
edgeDriverDirectorystringThe full path to the directory containing the WebDriver executable.
optionsEdgeOptionsThe EdgeOptions to be used with the Edge driver.
commandTimeoutTimeSpanThe maximum amount of time to wait for each command.
Exceptions
- ArgumentNullException
If
optionsis null.
Properties
CustomCommandDefinitions
Gets a read-only dictionary of the custom WebDriver commands defined for ChromeDriver. The keys of the dictionary are the names assigned to the command; the values are the CommandInfo objects describing the command behavior.
public static IReadOnlyDictionary<string, CommandInfo> CustomCommandDefinitions { get; }