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)
Returns an error screenshot
File instance with the given file
name within the error screenshot directory. |
List<String> |
getReferenceImageFileNames(String referenceImageFileName,
org.openqa.selenium.Capabilities capabilities)
Returns the relative file names of reference images.
|
File |
getReferenceScreenshotFile(String referenceImageFileName)
Returns a reference screenshot
File instance with the given
file name within the reference screenshot directory. |
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 - file nameIOException - if reading the file failedpublic File getErrorScreenshotFile(String errorImageFileName)
File instance with the given file
name within the error screenshot directory. The file doesn't
necessarily exist yet in the file system after this method has been
called.errorImageFileName - name of the error screenshotpublic File getReferenceScreenshotFile(String referenceImageFileName)
File instance with the given
file name within the reference screenshot directory. The file doesn't
necessarily exist yet in the file system after this method has been
called.referenceImageFileName - name of the reference screenshotpublic List<String> getReferenceImageFileNames(String referenceImageFileName, org.openqa.selenium.Capabilities capabilities)
getReferenceScreenshotFile(String).referenceImageFileName - name of the reference screenshotcapabilities - browser capabilitiesCopyright © 2012-2025 Vaadin Ltd. All Rights Reserved.