Files
java-design-patterns/page-object
MohanaRao SV adb0e25c2f refactor: Fix for maven warnings (#2157)
* fix for maven warnings

* Removed unwanted dependency and htmlunit upgraded to latest

Co-authored-by: Mohana Rao S V <mohana.rao.s.v@tietoevry.com>
2022-10-30 18:51:17 +02:00
..
2019-12-07 18:03:49 +02:00

title, category, language, tags
title category language tags
Page Object Structural en
Decoupling

Intent

Page Object encapsulates the UI, hiding the underlying UI widgetry of an application (commonly a web application) and providing an application-specific API to allow the manipulation of UI components required for tests. In doing so, it allows the test class itself to focus on the test logic instead.

Class diagram

alt text

Applicability

Use the Page Object pattern when

  • You are writing automated tests for your web application and you want to separate the UI manipulation required for the tests from the actual test logic.
  • Make your tests less brittle, and more readable and robust

Credits