Package com.shaft.gui.internal.image
Class ImageProcessingActions
java.lang.Object
com.shaft.gui.internal.image.ImageProcessingActions
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean
compareAgainstBaseline
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, byte[] elementScreenshot, ImageProcessingActions.VisualValidationEngine visualValidationEngine) static void
compareImageFolders
(String referenceFolderPath, String testFolderPath, double threshold) findImageWithinCurrentPage
(String referenceImagePath, byte[] currentPageScreenshot) static String
formatElementLocatorToImagePath
(org.openqa.selenium.By elementLocator) static byte[]
getReferenceImage
(org.openqa.selenium.By elementLocator) static byte[]
getShutterbugDifferencesImage
(org.openqa.selenium.By elementLocator) static byte[]
highlightElementInScreenshot
(byte[] targetScreenshot, org.openqa.selenium.Rectangle elementLocation, Color highlightColor) static void
-
Method Details
-
compareImageFolders
-
highlightElementInScreenshot
public static byte[] highlightElementInScreenshot(byte[] targetScreenshot, org.openqa.selenium.Rectangle elementLocation, Color highlightColor) -
findImageWithinCurrentPage
-
formatElementLocatorToImagePath
-
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()
-