Class SafariDriverServer
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
SafariOptionsThe 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
SendCommand(Command)
Sends a command to the server.
public Response SendCommand(Command commandToSend)
Parameters
Returns
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
Returns
- SafariDriverConnection
A SafariDriverConnection representing the connection to the browser.