| 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.shootFrame(org.openqa.selenium.WebDriver driver,
String frameId)
To be used when screenshotting the frame
Takes full frame screenshot be default
|
static PageSnapshot |
Shutterbug.shootFrame(org.openqa.selenium.WebDriver driver,
String frameId,
Capture capture)
To be used when screenshotting the frame
and need to scroll while making screenshots, either vertically or
horizontally or both directions.
|
static PageSnapshot |
Shutterbug.shootFrame(org.openqa.selenium.WebDriver driver,
String frameId,
Capture capture,
boolean useDevicePixelRatio)
To be used when screenshotting the frame
and need to scroll while making screenshots, either vertically or
horizontally or both directions.
|
static PageSnapshot |
Shutterbug.shootFrame(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement frame,
Capture capture)
To be used when screenshotting the frame
and need to scroll while making screenshots, either vertically or
horizontally or both directions.
|
static PageSnapshot |
Shutterbug.shootFrame(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement frame,
Capture capture,
boolean useDevicePixelRatio)
To be used when screenshotting the frame
and need to scroll while making screenshots, either vertically or
horizontally or both directions.
|
static PageSnapshot |
Shutterbug.shootFrame(org.openqa.selenium.WebDriver driver,
org.openqa.selenium.WebElement frame,
Capture capture,
int betweenScrollTimeout,
boolean useDevicePixelRatio)
To be used when screenshotting the frame
and need to scroll while making screenshots, either vertically or
horizontally or both directions.
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver)
Make screenshot of the viewport only.
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
boolean useDevicePixelRatio)
Make screenshot of the viewport only.
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
Capture capture)
To be used when screenshotting the page
and need to scroll while making screenshots, either vertically or
horizontally or both directions.
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
Capture capture,
boolean useDevicePixelRatio)
To be used when screenshotting the page
and need to scroll while making screenshots, either vertically or
horizontally or both directions.
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
Capture capture,
int betweenScrollTimeout)
To be used when screenshotting the page
and need to scroll while making screenshots, either vertically or
horizontally or both directions.
|
static PageSnapshot |
Shutterbug.shootPage(org.openqa.selenium.WebDriver driver,
Capture capture,
int betweenScrollTimeout,
boolean useDevicePixelRatio)
To be used when screenshotting the page
and need to scroll while making screenshots, either vertically or
horizontally or both directions (Chrome).
|
Copyright © 2020. All rights reserved.