public class IOSScrollPositionProvider extends AppiumScrollPositionProvider
cachedScrollableView, cachedScrollableViewLocation, cachedScrollableViewRegion, cacheScrollableSize, contentInset, contentSize, cutElement, distanceRatio, driver, eyesDriver, logger, scrollRootElement, scrollRootElementSelector, verticalScrollGap| Constructor and Description |
|---|
IOSScrollPositionProvider(com.applitools.eyes.Logger logger,
EyesAppiumDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupCachedData() |
protected ContentSize |
getCachedContentSize() |
protected org.openqa.selenium.WebElement |
getCachedFirstVisibleChild() |
int |
getCachedFirstVisibleChildHeight() |
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) |
org.openqa.selenium.WebElement |
getFirstVisibleChild() |
void |
restoreState(com.applitools.eyes.positioning.PositionMemento state) |
void |
scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel) |
com.applitools.eyes.Location |
setPosition(com.applitools.eyes.Location location)
Go to the specified location.
|
void |
setPosition(org.openqa.selenium.WebElement element) |
void |
setScrollRootElement(org.openqa.selenium.WebElement scrollRootElement) |
void |
triggerHelperButton() |
getCurrentPosition, getEntireSize, getFirstScrollableView, getFirstVisibleChildLocation, getScrollableViewLocation, getScrollableViewRegion, getState, scrollToBottomRight, setCacheScrollableSize, setContentInset, setCutElement, setScrollRootElementSelectorpublic IOSScrollPositionProvider(com.applitools.eyes.Logger logger,
EyesAppiumDriver driver)
public com.applitools.eyes.Location setPosition(com.applitools.eyes.Location location)
location - The position to scroll to.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 getCurrentPositionWithoutStatusBar(boolean absolute)
getCurrentPositionWithoutStatusBar in class AppiumScrollPositionProviderpublic com.applitools.eyes.Location getCurrentPosition(boolean absolute)
getCurrentPosition in class AppiumScrollPositionProviderpublic void scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel)
scrollTo in class AppiumScrollPositionProviderpublic com.applitools.eyes.Region getElementRegion(org.openqa.selenium.WebElement element,
boolean shouldStitchContent,
Boolean statusBarExists)
getElementRegion in class AppiumScrollPositionProvider@Nullable protected ContentSize getCachedContentSize()
getCachedContentSize in class AppiumScrollPositionProviderprotected org.openqa.selenium.WebElement getCachedFirstVisibleChild()
getCachedFirstVisibleChild in class AppiumScrollPositionProviderpublic void triggerHelperButton()
public void cleanupCachedData()
cleanupCachedData in class AppiumScrollPositionProviderpublic org.openqa.selenium.WebElement getFirstVisibleChild()
public void setScrollRootElement(org.openqa.selenium.WebElement scrollRootElement)
setScrollRootElement in class AppiumScrollPositionProviderpublic int getCachedFirstVisibleChildHeight()
getCachedFirstVisibleChildHeight in class AppiumScrollPositionProviderCopyright © 2022. All rights reserved.