All Downloads are FREE. Search and download functionalities are using the official Maven repository.

at.willhaben.willtest.config.ScreenshotGenerator Maven / Gradle / Ivy

There is a newer version: 3.1.10
Show newest version
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