Package at.willhaben.willtest.config
Class DefaultScreenshotProvider
- java.lang.Object
-
- at.willhaben.willtest.config.DefaultScreenshotProvider
-
- All Implemented Interfaces:
ScreenshotProvider
public class DefaultScreenshotProvider extends java.lang.Object implements ScreenshotProvider
Takes a simple screenshot in case of an error. Only the viewport of the browser is captured.
-
-
Constructor Summary
Constructors Constructor Description DefaultScreenshotProvider()
-
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:ScreenshotProviderThis method is called if an error occurred in the test.- Specified by:
takeScreenshotin interfaceScreenshotProvider- Parameters:
webDriver-WebDriverto take the screenshot.- Returns:
- the image which is safed to the surefire-reports folder
-
-