public abstract class AppiumScrollPositionProvider extends Object implements SeleniumScrollingPositionProvider
| Modifier and Type | Field and Description |
|---|---|
protected ContentSize |
contentSize |
protected org.openqa.selenium.WebElement |
cutElement |
protected double |
distanceRatio |
protected io.appium.java_client.AppiumDriver |
driver |
protected EyesAppiumDriver |
eyesDriver |
protected Logger |
logger |
protected int |
verticalScrollGap |
| Constructor and Description |
|---|
AppiumScrollPositionProvider(Logger logger,
EyesAppiumDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
protected ContentSize |
getCachedContentSize() |
protected org.openqa.selenium.WebElement |
getCachedFirstVisibleChild() |
Location |
getCurrentPosition() |
Location |
getCurrentPosition(boolean absolute) |
Location |
getCurrentPositionWithoutStatusBar(boolean absolute) |
abstract Region |
getElementRegion(org.openqa.selenium.WebElement element,
boolean shouldStitchContent,
Boolean statusBarExists) |
RectangleSize |
getEntireSize() |
Location |
getFirstVisibleChildLocation() |
Location |
getScrollableViewLocation() |
Region |
getScrollableViewRegion() |
PositionMemento |
getState() |
abstract void |
restoreState(PositionMemento state) |
abstract Location |
scrollDown(boolean returnAbsoluteLocation) |
abstract void |
scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel) |
void |
scrollToBottomRight() |
void |
setCutElement(org.openqa.selenium.WebElement cutElement) |
void |
setPosition(Frame frame) |
abstract void |
setPosition(Location location) |
abstract void |
setPosition(org.openqa.selenium.WebElement element) |
protected final Logger logger
protected final io.appium.java_client.AppiumDriver driver
protected final EyesAppiumDriver eyesDriver
protected double distanceRatio
protected int verticalScrollGap
protected org.openqa.selenium.WebElement cutElement
protected ContentSize contentSize
public AppiumScrollPositionProvider(Logger logger, EyesAppiumDriver driver)
public void setCutElement(org.openqa.selenium.WebElement cutElement)
protected org.openqa.selenium.WebElement getCachedFirstVisibleChild()
@Nullable protected ContentSize getCachedContentSize()
public Location getScrollableViewLocation()
public Region getScrollableViewRegion()
public Location getFirstVisibleChildLocation()
public Location getCurrentPosition(boolean absolute)
public Location getCurrentPositionWithoutStatusBar(boolean absolute)
public Location getCurrentPosition()
getCurrentPosition in interface PositionProviderpublic abstract void setPosition(Location location)
setPosition in interface PositionProviderpublic abstract void setPosition(org.openqa.selenium.WebElement element)
setPosition in interface SeleniumScrollingPositionProviderpublic void setPosition(Frame frame)
setPosition in interface SeleniumScrollingPositionProviderpublic RectangleSize getEntireSize()
getEntireSize in interface PositionProviderpublic PositionMemento getState()
getState in interface PositionProviderpublic abstract void restoreState(PositionMemento state)
restoreState in interface PositionProviderpublic void scrollToBottomRight()
scrollToBottomRight in interface ScrollingPositionProviderpublic abstract Location scrollDown(boolean returnAbsoluteLocation)
public abstract void scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel)
Copyright © 2020. All rights reserved.