ClassHtmlWait
Extends the Wait object for specific HtmlWait scenarios.
Definition
Namespace:ArtOfTest.WebAii.Controls.HtmlControls
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class HtmlWait : Wait
Inheritance: objectWaitHtmlWait
Inherited Members
Constructors
HtmlWait(HtmlControl, int)
Create a new wait class.
Declaration
public HtmlWait(HtmlControl htmlControl, int checkInterval)
Parameters
htmlControl
The html control target
checkInterval
Interval to use to check on the wait condition. (msec)
Methods
ForCondition(Func<Control, object, bool>, bool, object, int)
Wait for a custom condition on this control.
Declaration
public void ForCondition(Func<Control, object, bool> condition, bool invertCondition, object custom, int timeout)
Parameters
condition
The condition to wait for.
invertCondition
True/False whether to invert the condition or not.
custom
Any custom data to pass to this condition.
timeout
The timeout to use.
ForExists(int, bool)
Protected exists. [Control the control refresh]
ForStyles(bool, params string[])
Wait for a set of styles on this element. (Timeout = HtmlWait.Timeout)
Declaration
public void ForStyles(bool useComputedStyles, params string[] stylesNameValuePairs)
Parameters
useComputedStyles
True/False whether to use the computed style for this wait.
stylesNameValuePairs
string[]
The styles name/value pairs
Example
ForStyles("backgroundColor=red","display=none")
ForStyles(int, bool, params string[])
Wait for a set of styles on this element.
Declaration
public void ForStyles(int timeout, bool useComputedStyles, params string[] stylesNameValuePairs)
Parameters
timeout
The timeout to use.
useComputedStyles
True/False whether to use the computed style for this wait.
stylesNameValuePairs
string[]
The styles name/value pairs
Example
ForStyles("backgroundColor=red","display=none")
ForStyles(int, params string[])
Wait for a set of styles on this element.
ForStyles(params string[])
Wait for a set of styles on this element. (Timeout = HtmlWait.Timeout)
Declaration
public void ForStyles(params string[] stylesNameValuePairs)
Parameters
stylesNameValuePairs
string[]
The styles name/value pairs
Example
ForStyles("backgroundColor=red","display=none")
ForStylesNot(bool, params string[])
Wait for a set of styles to no longer be true.
Declaration
public void ForStylesNot(bool useComputedStyles, params string[] stylesNameValuePairs)
Parameters
useComputedStyles
True/False whether to use the computed style for this wait.
stylesNameValuePairs
string[]
The styles name/value pairs
Example
ForStyles("backgroundColor=red","display=none")
ForStylesNot(int, bool, params string[])
Wait for a set of styles to no longer be true.
Declaration
public void ForStylesNot(int timeout, bool useComputedStyles, params string[] stylesNameValuePairs)
Parameters
timeout
The timeout to use.
useComputedStyles
True/False whether to use the computed style for this wait.
stylesNameValuePairs
string[]
The styles name/value pairs
Example
ForStyles("backgroundColor=red","display=none")
ForStylesNot(int, params string[])
Wait for a set of styles to no longer be true.
ForStylesNot(params string[])
Wait for a set of styles to no longer be true. (Timeout = HtmlWait.Timeout)
Declaration
public void ForStylesNot(params string[] stylesNameValuePairs)
Parameters
stylesNameValuePairs
string[]
The styles name/value pairs
Example
ForStyles("backgroundColor=red","display=none")
ForVisible()
Wait for an element to be visible. HtmlControl.IsVisible is true. (Timeout = HtmlWait.Timeout)
Declaration
public void ForVisible()
ForVisible(int)
Wait for an element to be visible. HtmlControl.IsVisible is true.
Declaration
public void ForVisible(int timeout)
Parameters
timeout
The timeout to use.
ForVisibleNot()
Wait for an element to no longer be visible. HtmlControl.IsVisible is false. (Timeout = HtmlWait.Timeout)
Declaration
public void ForVisibleNot()
ForVisibleNot(int)
Wait for an element to no longer be visible. HtmlControl.IsVisible is false.
Declaration
public void ForVisibleNot(int timeout)
Parameters
timeout
The timeout to use