Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GannaChernyshova authored Jan 9, 2020
1 parent 91a4550 commit 9d48769
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ for Maven projects:
<dependency>
<groupId>com.epam.healenium</groupId>
<artifactId>healenium-web</artifactId>
<version>2.0</version>
<version>2.0.2</version>
</dependency>
```

Expand Down Expand Up @@ -86,13 +86,11 @@ Also you could set configs via -D or System properties, for example to turn off

### 2. Locating elements
### Simply use standard By/@FindBy to locate your elements
```diff
- From version 2.0.2 Healium supports either standart By/@FindBy or PageAwareBy/@PageAwareFindBy usage for healing.)
```
![#f03c15](https://placehold.it/15/f03c15/000000?text=+) From version **2.0.2** Healium supports either standart **By/@FindBy** or **PageAwareBy/@PageAwareFindBy** usage for healing.

In 2.0.1 and earlier healing will work only for elements that are declared using PageAwareBy/@PageAwareFindBy
![#1589F0](https://placehold.it/15/1589F0/000000?text=+) In **2.0.1** and earlier healing will work only for elements that are declared using **PageAwareBy/@PageAwareFindBy**

### Using PageAwareBy.by instead of By to locate your elements in 2.0.1 and earlier
#### Using PageAwareBy.by instead of By to locate your elements in 2.0.1 and earlier
```By buttonBy = PageAwareBy.by("MainPage", By.id(testButtonId));```

* where the first argument "MainPage" is the name of the page to which the WebElement belongs.
Expand All @@ -103,7 +101,7 @@ Then you can simply call findElement() method as usual
Or use the shorter form
```driver.findElement(PageAwareBy.by("MainPage", By.id(testButtonId))).click();```

### Using @PageAwareFindBy instead of @FindBy to locate your elements in 2.0.1 and earlier
#### Using @PageAwareFindBy instead of @FindBy to locate your elements in 2.0.1 and earlier

```
@PageAwareFindBy(page="MainPage", findBy = @FindBy(id = "markup-generation-button"))
Expand Down

0 comments on commit 9d48769

Please sign in to comment.