Class LayoutCheck
- java.lang.Object
-
- eu.tsystems.mms.tic.testframework.layout.LayoutCheck
-
- All Implemented Interfaces:
eu.tsystems.mms.tic.testframework.common.PropertyManagerProvider
public final class LayoutCheck extends java.lang.Object implements eu.tsystems.mms.tic.testframework.common.PropertyManagerProviderUtility class for handling layout checking screenshots.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLayoutCheck.MatchStepstatic classLayoutCheck.Properties
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertScreenshot(org.openqa.selenium.WebDriver webDriver, java.lang.String targetImageName, double confidenceThreshold)static java.nio.file.PathgetDir(java.lang.String basePath)static LayoutCheck.MatchStepmatchPixels(java.io.File screenshot, java.lang.String targetImageName)static LayoutCheck.MatchStepmatchPixels(org.openqa.selenium.TakesScreenshot takesScreenshot, java.lang.String targetImageName)Matches image pixels and returns an absolute distance valuestatic voidtoReport(LayoutCheck.MatchStep step)
-
-
-
Method Detail
-
getDir
public static java.nio.file.Path getDir(java.lang.String basePath)
-
matchPixels
public static LayoutCheck.MatchStep matchPixels(org.openqa.selenium.TakesScreenshot takesScreenshot, java.lang.String targetImageName)
Matches image pixels and returns an absolute distance value
-
matchPixels
public static LayoutCheck.MatchStep matchPixels(java.io.File screenshot, java.lang.String targetImageName)
-
toReport
public static void toReport(LayoutCheck.MatchStep step)
-
assertScreenshot
public static void assertScreenshot(org.openqa.selenium.WebDriver webDriver, java.lang.String targetImageName, double confidenceThreshold)
-
-