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 : IDisposable
Inheritance
SafariDriverServer
Implements
Inherited Members

Constructors

SafariDriverServer()

Initializes a new instance of the SafariDriverServer class.

public SafariDriverServer()

SafariDriverServer(int)

Initializes a new instance of the SafariDriverServer class using a specific port for communication.

public SafariDriverServer(int port)

Parameters

port int

The port to use to communicate.

Properties

ServerUri

Gets the URI of the server.

public Uri ServerUri { get; }

Property Value

Uri

Methods

Dispose()

Releases all resources used by the SafariDriverServer.

public void Dispose()

Dispose(bool)

Releases the unmanaged resources used by the SocketWrapper 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.

Start()

Starts the server.

public void Start()

Stop()

Stops the server.

public void Stop()

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.