Page Object Template

Learn how to set up the page object class that contains the page URL, title, and locators.

All interactions with the site pages happen in page object classes.

For each web page that is used in the test, a page object class is needed.

We will use a HomePage class for the Home Page and a ResultsPage class for the Results Page.

Both page object classes follow the same template.

Get hands-on with 1400+ tech skills courses.