public class ScreenshotTestRule extends Object implements org.junit.rules.TestRule
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_OUTPUT_FOLDER |
protected org.openqa.selenium.WebDriver |
driver |
protected String |
outputFolder |
| Constructor and Description |
|---|
ScreenshotTestRule(org.openqa.selenium.WebDriver driver) |
ScreenshotTestRule(org.openqa.selenium.WebDriver driver,
String outputFolder) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
public static final String DEFAULT_OUTPUT_FOLDER
protected org.openqa.selenium.WebDriver driver
protected String outputFolder
public ScreenshotTestRule(org.openqa.selenium.WebDriver driver)
driver - the WebDriver instance used in the testspublic ScreenshotTestRule(org.openqa.selenium.WebDriver driver,
String outputFolder)
driver - the WebDriver instance used in the testsoutputFolder - the folder where screenshots will be savedCopyright © 2015. All rights reserved.