public class Photographer extends Object
| Constructor and Description |
|---|
Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory) |
Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory,
BlurLevel blurLevel) |
Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory,
ScreenshotProcessor screenshotProcessor) |
Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory,
ScreenshotProcessor screenshotProcessor,
BlurLevel blurLevel) |
Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory,
ScreenshotProcessor screenshotProcessor,
BlurLevel blurLevel,
EnvironmentVariables environmentVariables) |
| Modifier and Type | Method and Description |
|---|---|
protected File |
blur(File srcFile) |
protected boolean |
driverCanTakeSnapshots() |
com.google.common.base.Optional<BlurLevel> |
getBlurLevel() |
protected org.slf4j.Logger |
getLogger() |
protected ScreenshotProcessor |
getScreenshotProcessor() |
void |
setScreenshotProcessor(ScreenshotProcessor screenshotProcessor) |
com.google.common.base.Optional<File> |
takeScreenshot()
Take a screenshot of the current browser and store it in the output directory.
|
public Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory)
public Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory,
BlurLevel blurLevel)
public Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory,
ScreenshotProcessor screenshotProcessor)
public Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory,
ScreenshotProcessor screenshotProcessor,
BlurLevel blurLevel)
public Photographer(org.openqa.selenium.WebDriver driver,
File targetDirectory,
ScreenshotProcessor screenshotProcessor,
BlurLevel blurLevel,
EnvironmentVariables environmentVariables)
protected org.slf4j.Logger getLogger()
public com.google.common.base.Optional<BlurLevel> getBlurLevel()
public com.google.common.base.Optional<File> takeScreenshot()
protected File blur(File srcFile) throws IOException
IOExceptionprotected boolean driverCanTakeSnapshots()
public void setScreenshotProcessor(ScreenshotProcessor screenshotProcessor)
protected ScreenshotProcessor getScreenshotProcessor()
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.