Table of Contents

Class SafariDriverService

Namespace
OpenQA.Selenium.Safari
Assembly
WebDriver.dll

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

string

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

bool

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

TimeSpan

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 string

The 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 string

The directory containing the SafariDriver executable.

driverExecutableFileName string

The 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()

Returns

DriverOptions