ClassWait
Provide wait functionality for an Element object.
Definition
Namespace:ArtOfTest.WebAii.Synchronization
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class Wait
Inheritance: objectWait
Derived Classes:
Properties
Methods
ForAttributes(int, params string[])
Wait for a set of attributes on this element.
ForAttributes(params string[])
Wait for a set of attributes on this element. (Timeout = Wait.Timeout)
Declaration
public void ForAttributes(params string[] attributesNameValuePairs)
Parameters
attributesNameValuePairs
string[]
The attributes name/value pairs
Example
Wait.ForAttribute("src=~foo.png","foo=bar")
ForAttributesNot(int, params string[])
Wait for a set of attributes to no longer be true.
ForAttributesNot(params string[])
Wait for a set of attributes to no longer be true. (Timeout = Wait.Timeout)
Declaration
public void ForAttributesNot(params string[] attributeNameValuePairs)
Parameters
attributeNameValuePairs
string[]
The attributes name/value pairs
ForCondition(Func<Element, object, bool>, bool, object, int)
Wait for a custom condition on this element.
Declaration
public void ForCondition(Func<Element, 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.
ForCondition(Func<Element, object, bool>, bool, object, int, WaitResultType)
Declaration
public void ForCondition(Func<Element, object, bool> condition, bool invertCondition, object custom, int timeout, WaitResultType errorResultType)
Parameters
condition
invertCondition
custom
timeout
errorResultType
ForContent(FindContentType, string)
Wait for certain content of this element to be true. (Timeout = Wait.Timeout)
Declaration
public void ForContent(FindContentType type, string value)
Parameters
type
The content type to wait for.
value
The content values to wait for. Value can be (p:partialvalue,l:liternal,x:regex)
ForContent(FindContentType, string, int)
Wait for certain content of this element to be true.
Declaration
public void ForContent(FindContentType type, string value, int timeout)
Parameters
type
The content type to wait for.
value
The content values to wait for. Value can be (p:partialvalue,l:liternal,x:regex)
timeout
The time out to wait for.
ForContentNot(FindContentType, string)
Wait for certain content of this element to no longer be true. (Timeout = Wait.Timeout)
Declaration
public void ForContentNot(FindContentType type, string value)
Parameters
type
The content type to wait for.
value
The content values to wait for. Value can be (p:partialvalue,l:liternal,x:regex)
ForContentNot(FindContentType, string, int)
Wait for certain content of this element to no longer be true.
Declaration
public void ForContentNot(FindContentType type, string value, int timeout)
Parameters
type
The content type to wait for.
value
The content values to wait for. Value can be (p:partialvalue,l:liternal,x:regex)
timeout
The time out to wait for.
ForExists()
Wait for this element to exist in the DOM.
Declaration
public void ForExists()
ForExists(int)
Wait for this element to exist in the DOM.
Declaration
public void ForExists(int timeout)
Parameters
timeout
Wait timeout.
ForExists(int, bool)
Wait for an element and decide on whether to refresh the element.
ForExistsNot()
Wait for this element not to exist in the DOM
Declaration
public void ForExistsNot()
ForExistsNot(int)
Wait for this element not to exist in the DOM.
Declaration
public void ForExistsNot(int timeout)
Parameters
timeout
Wait timeout