public class ScreenshotUtil extends Object
Constructor and Description |
---|
ScreenshotUtil() |
ScreenshotUtil(org.openqa.selenium.WebDriver driver) |
Modifier and Type | Method and Description |
---|---|
static String |
captureEntirePageScreenshotToString(org.openqa.selenium.WebDriver driver) |
void |
capturePageSnapshotOnException()
Used by DriverExceptionListener, don't log the customexception but put it into context.
|
static void |
captureSnapshot(String messagePrefix) |
ScreenShot |
captureWebPageSnapshot() |
public ScreenshotUtil()
public ScreenshotUtil(org.openqa.selenium.WebDriver driver)
public static String captureEntirePageScreenshotToString(org.openqa.selenium.WebDriver driver)
public ScreenShot captureWebPageSnapshot()
public void capturePageSnapshotOnException()
public static void captureSnapshot(String messagePrefix)
Copyright © 2021. All rights reserved.