Summary

In this chapter, we added two new tests to our test suite. In order to do that, we had to first learn some advanced techniques of locating elements on the page; no matter how complicated the website might be, we can now test it! By the end of the chapter, we had two tests that heavily depended on each other; we watched them crash and burn at the slightest problem. We then analyzed the shortcomings of the Spaghetti pattern and briefly talked about the two related anti-patterns: the Chain Linked pattern and the Big Ball of Mud.

In the next chapter, we will refactor our test suite to dry out our code. We will make our tests more independent and stable by decoupling them from the implementation details and each other.

Get Selenium Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.