Flaky No More: Find the Right Framework for Your Selenium TestsNew
Selenium has an industry reputation of being a flaky tool where individual tests pass, then fail—sometimes with no production changes at all. Such flakiness in your test suites can be extremely difficult, time-consuming, and frustrating to debug. The vast majority of these issues come from using either bad locators or bad wait conditions. Both of these root causes can be addressed by implementing the right framework for your Selenium tests. Craig Schwarzwald shares the most important concepts in creating a more reliable Selenium framework, such as using a base page object that wraps core Selenium methods, creating a single place to perform logging and error-handling, and implementing explicit waits. Craig discusses these and other tips that will solve nearly all Selenium flakiness issues in your test suites, while also making your tests easier to create, read, and maintain over the long term.