Wait commands doesn't wait enough time

Not really, no. The problem here is:

You have not described clearly what your website is meant to be doing. It’s possible to infer what it might be doing from some of what you said, but I would be as likely to hinder you as help you. Please, write out a clear paragraph describing how the site is meant to behave.

With that said, I’m guessing you don’t need the loop. Clicking TO_2 causes a page (or section of a page) to load wherein TO_1 resides. Once TO_1 is present then your test (not shown) is meant to proceed - correct?

Statements:

FailureHandling works.
waitFor* APIs work.

Your logic though is still under question.

Follow the advice I gave here, then perhaps we can help you:

1 Like