Book Image

Selenium Design Patterns and Best Practices

By : Dima Kovalenko
Book Image

Selenium Design Patterns and Best Practices

By: Dima Kovalenko

Overview of this book

Table of Contents (18 chapters)
Selenium Design Patterns and Best Practices
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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.