public class WebDriverScreenshotRule
extends org.junit.rules.TestWatcher
| Modifier | Constructor and Description |
|---|---|
|
WebDriverScreenshotRule() |
|
WebDriverScreenshotRule(com.google.common.base.Supplier<? extends org.openqa.selenium.WebDriver> driverSupplier) |
|
WebDriverScreenshotRule(com.google.common.base.Supplier<? extends org.openqa.selenium.WebDriver> driverSupplier,
File artifactDir)
Deprecated.
Will be removed in version 3.0; instead, use one of the other constructors to set the driver,
then call
artifactDir(File) |
|
WebDriverScreenshotRule(org.openqa.selenium.WebDriver webDriver) |
|
WebDriverScreenshotRule(WebDriverDebug webDriverDebug) |
protected |
WebDriverScreenshotRule(WebDriverDebug webDriverDebug,
File artifactDir) |
protected |
WebDriverScreenshotRule(WebDriverSupport<? extends org.openqa.selenium.WebDriver> support,
File artifactDir) |
| Modifier and Type | Method and Description |
|---|---|
WebDriverScreenshotRule |
artifactDir(File artifactDir)
Returns a copy of this rule, specifying a different artifact directory than the default.
|
protected void |
failed(Throwable e,
org.junit.runner.Description description) |
protected void |
starting(org.junit.runner.Description description) |
protected WebDriverScreenshotRule(@Nonnull WebDriverDebug webDriverDebug, @Nonnull File artifactDir)
protected WebDriverScreenshotRule(@Nonnull WebDriverSupport<? extends org.openqa.selenium.WebDriver> support, @Nonnull File artifactDir)
@Deprecated public WebDriverScreenshotRule(@Nonnull com.google.common.base.Supplier<? extends org.openqa.selenium.WebDriver> driverSupplier, @Nonnull File artifactDir)
artifactDir(File)public WebDriverScreenshotRule(@Nonnull com.google.common.base.Supplier<? extends org.openqa.selenium.WebDriver> driverSupplier)
public WebDriverScreenshotRule(@Nonnull org.openqa.selenium.WebDriver webDriver)
@Inject public WebDriverScreenshotRule(@Nonnull WebDriverDebug webDriverDebug)
public WebDriverScreenshotRule()
public WebDriverScreenshotRule artifactDir(File artifactDir)
artifactDir - the directory in which screenshots should be storedprotected void starting(@Nonnull org.junit.runner.Description description)
starting in class org.junit.rules.TestWatcherCopyright © 2015 Atlassian. All rights reserved.