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 don't want a test to lose the ability to fail because somebody updated a page object and removed an assertion that shouldn...