public class ScreenshotTaker extends Object
Allows taking a png screenshot and the HTML source of the page.
Files are saved in a file in the maven base dir/target, and fallback on the the system temp folder if can't find it.
This temp file won't be deleted on exist.
| Modifier and Type | Field and Description | 
|---|---|
protected String | 
targetDirName  | 
| Constructor and Description | 
|---|
ScreenshotTaker()  | 
ScreenshotTaker(String targetDirName)  | 
| Modifier and Type | Method and Description | 
|---|---|
File | 
dumpPageSource(org.openqa.selenium.WebDriver driver,
              String filename)  | 
File | 
takeScreenshot(org.openqa.selenium.WebDriver driver,
              String filename)  | 
protected final String targetDirName
public ScreenshotTaker()
public ScreenshotTaker(String targetDirName)
public File takeScreenshot(org.openqa.selenium.WebDriver driver, String filename)
public File dumpPageSource(org.openqa.selenium.WebDriver driver, String filename)
Copyright © 2019 Nuxeo. All rights reserved.