at.willhaben.willtest.config.ScreenshotGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core classes with as few dependencies as possible
package at.willhaben.willtest.config;
import org.openqa.selenium.WebDriver;
import java.awt.image.BufferedImage;
/**
* Allows to use a custom screenshot library or to implement own screenshot behaviour.
*/
public interface ScreenshotGenerator {
/**
* This method is called if an error occurred in the test.
* @param webDriver {@link WebDriver} to take the screenshot.
* @return the image which is safed to the surefire-reports folder
*/
BufferedImage takeScreenshot(WebDriver webDriver);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy