Modern QA2026Practical Exercise — tiles
Log inJoin
33 / 80 · 12 Programming for QA · OOP for Testing← prev⊞ allnext →☰ Read as one page

4.7Practical Exercise

Build a page object framework for a simple e-commerce site:

  1. Create a BasePage with common utilities (wait, scroll, screenshot)
  2. Create a NavigationComponent used across multiple pages
  3. Create ProductListPage and CartPage using composition
  4. Write 3 tests that use your page objects without any locators in the test file
  5. Refactor: change a locator in a page object and verify no tests need updating