public class IOSScrollPositionProvider extends AppiumScrollPositionProvider
contentSize, cutElement, distanceRatio, driver, eyesDriver, logger, verticalScrollGap| Constructor and Description |
|---|
IOSScrollPositionProvider(Logger logger,
EyesAppiumDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
protected ContentSize |
getCachedContentSize() |
protected org.openqa.selenium.WebElement |
getCachedFirstVisibleChild() |
Region |
getElementRegion(org.openqa.selenium.WebElement element,
boolean shouldStitchContent,
Boolean statusBarExists) |
void |
restoreState(PositionMemento state) |
Location |
scrollDown(boolean returnAbsoluteLocation) |
void |
scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel) |
void |
setPosition(Location location)
Go to the specified location.
|
void |
setPosition(org.openqa.selenium.WebElement element) |
getCurrentPosition, getCurrentPosition, getCurrentPositionWithoutStatusBar, getEntireSize, getFirstVisibleChildLocation, getScrollableViewLocation, getScrollableViewRegion, getState, scrollToBottomRight, setCutElement, setPositionpublic IOSScrollPositionProvider(Logger logger, EyesAppiumDriver driver)
public void setPosition(Location location)
setPosition in interface PositionProvidersetPosition in class AppiumScrollPositionProviderlocation - The position to scroll to.public void setPosition(org.openqa.selenium.WebElement element)
setPosition in interface SeleniumScrollingPositionProvidersetPosition in class AppiumScrollPositionProviderpublic void restoreState(PositionMemento state)
restoreState in interface PositionProviderrestoreState in class AppiumScrollPositionProviderpublic Location scrollDown(boolean returnAbsoluteLocation)
scrollDown in class AppiumScrollPositionProviderpublic void scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel)
scrollTo in class AppiumScrollPositionProviderpublic 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 AppiumScrollPositionProviderCopyright © 2020. All rights reserved.