Class ScreenshotManager

java.lang.Object
com.shaft.gui.internal.image.ScreenshotManager

public class ScreenshotManager extends Object
  • Constructor Details

    • ScreenshotManager

      public ScreenshotManager()
  • Method Details

    • takeScreenshot

      public List<Object> takeScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionName, boolean passFailStatus)
    • takeScreenshot

      public byte[] takeScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By targetElementLocator)
    • generateAttachmentFileName

      public String generateAttachmentFileName(String actionName)
    • prepareImageForReport

      public List<Object> prepareImageForReport(byte[] image, String actionName)
    • takeElementScreenshot

      public byte[] takeElementScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By targetElementLocator)
    • internalCaptureScreenshot

      public byte[] internalCaptureScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean isPass)