
public interface Screenshooter
| Modifier and Type | Method and Description |
|---|---|
void |
setScreenshotTargetDir(String screenshotTargetDir)
Sets a directory where all taken screenshots will be saved from now on.
|
void |
setScreensthotImageFormat(ScreenshotType type)
Sets the format of images to take.
|
File |
takeScreenshot()
Takes screenshot in default format with random string as a name with file format extension.
|
File |
takeScreenshot(ScreenshotType type)
Takes screenshot in specified format.
|
File |
takeScreenshot(String fileName)
Takes screenshot of default file format with specified name.
|
File |
takeScreenshot(String fileName,
ScreenshotType type)
Takes screenshot of specified type which is saved under specified name
|
File takeScreenshot()
File takeScreenshot(ScreenshotType type)
type - type of screenshotFile takeScreenshot(String fileName)
fileName - name of file without file format extensionFile takeScreenshot(String fileName, ScreenshotType type)
fileName - name of file without file format extensiontype - type of screenshot requiredvoid setScreenshotTargetDir(String screenshotTargetDir)
screenshotTargetDir - directory to save screenshots toIllegalArgumentException - if screenshotTargetDir is null, empty or does not represents existing and
writable directoryvoid setScreensthotImageFormat(ScreenshotType type)
type - type of screenshots to take from now onCopyright © 2013 JBoss by Red Hat. All Rights Reserved.