public class EyesWebDriverScreenshot extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.applitools.eyes.Region |
bounds |
protected BufferedImage |
image |
| Constructor and Description |
|---|
EyesWebDriverScreenshot(com.applitools.eyes.EyesWebDriver driver,
BufferedImage image) |
EyesWebDriverScreenshot(com.applitools.eyes.EyesWebDriver driver,
BufferedImage image,
com.applitools.eyes.EyesWebDriverScreenshot.ScreenshotType screenshotType,
com.applitools.eyes.Location location,
com.applitools.eyes.Location frameLocationInScreenshot) |
| Modifier and Type | Method and Description |
|---|---|
com.applitools.eyes.Region |
getBounds() |
com.applitools.eyes.Region |
getElementRegionInFrameViewport(org.openqa.selenium.WebElement element) |
FrameChain |
getFrameChain() |
BufferedImage |
getImage() |
com.applitools.eyes.Region |
getIntersectedRegion(com.applitools.eyes.Region region)
This function intersects a region with the current screenshot,
considering frames.
|
com.applitools.eyes.Region |
getIntersectedRegion(org.openqa.selenium.WebElement element)
This function intersects a region with the current screenshot,
considering frames.
|
com.applitools.eyes.Location |
getLocationInScreenshot(com.applitools.eyes.Location location)
Calculates the location in the screenshot of the location given as
parameter.
|
protected com.applitools.eyes.Location |
getLocationRelativeToFrameViewport(com.applitools.eyes.Location location)
If this is not a full screen screenshot, or we're inside a frame,
adjust the location to the current viewport.
|
protected BufferedImage |
getSubImage(com.applitools.eyes.Region arg0) |
EyesWebDriverScreenshot |
getSubScreenshot(com.applitools.eyes.Region region) |
EyesWebDriverScreenshot |
getSubScreenshot(org.openqa.selenium.WebElement element) |
protected BufferedImage image
protected com.applitools.eyes.Region bounds
public EyesWebDriverScreenshot(com.applitools.eyes.EyesWebDriver driver,
BufferedImage image,
com.applitools.eyes.EyesWebDriverScreenshot.ScreenshotType screenshotType,
com.applitools.eyes.Location location,
com.applitools.eyes.Location frameLocationInScreenshot)
public EyesWebDriverScreenshot(com.applitools.eyes.EyesWebDriver driver,
BufferedImage image)
public FrameChain getFrameChain()
protected com.applitools.eyes.Location getLocationRelativeToFrameViewport(com.applitools.eyes.Location location)
location - The location to adjustpublic com.applitools.eyes.Location getLocationInScreenshot(com.applitools.eyes.Location location)
throws com.applitools.eyes.OutOfBoundsException
location - The location as coordinates inside the current frame.com.applitools.eyes.OutOfBoundsException - If the location is
not inside the frame's region in the screenshot.public com.applitools.eyes.Region getElementRegionInFrameViewport(org.openqa.selenium.WebElement element)
element - The element which region we would like to receive.public com.applitools.eyes.Region getIntersectedRegion(com.applitools.eyes.Region region)
region - The region to intersect, relative to the frames top/left
within the parent (meaning, scroll isn't considered!)public com.applitools.eyes.Region getIntersectedRegion(org.openqa.selenium.WebElement element)
element - The region to intersect.public EyesWebDriverScreenshot getSubScreenshot(com.applitools.eyes.Region region)
region - The region in the coordinates of the current frame.public EyesWebDriverScreenshot getSubScreenshot(org.openqa.selenium.WebElement element)
element - The element for which to get a screenshot from the
current screenshot.public BufferedImage getImage()
protected BufferedImage getSubImage(com.applitools.eyes.Region arg0)
public com.applitools.eyes.Region getBounds()
Copyright © 2014. All rights reserved.