public class ImageFileUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ImageFileUtil.ImageFileUtilImpl |
Constructor and Description |
---|
ImageFileUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
createScreenshotDirectoriesIfNeeded()
Creates all directories used to store screenshots unless they already
exist.
|
static File |
getErrorScreenshotFile(String errorImageFileName) |
static List<String> |
getReferenceImageFileNames(String referenceImageFileName,
org.openqa.selenium.Capabilities capabilities)
Returns the relative file names of reference images.
|
static File |
getReferenceScreenshotFile(String referenceImageFileName) |
static String |
getScreenshotErrorDirectory()
Returns the directory used for screenshot error images.
|
static String |
getScreenshotReferenceDirectory()
Returns the directory used for screenshot references.
|
static BufferedImage |
readReferenceImage(String referenceImageFileName)
Reads the given reference image into a BufferedImage
|
public static String getScreenshotReferenceDirectory()
public static String getScreenshotErrorDirectory()
public static void createScreenshotDirectoriesIfNeeded()
public static BufferedImage readReferenceImage(String referenceImageFileName) throws IOException
referenceImageFileName
- IOException
public static File getReferenceScreenshotFile(String referenceImageFileName)
public static List<String> getReferenceImageFileNames(String referenceImageFileName, org.openqa.selenium.Capabilities capabilities)
getReferenceScreenshotFile(String)
.referenceImageFileName
- capabilities
- Copyright © 2018. All rights reserved.