Is there a way in a coded step to accomplish the ELSE clause below?
LOOP (10) Times
IF element not present
Refresh to see if element becomes present
ELSE
Coded step to set for iteration to max so no more loops occur (or break out through other means without erroring)
Is there a way with a coded step to accomplish the ELSE clause above? I would like to fast-forward the LOOP iteration to the end by overriding the current iteration value with 10 once the element exists? Because of the required refresh, I can't just wait for it to exist.
I have workable solutions with both LOOP and WHILE, but both have drawbacks. The FOR doesn't require coded steps (only a simple coded step if the above ELSE is possible) but fills the log with iterations that don't do anything. The WHILE stops once my condition is met and doesn't do the excessive logging but requires far more complicated coded steps. This approach would be hard for me to teach to our test writers who, for the most part, are not code developers.
Thank you.