Package com.shaft.gui.internal.image
Class ScreenshotManager
java.lang.Object
com.shaft.gui.internal.image.ScreenshotManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateAttachmentFileName
(String actionName) byte[]
internalCaptureScreenshot
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean isPass) prepareImageForReport
(byte[] image, String actionName) byte[]
takeElementScreenshot
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By targetElementLocator) byte[]
takeScreenshot
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By targetElementLocator) takeScreenshot
(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, String actionName, boolean passFailStatus)
-
Constructor Details
-
ScreenshotManager
public ScreenshotManager()
-
-
Method Details
-
takeScreenshot
-
takeScreenshot
public byte[] takeScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By targetElementLocator) -
generateAttachmentFileName
-
prepareImageForReport
-
takeElementScreenshot
public byte[] takeElementScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By targetElementLocator) -
internalCaptureScreenshot
public byte[] internalCaptureScreenshot(org.openqa.selenium.WebDriver driver, org.openqa.selenium.By elementLocator, boolean isPass)
-