C# Class OpenQA.Selenium.Firefox.Internal.ExtensionConnection

Represents the connection to the WebDriver Firefox extension.
Inheritance: IExtensionConnection
ファイルを表示 Open project: epall/selenium Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Releases all resources associated with this ExtensionConnection.

ExtensionConnection ( ILock lockObject, FirefoxBinary binary, FirefoxProfile profile, string host ) : System

Initializes a new instance of the ExtensionConnection class.

Quit ( ) : void

Closes the connection to the extension.

SendMessageAndWaitForResponse ( Type throwOnFailure, Command command ) : System.Net.Response

Sends a message to the extension and waits for a response.

Private Methods

Method Description
Connect ( IPEndPoint addr ) : void
ConnectToBrowser ( long timeToWaitInMilliSeconds ) : void
DetermineNextFreePort ( string host, int port ) : int
GetNextResponse ( ) : System.Net.Response
ObtainLoopbackAddresses ( int port ) : List
ReadLoop ( string commandName ) : System.Net.Response
ReadNextLine ( ) : string
SendMessage ( Command command ) : void
SetAddress ( string host, int port ) : void
WaitForResponseForCommand ( string commandName ) : System.Net.Response

Method Details

Dispose() public method

Releases all resources associated with this ExtensionConnection.
public Dispose ( ) : void
return void

ExtensionConnection() public method

Initializes a new instance of the ExtensionConnection class.
public ExtensionConnection ( ILock lockObject, FirefoxBinary binary, FirefoxProfile profile, string host ) : System
lockObject ILock An object used to lock the mutex port before connection.
binary FirefoxBinary The on which to make the connection.
profile FirefoxProfile The creating the connection.
host string The name of the host on which to connect to the Firefox extension (usually "localhost").
return System

Quit() public method

Closes the connection to the extension.
public Quit ( ) : void
return void

SendMessageAndWaitForResponse() public method

Sends a message to the extension and waits for a response.
public SendMessageAndWaitForResponse ( Type throwOnFailure, Command command ) : System.Net.Response
throwOnFailure System.Type The of object to instantiate /// if the command fails.
command Command The to execute.
return System.Net.Response