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