I’m trying to figure out the best way to count elements on a page (search results) and how to fail the test if the count exceeds 25 results on page X (the test case:
- Perform a search
- Verify, that the search results on the search result page does not exceeds 25 results
I’ve defined my test object like this:
I’m a stranger to loop statements, and therefore I have not been able to make use of any of these statements: https://docs.katalon.com/katalon-studio/docs/statements.html#looping-statements
I know, that my question is lacking some details, but I have not started writing the code - in other words: I’m in need of some guidance here!