
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.
|
Screenshot |
takeScreenshot()
Takes screenshot in default format with random string as a name with file format extension.
|
Screenshot |
takeScreenshot(ScreenshotType type)
Takes screenshot in specified format.
|
Screenshot |
takeScreenshot(String fileName)
Takes screenshot of default file format with specified name.
|
Screenshot |
takeScreenshot(String fileName,
ScreenshotType type)
Takes screenshot of specified type which is saved under specified name
|
Screenshot takeScreenshot()
Screenshot takeScreenshot(ScreenshotType type)
type - type of screenshotScreenshot takeScreenshot(String fileName)
fileName - name of file without file format extensionScreenshot 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.