public class EyesWebDriverScreenshot extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BufferedImage |
image |
| Constructor and Description |
|---|
EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesWebDriver driver,
BufferedImage image) |
EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesWebDriver driver,
BufferedImage image,
com.applitools.eyes.EyesWebDriverScreenshot.ScreenshotType screenshotType,
com.applitools.eyes.Location frameLocationInScreenshot) |
EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesWebDriver driver,
BufferedImage image,
com.applitools.eyes.RectangleSize entireFrameSize)
Creates a frame(!) window screenshot.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.applitools.eyes.Location |
convertLocation(com.applitools.eyes.Location location,
com.applitools.eyes.CoordinatesType from,
com.applitools.eyes.CoordinatesType to) |
protected com.applitools.eyes.Region |
convertRegionLocation(com.applitools.eyes.Region arg0,
com.applitools.eyes.CoordinatesType arg1,
com.applitools.eyes.CoordinatesType arg2) |
FrameChain |
getFrameChain() |
com.applitools.eyes.Region |
getFrameWindow() |
BufferedImage |
getImage() |
protected com.applitools.eyes.Region |
getIntersectedRegion(com.applitools.eyes.Region arg0,
com.applitools.eyes.CoordinatesType arg1) |
protected com.applitools.eyes.Region |
getIntersectedRegion(com.applitools.eyes.Region region,
com.applitools.eyes.CoordinatesType originalCoordinatesType,
com.applitools.eyes.CoordinatesType resultCoordinatesType) |
com.applitools.eyes.Region |
getIntersectedRegion(org.openqa.selenium.WebElement element) |
com.applitools.eyes.Location |
getLocationInScreenshot(com.applitools.eyes.Location location,
com.applitools.eyes.CoordinatesType coordinatesType) |
EyesWebDriverScreenshot |
getSubScreenshot(com.applitools.eyes.Region region,
com.applitools.eyes.CoordinatesType coordinatesType,
boolean throwIfClipped) |
protected BufferedImage image
public EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesWebDriver driver,
BufferedImage image,
com.applitools.eyes.EyesWebDriverScreenshot.ScreenshotType screenshotType,
com.applitools.eyes.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(com.applitools.eyes.Logger logger,
EyesWebDriver driver,
BufferedImage image)
logger - A Logger instance.driver - The web driver used to get the screenshot.image - The actual screenshot image.{@code screenshotType} defaults to {@code null}.
{@code frameLocationInScreenshot} defaults to {@code null}.public EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesWebDriver driver,
BufferedImage image,
com.applitools.eyes.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 com.applitools.eyes.Region getFrameWindow()
public FrameChain getFrameChain()
public EyesWebDriverScreenshot getSubScreenshot(com.applitools.eyes.Region region, com.applitools.eyes.CoordinatesType coordinatesType, boolean throwIfClipped)
protected com.applitools.eyes.Location convertLocation(com.applitools.eyes.Location location,
com.applitools.eyes.CoordinatesType from,
com.applitools.eyes.CoordinatesType to)
public com.applitools.eyes.Location getLocationInScreenshot(com.applitools.eyes.Location location,
com.applitools.eyes.CoordinatesType coordinatesType)
throws com.applitools.eyes.OutOfBoundsException
com.applitools.eyes.OutOfBoundsExceptionprotected com.applitools.eyes.Region getIntersectedRegion(com.applitools.eyes.Region region,
com.applitools.eyes.CoordinatesType originalCoordinatesType,
com.applitools.eyes.CoordinatesType resultCoordinatesType)
public com.applitools.eyes.Region getIntersectedRegion(org.openqa.selenium.WebElement element)
public BufferedImage getImage()
protected com.applitools.eyes.Region getIntersectedRegion(com.applitools.eyes.Region arg0,
com.applitools.eyes.CoordinatesType arg1)
protected com.applitools.eyes.Region convertRegionLocation(com.applitools.eyes.Region arg0,
com.applitools.eyes.CoordinatesType arg1,
com.applitools.eyes.CoordinatesType arg2)
Copyright © 2015. All rights reserved.