Class SafariDriverService
Exposes the service provided by the native SafariDriver executable.
public sealed class SafariDriverService : DriverService, ICommandServer, IDisposable
- Inheritance
-
SafariDriverService
- Implements
- Inherited Members
Properties
CommandLineArguments
Gets the command-line arguments for the driver service.
protected override string CommandLineArguments { get; }
Property Value
HasShutdown
Gets a value indicating whether the service has a shutdown API that can be called to terminate it gracefully before forcing a termination.
protected override bool HasShutdown { get; }
Property Value
IsInitialized
Gets a value indicating whether the service is responding to HTTP requests.
protected override bool IsInitialized { get; }
Property Value
TerminationTimeout
Gets a value indicating the time to wait for the service to terminate before forcing it to terminate. For the Safari driver, there is no time for termination
protected override TimeSpan TerminationTimeout { get; }
Property Value
UseLegacyProtocol
Gets or sets a value indicating whether to use the default open-source project dialect of the protocol instead of the default dialect compliant with the W3C WebDriver Specification.
public bool UseLegacyProtocol { get; set; }
Property Value
Remarks
This is only valid for versions of the driver for Safari that target Safari 12 or later, and will result in an error if used with prior versions of the driver.
Methods
CreateDefaultService()
Creates a default instance of the SafariDriverService.
public static SafariDriverService CreateDefaultService()
Returns
- SafariDriverService
A SafariDriverService that implements default settings.
CreateDefaultService(string)
Creates a default instance of the SafariDriverService using a specified path to the ChromeDriver executable.
public static SafariDriverService CreateDefaultService(string driverPath)
Parameters
driverPath
stringThe directory containing the ChromeDriver executable.
Returns
- SafariDriverService
A ChromeDriverService using a random port.
CreateDefaultService(string, string)
Creates a default instance of the SafariDriverService using a specified path to the ChromeDriver executable with the given name.
public static SafariDriverService CreateDefaultService(string driverPath, string driverExecutableFileName)
Parameters
driverPath
stringThe directory containing the ChromeDriver executable.
driverExecutableFileName
stringThe name of the ChromeDriver executable file.
Returns
- SafariDriverService
A ChromeDriverService using a random port.