Package org.fluentlenium.core.snapshot
Interface SnapshotControl
-
- All Known Subinterfaces:
FluentControl,FluentPageControl
- All Known Implementing Classes:
BaseFluentHook,BaseHook,ContainerFluentControl,DefaultFluentContainer,FluentAdapter,FluentControlImpl,FluentDriver,FluentPage,FluentStandalone,FluentStandaloneRunnable,FluentTestRunnerAdapter,FluentWebElement,IsolatedTest,WaitHook
public interface SnapshotControlControl interface for Screenshot and HTML Dumps.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanTakeScreenShot()Check if underlyingWebDrivercan take screenshot.voidtakeHtmlDump()Take a html dump of the browser DOM.voidtakeHtmlDump(java.lang.String fileName)Take a html dump of the browser DOM into a file given by the fileName param.voidtakeScreenshot()Take a snapshot of the browser.voidtakeScreenshot(java.lang.String fileName)Take a snapshot of the browser into a file given by the fileName param.
-
-
-
Method Detail
-
takeHtmlDump
void takeHtmlDump()
Take a html dump of the browser DOM. By default the file will be a html named by the current timestamp.
-
takeHtmlDump
void takeHtmlDump(java.lang.String fileName)
Take a html dump of the browser DOM into a file given by the fileName param.- Parameters:
fileName- file name for html dump
-
canTakeScreenShot
boolean canTakeScreenShot()
Check if underlyingWebDrivercan take screenshot.- Returns:
- true if screenshot can be taken, false otherwise
-
takeScreenshot
void takeScreenshot()
Take a snapshot of the browser. By default the file will be a png named by the current timestamp.
-
takeScreenshot
void takeScreenshot(java.lang.String fileName)
Take a snapshot of the browser into a file given by the fileName param.- Parameters:
fileName- file name for screenshot
-
-