Comparison Types
All of the available comparison types for checks in DoesQA
Basic
Has Any Value
Checks that the element has any value, this can be text, number, or selection.
Equals
Checks that the value of the element matches exactly the input.
Contains
If the provided element has any text that contains the input given.
Starts With
Explicitly checks for the value to start with the input value ( eg "Hello World" starts with "Hello" and not "hello" ).
Ends With
Explicitly checks for the value to end with the input value ( eg "Hello World" ends with "World" and not "world" ).
Negative
Has No Value
Passes the step of the provided element does not contain any value.
Doesn't Equal
Checks that the provided element and prompt do not match.
Doesn't Contain
Asserts if the provided element does not contain the input parameter.
Doesn't Start With
Checks if the provided output from the element does not start with the input.
Doesn't End With
Checks if the provided output from the element does not end with the input.
Numbers
Is Greater Than
Asserts that the number is greater than the input.
Is Greater Than or Equal To
Asserts that the number is greater than or equal to the input.
Is Less Than
Asserts that the number is less than the input.
Is Less Than or Equal To
Asserts that the number is less than or equal to the input.
Advanced
Custom Regex
Use a custom regex, this should evaluate to true for it to work`
If you had "Some Element Text" you could insensitively check for /some element text/i
in the custom regex.
Last updated