Package at.willhaben.willtest.config
Class DefaultScreenshotGenerator
- java.lang.Object
-
- at.willhaben.willtest.config.DefaultScreenshotGenerator
-
- All Implemented Interfaces:
ScreenshotGenerator
public class DefaultScreenshotGenerator extends java.lang.Object implements ScreenshotGenerator
Takes a simple screenshot in case of an error. Only the viewport of the browser is captured.
-
-
Constructor Summary
Constructors Constructor Description DefaultScreenshotGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagetakeScreenshot(org.openqa.selenium.WebDriver webDriver)This method is called if an error occurred in the test.
-
-
-
Method Detail
-
takeScreenshot
public java.awt.image.BufferedImage takeScreenshot(org.openqa.selenium.WebDriver webDriver)
Description copied from interface:ScreenshotGeneratorThis method is called if an error occurred in the test.- Specified by:
takeScreenshotin interfaceScreenshotGenerator- Parameters:
webDriver-WebDriverto take the screenshot.- Returns:
- the image which is safed to the surefire-reports folder
-
-