June 2018
Beginner to intermediate
376 pages
8h 58m
English
At the end of the day, it really doesn't matter. Use the option that you find most comfortable and is the best fit for your particular set of problems. The rest of the examples in this book will however be using the Query object.
What is more important to remember is that when using page objects, our page objects are going to abstract away all of the heavy work of actually driving the browser. Things that we want to check should be in our tests.
This separation of concerns has two benefits. First of all, it ensures that people do not inadvertently bring assertions into their tests when they don't mean to. Secondly, it means that your tests do not depend upon specific implementations in your page objects. You ...
Read now
Unlock full access