Class ScreenshotProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createScreenshot​(org.junit.jupiter.api.extension.ExtensionContext context, org.openqa.selenium.WebDriver driver)  
      void onFailure​(org.junit.jupiter.api.extension.ExtensionContext context, org.openqa.selenium.WebDriver driver, java.lang.Throwable throwable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScreenshotProvider

        public ScreenshotProvider()
    • Method Detail

      • onFailure

        public void onFailure​(org.junit.jupiter.api.extension.ExtensionContext context,
                              org.openqa.selenium.WebDriver driver,
                              java.lang.Throwable throwable)
                       throws java.lang.Throwable
        Specified by:
        onFailure in interface FailureListener
        Throws:
        java.lang.Throwable
      • createScreenshot

        public void createScreenshot​(org.junit.jupiter.api.extension.ExtensionContext context,
                                     org.openqa.selenium.WebDriver driver)
                              throws java.lang.Throwable
        Throws:
        java.lang.Throwable