C# Класс OpenQA.Selenium.Firefox.Internal.ExtensionConnection

Represents the connection to the WebDriver Firefox extension.
Наследование: IExtensionConnection
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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