| Package | Description |
|---|---|
| com.assertthat.selenium_shutterbug.core |
| Modifier and Type | Method and Description |
|---|---|
PageSnapshot |
PageSnapshot.blur()
Blur the entire page.
|
PageSnapshot |
PageSnapshot.blur(org.openqa.selenium.WebElement element)
Blur provided element within the page only.
|
PageSnapshot |
PageSnapshot.blurExcept(org.openqa.selenium.WebElement element)
Blurs all the page except the element provided.
|
PageSnapshot |
PageSnapshot.cropAround(org.openqa.selenium.WebElement element,
int offsetX,
int offsetY)
Crop the image around specified element with offset.
|
PageSnapshot |
PageSnapshot.highlight(org.openqa.selenium.WebElement element)
Highlights WebElement within the page with Color.red
and line width 3.
|
PageSnapshot |
PageSnapshot.highlight(org.openqa.selenium.WebElement element,
Color color,
int lineWidth)
Highlights WebElement within the page with provided color
and line width.
|
PageSnapshot |
PageSnapshot.highlightWithText(org.openqa.selenium.WebElement element,
Color elementColor,
int lineWidth,
String text,
Color textColor,
Font textFont)
Highlight WebElement within the page, same as in
highlight(WebElement)
but providing ability to override default color, font values. |
PageSnapshot |
PageSnapshot.highlightWithText(org.openqa.selenium.WebElement element,
String text)
Highlight WebElement within the page (same as in
highlight(WebElement)}
and adding provided text above highlighted element. |
PageSnapshot |
PageSnapshot.monochrome(org.openqa.selenium.WebElement element)
Makes an element withing a page 'monochrome' - applies gray-and-white filter.
|
protected PageSnapshot |
PageSnapshot.self() |
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver)
Make screen shot of the viewport only.
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
boolean useDevicePixelRatio)
Make screen shot of the viewport only.
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
ScrollStrategy scroll)
To be used when screen shooting the page
and need to scroll while making screen shots, either vertically or
horizontally or both directions (Chrome).
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
ScrollStrategy scroll,
boolean useDevicePixelRatio)
To be used when screen shooting the page
and need to scroll while making screen shots, either vertically or
horizontally or both directions (Chrome).
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
ScrollStrategy scroll,
int betweenScrollTimeout)
To be used when screen shooting the page
and need to scroll while making screen shots, either vertically or
horizontally or both directions (Chrome).
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
ScrollStrategy scroll,
int betweenScrollTimeout,
boolean useDevicePixelRatio)
To be used when screen shooting the page
and need to scroll while making screen shots, either vertically or
horizontally or both directions (Chrome).
|
Copyright © 2020. All rights reserved.