Skip to content

Commit

Permalink
docs: update page object
Browse files Browse the repository at this point in the history
  • Loading branch information
iluwatar committed May 26, 2024
1 parent eb6da73 commit 15b916a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions page-object/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ The Page Object design pattern is a popular design pattern in test automation. I
Let's consider a simple programmatic example of the Page Object pattern for a login page using Selenium in Java:

```java
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class LoginPage {
private final WebDriver driver;

Expand Down Expand Up @@ -85,10 +81,6 @@ In this example, the `LoginPage` class represents the login page of a web applic

This Page Object can be used in test scripts to interact with the login page without exposing the details of the page structure in the test code, promoting maintainability and reusability.

## Class diagram

![Page Object](./etc/page-object.png "Page Object")

## Applicability

Use the Page Object pattern when
Expand Down Expand Up @@ -129,5 +121,5 @@ Trade-offs:
* [Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation](https://amzn.to/4bjhTSK)
* [Selenium Design Patterns and Best Practices](https://amzn.to/4aofYv8)
* [Selenium Testing Tools Cookbook](https://amzn.to/3K1QxEN)
* [Page Object - Martin Fowler](http://martinfowler.com/bliki/PageObject.html)
* [Page Objects - Selenium](https://github.com/SeleniumHQ/selenium/wiki/PageObjects)
* [Page Object (Martin Fowler)](http://martinfowler.com/bliki/PageObject.html)
* [Page Objects (Selenium)](https://github.com/SeleniumHQ/selenium/wiki/PageObjects)

0 comments on commit 15b916a

Please sign in to comment.