public class EyesWebDriverScreenshot
extends com.applitools.eyes.EyesScreenshot
Modifier and Type | Class and Description |
---|---|
static class |
EyesWebDriverScreenshot.ScreenshotType |
Constructor and Description |
---|
EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesSeleniumDriver driver,
BufferedImage image)
|
EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesSeleniumDriver driver,
BufferedImage image,
EyesWebDriverScreenshot.ScreenshotType screenshotType,
com.applitools.eyes.Location frameLocationInScreenshot) |
EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesSeleniumDriver driver,
BufferedImage image,
com.applitools.eyes.RectangleSize entireFrameSize)
Creates a frame(!) window screenshot.
|
EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesSeleniumDriver driver,
BufferedImage image,
com.applitools.eyes.RectangleSize entireFrameSize,
com.applitools.eyes.Location frameLocationInScreenshot) |
EyesWebDriverScreenshot(com.applitools.eyes.Logger logger,
EyesSeleniumDriver driver,
BufferedImage image,
com.applitools.eyes.Region screenshotRegion)
Creates a frame-like window screenshot, to be used for checkRegion screenshots.
|
Modifier and Type | Method and Description |
---|---|
static com.applitools.eyes.Location |
calcFrameLocationInScreenshot(com.applitools.eyes.Logger logger,
EyesSeleniumDriver driver,
FrameChain frameChain) |
com.applitools.eyes.Location |
convertLocation(com.applitools.eyes.Location location,
com.applitools.eyes.CoordinatesType from,
com.applitools.eyes.CoordinatesType to) |
FrameChain |
getFrameChain() |
com.applitools.eyes.Region |
getFrameWindow() |
com.applitools.eyes.Region |
getIntersectedRegion(com.applitools.eyes.Region region,
com.applitools.eyes.CoordinatesType resultCoordinatesType) |
com.applitools.eyes.Location |
getLocationInScreenshot(com.applitools.eyes.Location location,
com.applitools.eyes.CoordinatesType coordinatesType) |
EyesWebDriverScreenshot |
getSubScreenshot(com.applitools.eyes.Region region,
boolean throwIfClipped) |
EyesWebDriverScreenshot |
getSubScreenshotForRegion(com.applitools.eyes.Region region,
boolean throwIfClipped) |
public EyesWebDriverScreenshot(com.applitools.eyes.Logger logger, EyesSeleniumDriver driver, BufferedImage image, 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, EyesSeleniumDriver driver, BufferedImage image, com.applitools.eyes.RectangleSize entireFrameSize, com.applitools.eyes.Location frameLocationInScreenshot)
public EyesWebDriverScreenshot(com.applitools.eyes.Logger logger, EyesSeleniumDriver driver, BufferedImage image)
EyesWebDriverScreenshot(Logger, EyesSeleniumDriver, 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(com.applitools.eyes.Logger logger, EyesSeleniumDriver driver, BufferedImage image, com.applitools.eyes.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(com.applitools.eyes.Logger logger, EyesSeleniumDriver 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 static com.applitools.eyes.Location calcFrameLocationInScreenshot(com.applitools.eyes.Logger logger, EyesSeleniumDriver driver, FrameChain frameChain)
public com.applitools.eyes.Region getFrameWindow()
public FrameChain getFrameChain()
public EyesWebDriverScreenshot getSubScreenshot(com.applitools.eyes.Region region, boolean throwIfClipped)
getSubScreenshot
in class com.applitools.eyes.EyesScreenshot
public EyesWebDriverScreenshot getSubScreenshotForRegion(com.applitools.eyes.Region region, boolean throwIfClipped)
public com.applitools.eyes.Location convertLocation(com.applitools.eyes.Location location, com.applitools.eyes.CoordinatesType from, com.applitools.eyes.CoordinatesType to)
convertLocation
in class com.applitools.eyes.EyesScreenshot
public com.applitools.eyes.Location getLocationInScreenshot(com.applitools.eyes.Location location, com.applitools.eyes.CoordinatesType coordinatesType) throws com.applitools.eyes.OutOfBoundsException
getLocationInScreenshot
in class com.applitools.eyes.EyesScreenshot
com.applitools.eyes.OutOfBoundsException
public com.applitools.eyes.Region getIntersectedRegion(com.applitools.eyes.Region region, com.applitools.eyes.CoordinatesType resultCoordinatesType)
getIntersectedRegion
in class com.applitools.eyes.EyesScreenshot
Copyright © 2021. All rights reserved.