public class WebDriverScreenshotHelper extends Object
Constructor and Description |
---|
WebDriverScreenshotHelper() |
Modifier and Type | Method and Description |
---|---|
void |
screenshot(org.openqa.selenium.WebDriver driver,
String testName,
String testMethodName)
Screenshots will be saved using either the value of (#REMOTE_DRIVER_SCREENSHOT_FILENAME or if none, testName.testNameMethod)
appended with a date time stamp and the png file extension.
|
void |
screenshot(org.openqa.selenium.WebDriver driver,
String testName,
String testMethodName,
String screenName)
Screenshots will be saved using either the value of (#REMOTE_DRIVER_SCREENSHOT_FILENAME or if none, testName.testNameMethod)
appended with a date time stamp and the png file extension.
|
boolean |
screenshotOnFailure() |
boolean |
screenshotSteps() |
public WebDriverScreenshotHelper()
public void screenshot(org.openqa.selenium.WebDriver driver, String testName, String testMethodName) throws IOException
driver
- to use, if not of type TakesScreenshot no screenshot will be takentestName
- to save test as, unless #REMOTE_DRIVER_SCREENSHOT_FILENAME is settestMethodName
- to save test as, unless #REMOTE_DRIVER_SCREENSHOT_FILENAME is setIOException
WebDriverUtils.getDateTimeStampFormatted()
public void screenshot(org.openqa.selenium.WebDriver driver, String testName, String testMethodName, String screenName) throws IOException
driver
- to use, if not of type TakesScreenshot no screenshot will be takentestName
- to save test as, unless #REMOTE_DRIVER_SCREENSHOT_FILENAME is settestMethodName
- to save test as, unless #REMOTE_DRIVER_SCREENSHOT_FILENAME is setIOException
WebDriverUtils.getDateTimeStampFormatted()
public boolean screenshotOnFailure()
public boolean screenshotSteps()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.