Package io.fluentlenium.core.snapshot
Interface SnapshotControl
- All Known Subinterfaces:
FluentControl,FluentPageControl,IFluentAdapter
- All Known Implementing Classes:
BaseFluentHook,BaseHook,ContainerFluentControl,DefaultFluentContainer,FluentAdapter,FluentControlImpl,FluentDriver,FluentPage,FluentStandalone,FluentStandaloneRunnable,FluentTestRunnerAdapter,FluentWebElement,IsolatedTest,WaitHook
public interface SnapshotControl
Control interface for Screenshot and HTML Dumps.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if underlyingWebDrivercan take screenshot.voidTake a html dump of the browser DOM.voidtakeHtmlDump(String fileName) Take a html dump of the browser DOM into a file given by the fileName param.Take a snapshot of the browser.takeScreenshot(String fileName) Take a snapshot of the browser into a file given by the fileName param.
-
Method Details
-
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
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
File takeScreenshot()Take a snapshot of the browser. By default the file will be a png named by the current timestamp.- Returns:
- the screenshot file
-
takeScreenshot
Take a snapshot of the browser into a file given by the fileName param.- Parameters:
fileName- file name for screenshot- Returns:
- the screenshot file
-