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) |
Copyright © 2019 Nuxeo SA. All rights reserved.