A condition is an expression that returns true or false when evaluated. Conditions are used in various ways in testcases, such as verification and completion conditions.
When a condition is created, it will look something like:
There are two basic classes of conditions:
The example above is an element state condition – it will locate an element and return true if the element is visible.
Comparison conditions check two values for equality, contains, and Regular Expression matches. The two values can be any of the supported data sources.