Ready for another myth in our automated testing mythbuster series?
Myth #3: Using sleeps is better than using explicit or implicit waits in your test.
Sleeps are not the answer. Using sleeps will result in unreliable tests that will likely fail due to timing issues and won’t pass in all the browsers.
Instead use explicit waits to wait for a condition, wait for it, then proceed with the next action of your tests.