public class AppiumFullPageCaptureAlgorithm extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cacheScrollableSize |
protected com.applitools.eyes.config.ContentInset |
contentInset |
protected boolean |
coordinatesAreScaled |
protected com.applitools.eyes.Location |
currentPosition |
protected com.applitools.eyes.debug.DebugScreenshotsProvider |
debugScreenshotsProvider |
protected static int |
DEFAULT_STITCHING_ADJUSTMENT |
protected com.applitools.eyes.capture.ImageProvider |
imageProvider |
protected com.applitools.eyes.Logger |
logger |
protected com.applitools.eyes.positioning.PositionProvider |
positionProvider |
protected com.applitools.eyes.Region |
regionInScreenshot |
protected ScrollPositionProvider |
scrollProvider |
protected org.openqa.selenium.WebElement |
scrollRootElement |
protected org.openqa.selenium.By |
scrollRootElementSelector |
protected int |
statusBarHeight |
protected Integer |
stitchingAdjustment |
protected String |
testId |
protected int |
waitBeforeScreenshots |
| Constructor and Description |
|---|
AppiumFullPageCaptureAlgorithm(com.applitools.eyes.Logger logger,
String testId,
AppiumScrollPositionProvider scrollProvider,
com.applitools.eyes.capture.ImageProvider imageProvider,
com.applitools.eyes.debug.DebugScreenshotsProvider debugScreenshotsProvider,
com.applitools.eyes.ScaleProviderFactory scaleProviderFactory,
com.applitools.eyes.CutProvider cutProvider,
com.applitools.eyes.capture.EyesScreenshotFactory screenshotFactory,
int waitBeforeScreenshots,
org.openqa.selenium.WebElement cutElement,
Integer stitchingAdjustment,
org.openqa.selenium.WebElement scrollRootElement,
org.openqa.selenium.By scrollRootElementSelector,
com.applitools.eyes.config.ContentInset contentInset,
boolean cacheScrollableSize) |
AppiumFullPageCaptureAlgorithm(com.applitools.eyes.Logger logger,
String testId,
com.applitools.eyes.positioning.PositionProvider originProvider,
com.applitools.eyes.positioning.PositionProvider positionProvider,
ScrollPositionProvider scrollProvider,
com.applitools.eyes.capture.ImageProvider imageProvider,
com.applitools.eyes.debug.DebugScreenshotsProvider debugScreenshotsProvider,
com.applitools.eyes.ScaleProviderFactory scaleProviderFactory,
com.applitools.eyes.CutProvider cutProvider,
com.applitools.eyes.capture.EyesScreenshotFactory screenshotFactory,
int waitBeforeScreenshots,
org.openqa.selenium.WebElement cutElement,
Integer stitchingAdjustment) |
| Modifier and Type | Method and Description |
|---|---|
protected com.applitools.eyes.RectangleSize |
captureAndStitchCurrentPart(com.applitools.eyes.Region partRegion) |
protected void |
captureAndStitchTailParts(com.applitools.eyes.RectangleSize entireSize,
com.applitools.eyes.RectangleSize initialPartSize) |
protected void |
cleanupStitch(com.applitools.eyes.positioning.PositionMemento originalStitchedState,
com.applitools.eyes.Location lastSuccessfulLocation,
com.applitools.eyes.RectangleSize lastSuccessfulPartSize,
com.applitools.eyes.RectangleSize entireSize) |
protected BufferedImage |
cropPartToRegion(BufferedImage partImage,
com.applitools.eyes.Region partRegion) |
protected int |
downscaleSafe(int value) |
protected com.applitools.eyes.Location |
downscaleSafe(com.applitools.eyes.Location loc) |
BufferedImage |
getStitchedRegion(com.applitools.eyes.Region region,
RegionPositionCompensation regionPositionCompensation)
Returns a stitching of a region.
|
protected void |
moveToTopLeft() |
protected void |
moveToTopLeft(int startX,
int startY,
int endX,
int endY)
Scrolls root scrollable view to the content beginning.
|
protected int |
scaleSafe(int value) |
protected com.applitools.eyes.Location |
scaleSafe(com.applitools.eyes.Location loc) |
protected com.applitools.eyes.RectangleSize |
scaleSafe(com.applitools.eyes.RectangleSize rs) |
protected com.applitools.eyes.Region |
scaleSafe(com.applitools.eyes.Region reg) |
protected void |
setRegionInScreenshot(BufferedImage image,
com.applitools.eyes.Region region,
RegionPositionCompensation regionPositionCompensation) |
protected void |
stitchPartIntoContainer(BufferedImage partImage) |
protected static final int DEFAULT_STITCHING_ADJUSTMENT
protected com.applitools.eyes.Logger logger
protected final String testId
protected final com.applitools.eyes.capture.ImageProvider imageProvider
protected final com.applitools.eyes.debug.DebugScreenshotsProvider debugScreenshotsProvider
protected final int waitBeforeScreenshots
protected com.applitools.eyes.Region regionInScreenshot
protected com.applitools.eyes.Location currentPosition
protected org.openqa.selenium.WebElement scrollRootElement
protected org.openqa.selenium.By scrollRootElementSelector
protected boolean coordinatesAreScaled
protected final com.applitools.eyes.positioning.PositionProvider positionProvider
protected final ScrollPositionProvider scrollProvider
protected Integer stitchingAdjustment
protected int statusBarHeight
protected com.applitools.eyes.config.ContentInset contentInset
protected boolean cacheScrollableSize
public AppiumFullPageCaptureAlgorithm(com.applitools.eyes.Logger logger,
String testId,
com.applitools.eyes.positioning.PositionProvider originProvider,
com.applitools.eyes.positioning.PositionProvider positionProvider,
ScrollPositionProvider scrollProvider,
com.applitools.eyes.capture.ImageProvider imageProvider,
com.applitools.eyes.debug.DebugScreenshotsProvider debugScreenshotsProvider,
com.applitools.eyes.ScaleProviderFactory scaleProviderFactory,
com.applitools.eyes.CutProvider cutProvider,
com.applitools.eyes.capture.EyesScreenshotFactory screenshotFactory,
int waitBeforeScreenshots,
org.openqa.selenium.WebElement cutElement,
Integer stitchingAdjustment)
public AppiumFullPageCaptureAlgorithm(com.applitools.eyes.Logger logger,
String testId,
AppiumScrollPositionProvider scrollProvider,
com.applitools.eyes.capture.ImageProvider imageProvider,
com.applitools.eyes.debug.DebugScreenshotsProvider debugScreenshotsProvider,
com.applitools.eyes.ScaleProviderFactory scaleProviderFactory,
com.applitools.eyes.CutProvider cutProvider,
com.applitools.eyes.capture.EyesScreenshotFactory screenshotFactory,
int waitBeforeScreenshots,
org.openqa.selenium.WebElement cutElement,
Integer stitchingAdjustment,
org.openqa.selenium.WebElement scrollRootElement,
org.openqa.selenium.By scrollRootElementSelector,
com.applitools.eyes.config.ContentInset contentInset,
boolean cacheScrollableSize)
protected com.applitools.eyes.RectangleSize captureAndStitchCurrentPart(com.applitools.eyes.Region partRegion)
protected void captureAndStitchTailParts(com.applitools.eyes.RectangleSize entireSize,
com.applitools.eyes.RectangleSize initialPartSize)
protected void moveToTopLeft(int startX,
int startY,
int endX,
int endY)
startX - Start X coordinate of scroll action.startY - Start Y coordinate of scroll action.endX - End X coordinate of scroll action.endY - End Y coordinate of scroll action.protected void moveToTopLeft()
protected void setRegionInScreenshot(BufferedImage image, com.applitools.eyes.Region region, RegionPositionCompensation regionPositionCompensation)
protected BufferedImage cropPartToRegion(BufferedImage partImage, com.applitools.eyes.Region partRegion)
protected void cleanupStitch(com.applitools.eyes.positioning.PositionMemento originalStitchedState,
com.applitools.eyes.Location lastSuccessfulLocation,
com.applitools.eyes.RectangleSize lastSuccessfulPartSize,
com.applitools.eyes.RectangleSize entireSize)
protected void stitchPartIntoContainer(BufferedImage partImage)
public BufferedImage getStitchedRegion(com.applitools.eyes.Region region, RegionPositionCompensation regionPositionCompensation)
region - The region to stitch. If Region.EMPTY, the entire image will be stitched.regionPositionCompensation - A strategy for compensating region positions for some browsers.protected com.applitools.eyes.RectangleSize scaleSafe(com.applitools.eyes.RectangleSize rs)
protected com.applitools.eyes.Location scaleSafe(com.applitools.eyes.Location loc)
protected com.applitools.eyes.Region scaleSafe(com.applitools.eyes.Region reg)
protected com.applitools.eyes.Location downscaleSafe(com.applitools.eyes.Location loc)
protected int scaleSafe(int value)
protected int downscaleSafe(int value)
Copyright © 2022. All rights reserved.