public class Screenshot
extends java.lang.Object
Constructor and Description |
---|
Screenshot() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
capture(org.openqa.selenium.WebDriver driver) |
static java.lang.String |
capture(org.openqa.selenium.WebDriver driver,
boolean isTakeScreenshot)
Captures screenshot, creates thumbnail and copies both images into
specified by configuration argument 'project_report_directory' directory.
|
static void |
resizeImg(java.io.File imageFile,
int width,
int height)
Resizes image according to specified dimensions.
|
public static java.lang.String capture(org.openqa.selenium.WebDriver driver)
public static java.lang.String capture(org.openqa.selenium.WebDriver driver, boolean isTakeScreenshot)
driver
- WebDriver
instance used in testpublic static void resizeImg(java.io.File imageFile, int width, int height)
imageFile
- image to resizewidth
- new image widthheight
- new image height