public class EyesWebDriverScreenshot extends EyesScreenshot
image| Constructor and Description |
|---|
EyesWebDriverScreenshot(Logger logger,
EyesWebDriver driver,
BufferedImage image)
|
EyesWebDriverScreenshot(Logger logger,
EyesWebDriver driver,
BufferedImage image,
com.applitools.eyes.selenium.EyesWebDriverScreenshot.ScreenshotType screenshotType,
Location frameLocationInScreenshot) |
EyesWebDriverScreenshot(Logger logger,
EyesWebDriver driver,
BufferedImage image,
RectangleSize entireFrameSize)
Creates a frame(!) window screenshot.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
convertLocation(Location location,
CoordinatesType from,
CoordinatesType to) |
FrameChain |
getFrameChain() |
Region |
getFrameWindow() |
Region |
getIntersectedRegion(Region region,
CoordinatesType originalCoordinatesType,
CoordinatesType resultCoordinatesType) |
Region |
getIntersectedRegion(org.openqa.selenium.WebElement element) |
Location |
getLocationInScreenshot(Location location,
CoordinatesType coordinatesType) |
EyesWebDriverScreenshot |
getSubScreenshot(Region region,
CoordinatesType coordinatesType,
boolean throwIfClipped) |
convertRegionLocation, getImage, getIntersectedRegionpublic EyesWebDriverScreenshot(Logger logger, EyesWebDriver driver, BufferedImage image, com.applitools.eyes.selenium.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, 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 Region getFrameWindow()
public FrameChain getFrameChain()
public EyesWebDriverScreenshot getSubScreenshot(Region region, CoordinatesType coordinatesType, boolean throwIfClipped)
getSubScreenshot in class EyesScreenshotpublic 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 originalCoordinatesType, CoordinatesType resultCoordinatesType)
getIntersectedRegion in class EyesScreenshotpublic Region getIntersectedRegion(org.openqa.selenium.WebElement element)
Copyright © 2016. All rights reserved.