Skip to content

Commit 08616b9

Browse files
authored
Update README
1 parent 7dc9f73 commit 08616b9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
## Synopsis
66

7-
Selenium Shutterbug is a utility library make screenshots using [Selenium WebDriver](http://www.seleniumhq.org/projects/webdriver/ "SeleniumHQ WebDriver page") and further customize, compare and process them with the help of [Java AWT](https://en.wikipedia.org/wiki/Abstract_Window_Toolkit "AWT wiki").
7+
Selenium Shutterbug is a utility library for making screenshots using [Selenium WebDriver](http://www.seleniumhq.org/projects/webdriver/ "SeleniumHQ WebDriver page") and further customizing, comparing and procesings them with the help of [Java AWT](https://en.wikipedia.org/wiki/Abstract_Window_Toolkit "AWT wiki").
88

99
## Code Example
1010

1111
Screenshot of the page, saving to default location (./screenshots/):
1212
````
1313
Shutterbug.shootPage(driver).save();
1414
```
15-
Screenhot of the page with scrolling (for chrome to make screenshot of the whole page but not viewport only):
15+
Screenhot of the page with scrolling (for Chrome to make screenshot of the whole page but not viewport only):
1616
```
1717
Shutterbug.shootPage(driver, ScrollStrategy.BOTH_DIRECTIONS).save("C:\\testing\\screenshots\\");
1818
```
@@ -33,11 +33,17 @@ Shutterbug.shootPage(driver, ScrollStrategy.BOTH_DIRECTIONS)
3333
.withThumbnail(0.4).save("C:\\testing\\screenshots\\");
3434
```
3535
36-
And much more...
36+
Check if taken screenshot equals to another image with allowed deviation:
37+
38+
```
39+
Shutterbug.shootPage(driver).equals(otherImage,0.1);
40+
```
41+
42+
And even more...
3743
3844
## Motivation
3945
40-
The idea behing the project is to make testers life easier by enabling them to create descriptive screenshots which, in some cases, could be directly attached to the bug reports or serve as a source of information about system state at a specific time.
46+
The idea behing the project is to make testers life easier by enabling them to create descriptive screenshots which, in some cases, could be directly attached to the bug reports or serve as a source of information about system state at a specific moment of time.
4147
4248
## Installation
4349

0 commit comments

Comments
 (0)