public interface ScreenshotHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIgnoredScreenshotCommand()
Get ignore screenshot command flag.
|
String |
takeScreenshot(String filename)
Take screenshot to filename.
|
String |
takeScreenshotAll(String prefix,
int index)
Take screenshot at all commands if --screenshot-all option specified.
|
String |
takeScreenshotOnFail(String prefix,
int index)
Take screenshot on fail commands if --screenshot-on-fail option specified.
|
boolean isIgnoredScreenshotCommand()
String takeScreenshot(String filename) throws UnsupportedOperationException
filename - filename.UnsupportedOperationException - WebDriver does not supoort capturing screenshot.String takeScreenshotAll(String prefix, int index)
prefix - prefix name.index - command index.Copyright © 2017. All rights reserved.