public class AndroidScrollPositionProvider extends AppiumScrollPositionProvider
cachedScrollableView, cachedScrollableViewLocation, cachedScrollableViewRegion, cacheScrollableSize, contentInset, contentSize, cutElement, distanceRatio, driver, eyesDriver, logger, scrollRootElement, scrollRootElementSelector, verticalScrollGap| Constructor and Description |
|---|
AndroidScrollPositionProvider(com.applitools.eyes.Logger logger,
EyesAppiumDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupCachedData() |
int |
getBehaviorOffsetWithHelperLibrary() |
com.applitools.eyes.Location |
getCurrentPosition(boolean absolute) |
com.applitools.eyes.Location |
getCurrentPositionWithoutStatusBar(boolean absolute) |
com.applitools.eyes.Region |
getElementRegion(org.openqa.selenium.WebElement element,
boolean shouldStitchContent,
Boolean statusBarExists) |
com.applitools.eyes.RectangleSize |
getEntireSize() |
protected org.openqa.selenium.WebElement |
getFirstScrollableView() |
com.applitools.eyes.Location |
getScrollableViewLocation() |
com.applitools.eyes.Region |
getScrollableViewRegion() |
boolean |
moveToTop(String elementId) |
void |
restoreState(com.applitools.eyes.positioning.PositionMemento state) |
com.applitools.eyes.Location |
scrollDown(boolean returnAbsoluteLocation) |
void |
scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel) |
com.applitools.eyes.Location |
setPosition(com.applitools.eyes.Location location) |
void |
setPosition(org.openqa.selenium.WebElement element) |
void |
tryDumpVHSWithHelperLibrary() |
String |
tryGetClassWithHelperLibrary() |
boolean |
tryScrollBehaviorOffsetWithHelperLibrary(String elementId,
int offset) |
boolean |
tryScrollWithHelperLibrary(String elementId,
int offset,
int step,
int totalSteps) |
getCachedContentSize, getCachedFirstVisibleChild, getCachedFirstVisibleChildHeight, getCurrentPosition, getFirstVisibleChildLocation, getState, scrollToBottomRight, setCacheScrollableSize, setContentInset, setCutElement, setScrollRootElement, setScrollRootElementSelectorpublic AndroidScrollPositionProvider(com.applitools.eyes.Logger logger,
EyesAppiumDriver driver)
public com.applitools.eyes.Location getScrollableViewLocation()
getScrollableViewLocation in class AppiumScrollPositionProviderpublic com.applitools.eyes.Region getScrollableViewRegion()
getScrollableViewRegion in class AppiumScrollPositionProviderpublic com.applitools.eyes.Location getCurrentPosition(boolean absolute)
getCurrentPosition in class AppiumScrollPositionProviderpublic com.applitools.eyes.Location getCurrentPositionWithoutStatusBar(boolean absolute)
getCurrentPositionWithoutStatusBar in class AppiumScrollPositionProviderpublic com.applitools.eyes.Location setPosition(com.applitools.eyes.Location location)
public void setPosition(org.openqa.selenium.WebElement element)
public void restoreState(com.applitools.eyes.positioning.PositionMemento state)
restoreState in interface com.applitools.eyes.positioning.PositionProviderrestoreState in class AppiumScrollPositionProviderpublic com.applitools.eyes.Location scrollDown(boolean returnAbsoluteLocation)
public void scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel)
scrollTo in class AppiumScrollPositionProviderpublic boolean tryScrollWithHelperLibrary(String elementId, int offset, int step, int totalSteps)
public boolean moveToTop(String elementId)
public int getBehaviorOffsetWithHelperLibrary()
public boolean tryScrollBehaviorOffsetWithHelperLibrary(String elementId, int offset)
public String tryGetClassWithHelperLibrary()
public void tryDumpVHSWithHelperLibrary()
public com.applitools.eyes.Region getElementRegion(org.openqa.selenium.WebElement element,
boolean shouldStitchContent,
Boolean statusBarExists)
getElementRegion in class AppiumScrollPositionProviderpublic com.applitools.eyes.RectangleSize getEntireSize()
getEntireSize in interface com.applitools.eyes.positioning.PositionProvidergetEntireSize in class AppiumScrollPositionProviderprotected org.openqa.selenium.WebElement getFirstScrollableView()
getFirstScrollableView in class AppiumScrollPositionProviderpublic void cleanupCachedData()
cleanupCachedData in class AppiumScrollPositionProviderCopyright © 2022. All rights reserved.