Class
VisualWait

Provide wait functionality for Silverlight elements.

Definition

Namespace:ArtOfTest.WebAii.Silverlight

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class VisualWait

Inheritance: objectVisualWait

Properties

Timeout

Gets or sets the default timeout for all wait operations

Declaration

cs-api-definition
public int Timeout { get; set; }

Property Value

int

Methods

For(Predicate<FrameworkElement>)

Wait for a custom defined predicate on this framework element.

Declaration

cs-api-definition
public void For(Predicate<FrameworkElement> predicate)

Parameters

predicate

Predicate<FrameworkElement>

The custom predicate

For(Predicate<FrameworkElement>, int, string)

Wait for a custom defined predicate on this framework element.

Declaration

cs-api-definition
public void For(Predicate<FrameworkElement> predicate, int timeout, string onErrorMessage)

Parameters

predicate

Predicate<FrameworkElement>

The custom predicate

timeout

int

The timeout to use

onErrorMessage

string

Message to show in case of an error/timeout

For(Predicate<FrameworkElement>, string)

Wait for a custom defined predicate on this framework element.

Declaration

cs-api-definition
public void For(Predicate<FrameworkElement> predicate, string onErrorMessage)

Parameters

predicate

Predicate<FrameworkElement>

The custom predicate

onErrorMessage

string

Message to show in case of an error/timeout

ForExists()

Declaration

cs-api-definition
public void ForExists()

ForExists(int)

Declaration

cs-api-definition
public void ForExists(int timeout)

Parameters

timeout

int

ForExistsNot()

Declaration

cs-api-definition
public void ForExistsNot()

ForExistsNot(int)

Declaration

cs-api-definition
public void ForExistsNot(int timeout)

Parameters

timeout

int

ForNoMotion(int)

Waits for this element to stop moving.

Declaration

cs-api-definition
public void ForNoMotion(int motionCheckInterval)

Parameters

motionCheckInterval

int

The period of time in msec that constitutes no motion. For example if you pass in 500msec then if the object does not move for a period of 500msec, this function will return else will continue polling.

ForNoMotion(int, int)

Waits for this element to stop moving.

Declaration

cs-api-definition
public void ForNoMotion(int motionCheckInterval, int timeout)

Parameters

motionCheckInterval

int

The period of time in msec that constitutes no motion. For example if you pass in 500msec then if the object does not move for a period of 500msec, this function will return else will continue polling.

timeout

int

The timeout to use.

ForNoMotion(int, int, int)

Waits for this element to stop moving.

Declaration

cs-api-definition
public void ForNoMotion(int initialWait, int motionCheckInterval, int timeout)

Parameters

initialWait

int

The number of milliseconds to wait before starting to check whether the element has stopped moving

motionCheckInterval

int

The period of time in msec that constitutes no motion. For example if you pass in 500msec then if the object does not move for a period of 500msec, this function will return else will continue polling.

timeout

int

The timeout to use.

ForVisible()

Wait for this element to be visible in the VisualTree.

Declaration

cs-api-definition
public void ForVisible()

ForVisible(int)

Wait for this element to be visible in the VisualTree.

Declaration

cs-api-definition
public void ForVisible(int timeout)

Parameters

timeout

int

The timeout to use.

ForVisibleNot()

Wait for this element to no longer be visible i the VisualTree

Declaration

cs-api-definition
public void ForVisibleNot()

ForVisibleNot(int)

Wait for this element to no longer be visible i the VisualTree

Declaration

cs-api-definition
public void ForVisibleNot(int timeout)

Parameters

timeout

int

The timeout to use.