Skip to content

Commit 4b93e2a

Browse files
authored
Update README.md
1 parent cd05c42 commit 4b93e2a

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

README.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,10 @@ Selenium Shutterbug is a utility library written in Java for making screenshots
99

1010
## Code Example
1111

12-
Screenshot of the page, saving to default location (./screenshots/):
13-
````
14-
Shutterbug.shootPage(driver).save();
15-
```
1612
Screenhot of the page with scrolling (for Chrome to make screenshot of the whole page but not viewport only):
1713
```
1814
Shutterbug.shootPage(driver, ScrollStrategy.BOTH_DIRECTIONS).save("C:\\testing\\screenshots\\");
1915
```
20-
Screenshot of the single element:
21-
```
22-
Shutterbug.shootElement(driver,element).save("C:\\testing\\screenshots\\");
23-
```
24-
2516
Highlighting, adding titles, text, etc:
2617
```
2718
Shutterbug.shootPage(driver)
@@ -35,14 +26,7 @@ Highlighting, adding titles, text, etc:
3526
.withThumbnail(0.7)
3627
.save("C:\\testing\\screenshots\\");
3728
```
38-
39-
Check if taken screenshot equals to another image with allowed deviation:
40-
41-
```
42-
Shutterbug.shootPage(driver).equals(otherImage,0.1);
43-
```
44-
45-
And even more...
29+
More examples [here](https://github.com/assertthat/selenium-shutterbug/wiki)
4630

4731
## Motivation
4832

0 commit comments

Comments
 (0)