Page Object Model

In the last chapter, you learned how to write automation scripts that allow you to control the various load times of elements on a web page. Now that you know how to use Selenium and a test framework, you can easily create hundreds of unstructured tests. However, in an application, automation code is as important as production code, and the appropriate patterns and standards should be used.

The Page Object Model is a well-known pattern that introduces a middle layer to tests, which can help to reduce code duplication and make the code easier to understand. In the Page Object Model, low-level implementation details are hidden.

In this chapter, the you will learn how to model tests that better reflect the tested web application.

By the end of this chapter, you will be able to:

  • Explain the principles behind the Page Object Model
  • Model a test automation script by implementing the Page Object Model
  • Implement nested page object instances
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.187.233