Table of Contents

Class SafariDriverServer

Namespace
OpenQA.Selenium.Safari
Assembly
WebDriver.dll

Provides the WebSockets server for communicating with the Safari extension.

public class SafariDriverServer : ICommandServer, IDisposable
Inheritance
SafariDriverServer
Implements
Inherited Members

Constructors

SafariDriverServer(SafariOptions)

Initializes a new instance of the SafariDriverServer class using the specified options.

public SafariDriverServer(SafariOptions options)

Parameters

options SafariOptions

The SafariOptions defining the browser settings.

Methods

Dispose()

Releases all resources used by the SafariDriverServer.

public void Dispose()

Dispose(bool)

Releases the unmanaged resources used by the SafariDriverServer and optionally releases the managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release managed and resources; false to only release unmanaged resources.

SendCommand(Command)

Sends a command to the server.

public Response SendCommand(Command commandToSend)

Parameters

commandToSend Command

The Command to send.

Returns

Response

The command Response.

Start()

Starts the server.

public void Start()

WaitForConnection(TimeSpan)

Waits for a connection to be established with the server by the Safari browser extension.

public SafariDriverConnection WaitForConnection(TimeSpan timeout)

Parameters

timeout TimeSpan

A TimeSpan containing the amount of time to wait for the connection.

Returns

SafariDriverConnection

A SafariDriverConnection representing the connection to the browser.