Package jp.vmi.selenium.selenese
Interface ScreenshotHandler
- All Known Implementing Classes:
Runner
public interface ScreenshotHandler
Handle screenshot.
-
Method Summary
Modifier and Type Method Description booleanisIgnoredScreenshotCommand()Get ignore screenshot command flag.StringtakeEntirePageScreenshot(String filename)Take entire page screenshot to filename.StringtakeScreenshot(String filename)Take screenshot to filename.StringtakeScreenshotAll(String prefix, int index)Take screenshot at all commands if --screenshot-all option specified.StringtakeScreenshotOnFail(String prefix, int index)Take screenshot on fail commands if --screenshot-on-fail option specified.
-
Method Details
-
isIgnoredScreenshotCommand
boolean isIgnoredScreenshotCommand()Get ignore screenshot command flag.- Returns:
- flag to ignore "captureEntirePageScreenshot"
-
takeEntirePageScreenshot
Take entire page screenshot to filename. (override directory if --screenshot-dir option specified)- Parameters:
filename- filename.- Returns:
- screenshot image path.
- Throws:
UnsupportedOperationException- WebDriver does not supoort capturing screenshot.
-
takeScreenshot
Take screenshot to filename. (override directory if --screenshot-dir option specified)- Parameters:
filename- filename.- Returns:
- screenshot image path.
- Throws:
UnsupportedOperationException- WebDriver does not supoort capturing screenshot.
-
takeScreenshotAll
Take screenshot at all commands if --screenshot-all option specified.- Parameters:
prefix- prefix name.index- command index.- Returns:
- screenshot image path.
-
takeScreenshotOnFail
Take screenshot on fail commands if --screenshot-on-fail option specified.- Parameters:
prefix- prefix name.index- command index.- Returns:
- screenshot image path.
-