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.
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) |
public ScreenshotTaker()
public ScreenshotTaker(String targetDirName)
Copyright © 2015 Nuxeo SA. All rights reserved.