public abstract class AppiumScrollPositionProvider extends Object implements ScrollPositionProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.WebElement |
cachedScrollableView |
protected com.applitools.eyes.Location |
cachedScrollableViewLocation |
protected com.applitools.eyes.Region |
cachedScrollableViewRegion |
protected boolean |
cacheScrollableSize |
protected com.applitools.eyes.config.ContentInset |
contentInset |
protected ContentSize |
contentSize |
protected org.openqa.selenium.WebElement |
cutElement |
protected double |
distanceRatio |
protected io.appium.java_client.AppiumDriver |
driver |
protected EyesAppiumDriver |
eyesDriver |
protected com.applitools.eyes.Logger |
logger |
protected org.openqa.selenium.WebElement |
scrollRootElement |
protected org.openqa.selenium.By |
scrollRootElementSelector |
protected int |
verticalScrollGap |
| Constructor and Description |
|---|
AppiumScrollPositionProvider(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() |
com.applitools.eyes.Location |
getCurrentPosition(boolean absolute) |
com.applitools.eyes.Location |
getCurrentPositionWithoutStatusBar(boolean absolute) |
abstract 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 |
getFirstVisibleChildLocation() |
com.applitools.eyes.Location |
getScrollableViewLocation() |
com.applitools.eyes.Region |
getScrollableViewRegion() |
com.applitools.eyes.positioning.PositionMemento |
getState() |
abstract void |
restoreState(com.applitools.eyes.positioning.PositionMemento state) |
abstract void |
scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel) |
void |
scrollToBottomRight() |
void |
setCacheScrollableSize(boolean cacheScrollableSize) |
void |
setContentInset(com.applitools.eyes.config.ContentInset contentInset) |
void |
setCutElement(org.openqa.selenium.WebElement cutElement) |
void |
setScrollRootElement(org.openqa.selenium.WebElement scrollRootElement) |
void |
setScrollRootElementSelector(org.openqa.selenium.By scrollRootElementSelector) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetPositionprotected final com.applitools.eyes.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 org.openqa.selenium.WebElement scrollRootElement
protected org.openqa.selenium.By scrollRootElementSelector
protected com.applitools.eyes.config.ContentInset contentInset
protected boolean cacheScrollableSize
protected ContentSize contentSize
protected org.openqa.selenium.WebElement cachedScrollableView
protected com.applitools.eyes.Location cachedScrollableViewLocation
protected com.applitools.eyes.Region cachedScrollableViewRegion
public AppiumScrollPositionProvider(com.applitools.eyes.Logger logger,
EyesAppiumDriver driver)
public void setCutElement(org.openqa.selenium.WebElement cutElement)
protected org.openqa.selenium.WebElement getCachedFirstVisibleChild()
protected ContentSize getCachedContentSize()
public com.applitools.eyes.Location getScrollableViewLocation()
public com.applitools.eyes.Region getScrollableViewRegion()
public com.applitools.eyes.Location getFirstVisibleChildLocation()
public com.applitools.eyes.Location getCurrentPosition(boolean absolute)
public com.applitools.eyes.Location getCurrentPositionWithoutStatusBar(boolean absolute)
public com.applitools.eyes.Location getCurrentPosition()
getCurrentPosition in interface com.applitools.eyes.positioning.PositionProviderpublic com.applitools.eyes.RectangleSize getEntireSize()
getEntireSize in interface com.applitools.eyes.positioning.PositionProviderpublic com.applitools.eyes.positioning.PositionMemento getState()
getState in interface com.applitools.eyes.positioning.PositionProviderpublic abstract void restoreState(com.applitools.eyes.positioning.PositionMemento state)
restoreState in interface com.applitools.eyes.positioning.PositionProviderpublic void scrollToBottomRight()
public abstract void scrollTo(int startX,
int startY,
int endX,
int endY,
boolean shouldCancel)
public abstract com.applitools.eyes.Region getElementRegion(org.openqa.selenium.WebElement element,
boolean shouldStitchContent,
Boolean statusBarExists)
protected org.openqa.selenium.WebElement getFirstScrollableView()
public void cleanupCachedData()
public void setScrollRootElement(org.openqa.selenium.WebElement scrollRootElement)
public void setScrollRootElementSelector(org.openqa.selenium.By scrollRootElementSelector)
public void setContentInset(com.applitools.eyes.config.ContentInset contentInset)
public void setCacheScrollableSize(boolean cacheScrollableSize)
public int getCachedFirstVisibleChildHeight()
Copyright © 2022. All rights reserved.