public class Screenshots
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ScreenShotLaboratory |
screenshots |
| Constructor and Description |
|---|
Screenshots() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.io.File> |
finishContext() |
static java.io.File |
getLastScreenshot()
Get the last screenshot taken
|
static void |
startContext(java.lang.String className,
java.lang.String methodName) |
static java.lang.String |
takeScreenShot(java.lang.String fileName)
Take screenshot and give it filename
|
static java.lang.String |
takeScreenShot(java.lang.String className,
java.lang.String methodName) |
static java.io.File |
takeScreenShot(org.openqa.selenium.WebElement element)
Take screenshot of the WebElement/SelenideElement
|
static java.io.File |
takeScreenShotAsFile()
Take screenshot and return as a file
|
static java.awt.image.BufferedImage |
takeScreenShotAsImage(org.openqa.selenium.WebElement element)
Take screenshot of the WebElement/SelenideElement
|
public static ScreenShotLaboratory screenshots
public static java.lang.String takeScreenShot(java.lang.String className,
java.lang.String methodName)
public static java.lang.String takeScreenShot(java.lang.String fileName)
public static java.io.File takeScreenShotAsFile()
public static java.io.File takeScreenShot(org.openqa.selenium.WebElement element)
public static java.awt.image.BufferedImage takeScreenShotAsImage(org.openqa.selenium.WebElement element)
public static void startContext(java.lang.String className,
java.lang.String methodName)
public static java.util.List<java.io.File> finishContext()
public static java.io.File getLastScreenshot()