The following API waits until the requested element satisfies a condition, or a timeout is reached:
bool WaitFor(Func<UIElementBase, bool> predicate, TimeSpan timeout) |
•predicate: The condition that the element should meet (in lambda expression or delegate)
•timeout: The timeout period, in the provided timespan
•return value: true if condition was satisfied; false if the timeout was reached
For example:
if (IExploreApp.WaitFor(delegate { return IExploreApp.searchConditionWebEditBox.Exists; }, TimeSpan.fromSeconds(5))) { ……………….. } |
The following sections list and describe web controls and binding attribute names for different types of web controls.
This binding attribute name is used to identify an edit class control for HTML:
|
This binding attribute name is used to identify a hyperlink:
|
This binding attribute name is used to identify a button for web:
|
This binding attribute name is used to identify a Combobox control:
|
This binding attribute name is used to identify a checkbox control:
|
This binding attribute name is used to identify a radio button:
|
This binding attribute name is used to perform click operations:
|
This binding attribute name is used to identify a webDiv control:
|
This binding attribute name is used to identify a webForm control:
|
This binding attribute name is used to identify a webFrame control:
|
This binding attribute name is used to identify a webSpan control:
|
This is an abstract base class for all web controls that can contain other controls. Controls inside this container can be accessed dynamically without first defining them in the Repository. This is useful when the content of the page is dynamic and the controls are accessed using coding.
|
This control represents the HTML table "<table>" tag. The control is very useful when showing repetitive occurrence of elements. The rows <tr> are represented using the WebTableRow class, and <td> is represented by WebTableCell.
|
This control contains an array of cells.
|
This control is a container. It can therefore host other controls dynamically. For example:
|