Skip to content

Commit 20df8ab

Browse files
committed
U
1 parent 7a9f953 commit 20df8ab

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ Shutterbug.shootElement(driver,element).save("C:\\testing\\screenshots\\");
2323
2424
Highlighting, adding titles, text, etc:
2525
```
26-
Shutterbug.shootPage(driver, ScrollStrategy.BOTH_DIRECTIONS)
27-
.highlight(element)
28-
.blur()
29-
.highlightWithText(otherElement, "This is element I was searching for")
30-
.monochrome()
31-
.withTitle("Home page screensho")
26+
Shutterbug.shootPage(driver)
27+
.blur(searchBox)
28+
.highlight(searchBtn)
29+
.monochrome(googleLogo)
30+
.highlightWithText(googleLogo, Color.blue, 3, "Monochromed logo",Color.blue, new Font("SansSerif", Font.BOLD, 20))
31+
.highlightWithText(searchBox, "Blurred secret words")
32+
.withTitle("Google home page - " + new Date())
3233
.withName("home_page")
33-
.withThumbnail(0.4).save("C:\\testing\\screenshots\\");
34+
.withThumbnail(0.7)
35+
.save("C:\\testing\\screenshots\\");
3436
```
3537
3638
Check if taken screenshot equals to another image with allowed deviation:

0 commit comments

Comments
 (0)