Skip to content

Using POM

Simon Sai edited this page Sep 26, 2024 · 15 revisions
  • Compared to common steps, steps within the Page Object Model (POM) are easier to maintain.
  • Here's how you can build a scenario using POM.
  1. Write your steps in business language: image

  2. Create HomePage class for google project image

  3. Create PageGenerator for google project image

  4. Create GoogleSearchSteps for feature search image

  5. Define your first step

  • In GoogleSearchSteps, define a step as shown below. image