Class EdgeDriverService
Exposes the service provided by the native WebDriver executable.
public sealed class EdgeDriverService : ChromiumDriverService, IDisposable, IAsyncDisposable
- Inheritance
-
EdgeDriverService
- Implements
- Inherited Members
Properties
DriverServiceEnvironmentVariableName
Gets the name of the environment variable used to specify the driver executable location, or null if the service does not support one.
protected override string DriverServiceEnvironmentVariableName { get; }
Property Value
Methods
CreateDefaultService()
Creates a default instance of the EdgeDriverService.
public static EdgeDriverService CreateDefaultService()
Returns
- EdgeDriverService
A EdgeDriverService that implements default settings.
CreateDefaultService(string?)
Creates a default instance of the EdgeDriverService using a specified path to the EdgeDriver executable.
public static EdgeDriverService CreateDefaultService(string? driverPath)
Parameters
driverPathstringThe path to the executable or the directory containing the EdgeDriver executable.
Returns
- EdgeDriverService
An EdgeDriverService using a random port.
CreateDefaultService(string?, string?)
Creates a default instance of the EdgeDriverService using a specified path to the EdgeDriver executable with the given name.
public static EdgeDriverService CreateDefaultService(string? driverPath, string? driverExecutableFileName)
Parameters
driverPathstringThe directory containing the EdgeDriver executable.
driverExecutableFileNamestringThe name of the EdgeDriver executable file.
Returns
- EdgeDriverService
A EdgeDriverService using a random port.
GetDefaultDriverOptions()
The browser options instance that corresponds to the driver service
protected override DriverOptions GetDefaultDriverOptions()