C# 클래스 OpenQA.Selenium.Firefox.Internal.ExtensionConnection

Represents the connection to the WebDriver Firefox extension.
상속: IExtensionConnection
파일 보기 프로젝트 열기: epall/selenium 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 공개 메소드

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

ExtensionConnection() 공개 메소드

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").
리턴 System

Quit() 공개 메소드

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

SendMessageAndWaitForResponse() 공개 메소드

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.
리턴 System.Net.Response