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
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
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 SafariDriver executable.
public static SafariDriverService CreateDefaultService(string driverPath)
Parameters
driverPath
stringThe path to the executable or the directory containing the SafariDriver executable.
Returns
- SafariDriverService
A SafariDriverService using a random port.
CreateDefaultService(string, string)
Creates a default instance of the SafariDriverService using a specified path to the SafariDriver executable with the given name.
public static SafariDriverService CreateDefaultService(string driverPath, string driverExecutableFileName)
Parameters
driverPath
stringThe directory containing the SafariDriver executable.
driverExecutableFileName
stringThe name of the SafariDriver executable file.
Returns
- SafariDriverService
A SafariDriverService using a random port.
GetDefaultDriverOptions()
The browser options instance that corresponds to the driver service
protected override DriverOptions GetDefaultDriverOptions()