public class EyesWebDriverScreenshot extends EyesScreenshot
image, logger| Constructor and Description |
|---|
EyesWebDriverScreenshot(Logger logger,
EyesWebDriver driver,
BufferedImage image)
|
EyesWebDriverScreenshot(Logger logger,
EyesWebDriver driver,
BufferedImage image,
com.applitools.eyes.selenium.capture.EyesWebDriverScreenshot.ScreenshotType screenshotType,
Location frameLocationInScreenshot) |
EyesWebDriverScreenshot(Logger logger,
EyesWebDriver driver,
BufferedImage image,
RectangleSize entireFrameSize)
Creates a frame(!) window screenshot.
|
EyesWebDriverScreenshot(Logger logger,
EyesWebDriver driver,
BufferedImage image,
Region screenshotRegion)
Creates a frame-like window screenshot, to be used for checkRegion screenshots.
|
| Modifier and Type | Method and Description |
|---|---|
static Location |
calcFrameLocationInScreenshot(Logger logger,
EyesWebDriver driver,
FrameChain frameChain,
com.applitools.eyes.selenium.capture.EyesWebDriverScreenshot.ScreenshotType screenshotType) |
Location |
convertLocation(Location location,
CoordinatesType from,
CoordinatesType to) |
FrameChain |
getFrameChain() |
Region |
getFrameWindow() |
Region |
getIntersectedRegion(Region region,
CoordinatesType resultCoordinatesType) |
Region |
getIntersectedRegion(org.openqa.selenium.WebElement element)
Gets the elements region in the screenshot.
|
Location |
getLocationInScreenshot(Location location,
CoordinatesType coordinatesType) |
EyesWebDriverScreenshot |
getSubScreenshot(Region region,
boolean throwIfClipped) |
EyesWebDriverScreenshot |
getSubScreenshotForRegion(Region region,
boolean throwIfClipped) |
convertRegionLocation, getImagepublic EyesWebDriverScreenshot(Logger logger, EyesWebDriver driver, BufferedImage image, com.applitools.eyes.selenium.capture.EyesWebDriverScreenshot.ScreenshotType screenshotType, Location frameLocationInScreenshot)
logger - A Logger instance.driver - The web driver used to get the screenshot.image - The actual screenshot image.screenshotType - (Optional) The screenshot's type (e.g., viewport/full page).frameLocationInScreenshot - (Optional) The current frame's location in the screenshot.public EyesWebDriverScreenshot(Logger logger, EyesWebDriver driver, BufferedImage image)
EyesWebDriverScreenshot(Logger, EyesWebDriver, BufferedImage, ScreenshotType, Location).
screenshotType defaults to null.
frameLocationInScreenshot defaults to null.logger - A Logger instance.driver - The web driver used to get the screenshot.image - The actual screenshot image.public EyesWebDriverScreenshot(Logger logger, EyesWebDriver driver, BufferedImage image, Region screenshotRegion)
logger - A Logger instance.driver - The web driver used to get the screenshot.image - The actual screenshot image.screenshotRegion - The region of the screenshot.public EyesWebDriverScreenshot(Logger logger, EyesWebDriver driver, BufferedImage image, RectangleSize entireFrameSize)
logger - A Logger instance.driver - The web driver used to get the screenshot.image - The actual screenshot image.entireFrameSize - The full internal size of the frame.public static Location calcFrameLocationInScreenshot(Logger logger, EyesWebDriver driver, FrameChain frameChain, com.applitools.eyes.selenium.capture.EyesWebDriverScreenshot.ScreenshotType screenshotType)
public Region getFrameWindow()
public FrameChain getFrameChain()
public EyesWebDriverScreenshot getSubScreenshot(Region region, boolean throwIfClipped)
getSubScreenshot in class EyesScreenshotpublic EyesWebDriverScreenshot getSubScreenshotForRegion(Region region, boolean throwIfClipped)
public Location convertLocation(Location location, CoordinatesType from, CoordinatesType to)
convertLocation in class EyesScreenshotpublic Location getLocationInScreenshot(Location location, CoordinatesType coordinatesType) throws OutOfBoundsException
getLocationInScreenshot in class EyesScreenshotOutOfBoundsExceptionpublic Region getIntersectedRegion(Region region, CoordinatesType resultCoordinatesType)
getIntersectedRegion in class EyesScreenshotpublic Region getIntersectedRegion(org.openqa.selenium.WebElement element)
element - The element which region we want to intersect.SCREENSHOT_AS_IS coordinates
type.Copyright © 2019. All rights reserved.