Interface
IBrowserRemotedClient

Use the IBrowserRemotedClient interface to define the connection to the remote client of a browser.

Definition

Namespace:ArtOfTest.WebAii.Messaging.Process

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public interface IBrowserRemotedClient

Derived Classes: BrowserRemoteClient

Properties

ClientId

Gets the client ID.

Declaration

cs-api-definition
string ClientId { get; }

Property Value

string

IsConnected

Gets whether or not the remote browser is connected.

Declaration

cs-api-definition
bool IsConnected { get; }

Property Value

bool

Settings

Gets the active Settings object.

Declaration

cs-api-definition
BrowserRemotedSettings Settings { get; }

Property Value

BrowserRemotedSettings

Methods

Connect(BrowserType, string, IntPtr, bool, bool)

Connects the remote browser to the Manager.

Declaration

cs-api-definition
void Connect(BrowserType type, string version, IntPtr hwnd, bool isUILess, bool isDialog)

Parameters

type

BrowserType

The browser type to connect.

version

string

The version of the browser.

hwnd

IntPtr

The native Win32 handle of the browser.

isUILess

bool

Whether or not to make a UI-less connection.

isDialog

bool

Whether or not the remote browser client is a dialog.

Disconnect()

Disconnects the remote browser client from the manager.

Declaration

cs-api-definition
void Disconnect()

DispatchJavascriptEvent(JavascriptEventMessage)

Dispatch a JavaScript event to the framework.

Declaration

cs-api-definition
void DispatchJavascriptEvent(JavascriptEventMessage eventMessage)

Parameters

eventMessage

JavascriptEventMessage

DoProvision()

Provisions the remote browser client for communication with the manager.

Declaration

cs-api-definition
bool DoProvision()

Returns

bool

True/False whether the client is provisioned.

LogMessage(LogType, string)

Logs a message to the tests logger.

Declaration

cs-api-definition
void LogMessage(LogType type, string message)

Parameters

type

LogType

The type of message to log.

message

string

The message to log.

ProcessResponse(BrowserCommandEventArgs)

Called by the remote browser client to process a response to a browser request.

Declaration

cs-api-definition
void ProcessResponse(BrowserCommandEventArgs e)

Parameters

e

BrowserCommandEventArgs

Events

BrowserRequest

Event handler for browser requests.

Declaration

cs-api-definition
event EventHandler<BrowserCommandEventArgs> BrowserRequest

Event Value

EventHandler<BrowserCommandEventArgs>