Class ImageProcessingActions

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

public class ImageProcessingActions extends Object
  • Method Details

    • compareImageFolders

      public static void compareImageFolders(String referenceFolderPath, String testFolderPath, double threshold)
    • highlightElementInScreenshot

      public static byte[] highlightElementInScreenshot(byte[] targetScreenshot, org.openqa.selenium.Rectangle elementLocation, Color highlightColor)
    • findImageWithinCurrentPage

      public static List<Integer> findImageWithinCurrentPage(String referenceImagePath, byte[] currentPageScreenshot)
    • formatElementLocatorToImagePath

      public static String formatElementLocatorToImagePath(org.openqa.selenium.By elementLocator)
    • getReferenceImage

      public static byte[] getReferenceImage(org.openqa.selenium.By elementLocator)
    • getShutterbugDifferencesImage

      public static byte[] getShutterbugDifferencesImage(org.openqa.selenium.By elementLocator)
    • compareAgainstBaseline

      public static Boolean compareAgainstBaseline(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, byte[] elementScreenshot, ImageProcessingActions.VisualValidationEngine visualValidationEngine)
    • loadOpenCV

      public static void loadOpenCV()