InterfaceIBrowserRemotedClient
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:
public interface IBrowserRemotedClient
Derived Classes:
Properties
ClientId
Gets the client ID.
IsConnected
Gets whether or not the remote browser is connected.
Settings
Gets the active Settings object.
Declaration
BrowserRemotedSettings Settings { get; }
Property Value
BrowserRemotedSettings
Methods
Connect(BrowserType, string, IntPtr, bool, bool)
Connects the remote browser to the Manager.
Declaration
void Connect(BrowserType type, string version, IntPtr hwnd, bool isUILess, bool isDialog)
Parameters
type
The browser type to connect.
version
The version of the browser.
hwnd
The native Win32 handle of the browser.
isUILess
Whether or not to make a UI-less connection.
isDialog
Whether or not the remote browser client is a dialog.
Disconnect()
Disconnects the remote browser client from the manager.
Declaration
void Disconnect()
DispatchJavascriptEvent(JavascriptEventMessage)
Dispatch a JavaScript event to the framework.
Declaration
void DispatchJavascriptEvent(JavascriptEventMessage eventMessage)
Parameters
eventMessage
JavascriptEventMessage
DoProvision()
Provisions the remote browser client for communication with the manager.
Declaration
bool DoProvision()
Returns
True/False whether the client is provisioned.
LogMessage(LogType, string)
Logs a message to the tests logger.
ProcessResponse(BrowserCommandEventArgs)
Called by the remote browser client to process a response to a browser request.
Declaration
void ProcessResponse(BrowserCommandEventArgs e)
Parameters
e
Events
BrowserRequest
Event handler for browser requests.
Declaration
event EventHandler<BrowserCommandEventArgs> BrowserRequest
Event Value