Interface ScreenshotProvider

  • All Known Implementing Classes:
    DefaultScreenshotProvider

    public interface ScreenshotProvider
    Allows to use a custom screenshot library or to implement own screenshot behaviour.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage takeScreenshot​(org.openqa.selenium.WebDriver webDriver)
      This method is called if an error occurred in the test.
    • Method Detail

      • takeScreenshot

        java.awt.image.BufferedImage takeScreenshot​(org.openqa.selenium.WebDriver webDriver)
        This method is called if an error occurred in the test.
        Parameters:
        webDriver - WebDriver to take the screenshot.
        Returns:
        the image which is safed to the surefire-reports folder