Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
automationscrip authored May 2, 2021
1 parent 34254ab commit 7b03018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ The first thing a framework should be able to handle is to launch the browser an
`src/main/java> quickstart.pages> GoogleSearchPage.java`

Each page class contains two components as below.
1. Locators are written as
1. Locators are written as below
```java
@FindBy(xpath="//div[@class='g']//h3/span")
WebElement firstResult;
```
2. Page class methods for tests steps
3. Page class constructor initializes the webelements through
3. Page class constructor sets the driver and initializes the webelements through
```java
PageFactory.initElements(driver, this);
```
Expand Down

0 comments on commit 7b03018

Please sign in to comment.