-
Notifications
You must be signed in to change notification settings - Fork 1
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.
-
Write your steps in business language:
-
Create
HomePage
class for google project -
Create
PageGenerator
for google project -
Create
GoogleSearchSteps
for feature search -
Define your first step
- In
GoogleSearchSteps
, define a step as shown below.