Certification: AI-driven Test Automation
Your Progress: out of 26
Cycles / Loops
click "Next" until page contains stored value "previously generated id"
click "Next" up to 12 times until page contains strictly button "Place order"
Loops with scrolls
scroll down until page contains "something" scroll down on "text" up to 10 times until page contains "text" // scrolls on the position on the screen, not the text itself scroll up/down on a "container"
- Click using OCR (not OCR only)
- Use manual scroll (drag the scroll bar with the mouse, or click the down arrow until the element is visible using OCR only)
Loops with dynamic waits
A good practice is to make sure that dynamic waits are used as little as possible. However, sometimes you might need to use longer wait times if you know that your platform is slow-ish.
wait 5 sec until page contains "text" wait 5 sec up to 12 times until page contains "text"
In this case, testRigor will check for the element to appear every 5 seconds (up to a minute total), and move to the next step once this criteria is satisfied.
scroll down wait 2 sec
scroll and wait until page contains "Social and Cultural Anthropology"
Keep in mind, the entire loop should happen before the check, otherwise testRigor won’t detect it (for example, if the loop scrolls through the book, and then scrolls past it).