ClassVisualWait
Provide wait functionality for Silverlight elements.
Definition
Namespace:ArtOfTest.WebAii.Silverlight
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class VisualWait
Inheritance: objectVisualWait
Properties
Methods
For(Predicate<FrameworkElement>)
Wait for a custom defined predicate on this framework element.
Declaration
public void For(Predicate<FrameworkElement> predicate)
Parameters
predicate
The custom predicate
For(Predicate<FrameworkElement>, int, string)
Wait for a custom defined predicate on this framework element.
Declaration
public void For(Predicate<FrameworkElement> predicate, int timeout, string onErrorMessage)
Parameters
predicate
The custom predicate
timeout
The timeout to use
onErrorMessage
Message to show in case of an error/timeout
For(Predicate<FrameworkElement>, string)
Wait for a custom defined predicate on this framework element.
Declaration
public void For(Predicate<FrameworkElement> predicate, string onErrorMessage)
Parameters
predicate
The custom predicate
onErrorMessage
Message to show in case of an error/timeout
ForExists()
Declaration
public void ForExists()
ForExistsNot()
Declaration
public void ForExistsNot()
ForNoMotion(int)
Waits for this element to stop moving.
Declaration
public void ForNoMotion(int motionCheckInterval)
Parameters
motionCheckInterval
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
public void ForNoMotion(int motionCheckInterval, int timeout)
Parameters
motionCheckInterval
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
The timeout to use.
ForNoMotion(int, int, int)
Waits for this element to stop moving.
Declaration
public void ForNoMotion(int initialWait, int motionCheckInterval, int timeout)
Parameters
initialWait
The number of milliseconds to wait before starting to check whether the element has stopped moving
motionCheckInterval
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
The timeout to use.
ForVisible()
Wait for this element to be visible in the VisualTree.
Declaration
public void ForVisible()
ForVisible(int)
Wait for this element to be visible in the VisualTree.
Declaration
public void ForVisible(int timeout)
Parameters
timeout
The timeout to use.
ForVisibleNot()
Wait for this element to no longer be visible i the VisualTree
Declaration
public void ForVisibleNot()
ForVisibleNot(int)
Wait for this element to no longer be visible i the VisualTree
Declaration
public void ForVisibleNot(int timeout)
Parameters
timeout
The timeout to use.