Sauce Labs Automated Testing Mythbusters - Sleeps Are Not The Answer

Watch Solutions Architect Neil Manvar as he busts the myth about using sleeps versus explicit and implicit waits in your Selenium test scripts.

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.

Topics

Automated testingCross browserSeleniumContinuous testing