Interface
IAutomationHost

Implemented by automation hosts that contain ITargetElement.

Definition

Namespace:ArtOfTest.Common

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public interface IAutomationHost : ISupportSearchHost

Derived Classes: AspNetHostBrowserBrowserDesktopApplicationPopupDesktopApplicationWindowSilverlightAppWpfWindowVisualTreeHost

Inherited Members ISupportSearchHost.LocateInHost(string[])ISupportSearchHost.LocateAllInHost(string[])

Properties

FriendlyName

A friendly name that represents this host.

Declaration

cs-api-definition
string FriendlyName { get; }

Property Value

string

A friendly name that represents this host at its current state.

StateHashCode

Returns a hashcode that uniquely identifies the current content state of this host.

Declaration

cs-api-definition
string StateHashCode { get; }

Property Value

string

TechnologyType

Get the technology type of the host

Declaration

cs-api-definition
TechnologyType TechnologyType { get; }

Property Value

TechnologyType

UniqueId

Returns a unique id that identifies this host

Declaration

cs-api-definition
string UniqueId { get; }

Property Value

string

Methods

Capture()

Return a bitmap of the host

Declaration

cs-api-definition
Bitmap Capture()

Returns

Bitmap

EnsureStateIsCurrent()

Force the automation host to be up to date. (i.e. RefreshDomTree in Html)

Declaration

cs-api-definition
void EnsureStateIsCurrent()

GetChildHosts()

Return a list of child automation host that this host contains.

Declaration

cs-api-definition
IAutomationHost[] GetChildHosts()

Returns

IAutomationHost[]

An array of child hosts

GetHostRoot()

Return the root target element of this host.

Declaration

cs-api-definition
ITargetElement GetHostRoot()

Returns

ITargetElement

The root target element

GetWindowRectangle()

Gets the rectangle of window containing this host

Declaration

cs-api-definition
Rectangle GetWindowRectangle()

Returns

Rectangle

SetWindowFocus()

Makes the window containing this host active

Declaration

cs-api-definition
bool SetWindowFocus()

Returns

bool

Whether we successfully set the window to active

Ensures that any links between hosts are up-to-date (Infrastructure use only)

Declaration

cs-api-definition
void UpdateInterHostLinks()

ValidateMouseLocation(Point)

Validate the location of the mouse.

Declaration

cs-api-definition
void ValidateMouseLocation(Point point)

Parameters

point

Point