C# Class OpenQA.Selenium.Safari.SafariDriverConnection

Represents a connection to an instance of the Safari browser.
Show file Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Public Methods

Method Description
SafariDriverConnection ( IWebSocketConnection connection ) : System

Initializes a new instance of the SafariDriverConnection class.

Send ( Command command ) : OpenQA.Selenium.Remote.Response

Sends a command to the SafariDriver and waits for a response.

Private Methods

Method Description
ConnectionClosedEventHandler ( object sender, OpenQA.Selenium.Safari.Internal.ConnectionEventArgs e ) : void
ConnectionMessageReceivedEventHandler ( object sender, OpenQA.Selenium.Safari.Internal.TextMessageHandledEventArgs e ) : void
GetQueuedResponse ( ) : OpenQA.Selenium.Remote.Response
WaitForResponse ( System.TimeSpan timeout ) : OpenQA.Selenium.Remote.Response

Method Details

SafariDriverConnection() public method

Initializes a new instance of the SafariDriverConnection class.
public SafariDriverConnection ( IWebSocketConnection connection ) : System
connection IWebSocketConnection An representing a /// connection using the WebSockets protocol.
return System

Send() public method

Sends a command to the SafariDriver and waits for a response.
public Send ( Command command ) : OpenQA.Selenium.Remote.Response
command OpenQA.Selenium.Remote.Command The to send to the driver.
return OpenQA.Selenium.Remote.Response