public class SeleniumScrollPositionProvider extends Object implements ScrollPositionProvider, ISeleniumPositionProvider
Modifier and Type | Field and Description |
---|---|
protected IEyesJsExecutor |
executor |
protected Logger |
logger |
protected org.openqa.selenium.WebElement |
scrollRootElement |
Constructor and Description |
---|
SeleniumScrollPositionProvider(Logger logger,
IEyesJsExecutor executor,
org.openqa.selenium.WebElement scrollRootElement) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
boolean |
equals(SeleniumScrollPositionProvider other) |
Location |
getCurrentPosition() |
static Location |
getCurrentPosition(IEyesJsExecutor executor,
org.openqa.selenium.WebElement scrollRootElement) |
RectangleSize |
getEntireSize() |
org.openqa.selenium.WebElement |
getScrolledElement() |
com.applitools.eyes.positioning.PositionMemento |
getState() |
int |
hashCode() |
void |
restoreState(com.applitools.eyes.positioning.PositionMemento state) |
Location |
setPosition(Location location)
Go to the specified location.
|
void |
setPosition(org.openqa.selenium.WebElement element) |
String |
toString() |
protected final Logger logger
protected final IEyesJsExecutor executor
protected final org.openqa.selenium.WebElement scrollRootElement
public SeleniumScrollPositionProvider(Logger logger, IEyesJsExecutor executor, org.openqa.selenium.WebElement scrollRootElement)
public static Location getCurrentPosition(IEyesJsExecutor executor, org.openqa.selenium.WebElement scrollRootElement)
public Location getCurrentPosition()
getCurrentPosition
in interface com.applitools.eyes.positioning.PositionProvider
public Location setPosition(Location location)
setPosition
in interface com.applitools.eyes.positioning.PositionProvider
location
- The position to scroll to.public void setPosition(org.openqa.selenium.WebElement element)
setPosition
in interface ScrollPositionProvider
public RectangleSize getEntireSize()
getEntireSize
in interface com.applitools.eyes.positioning.PositionProvider
public com.applitools.eyes.positioning.PositionMemento getState()
getState
in interface com.applitools.eyes.positioning.PositionProvider
public void restoreState(com.applitools.eyes.positioning.PositionMemento state)
restoreState
in interface com.applitools.eyes.positioning.PositionProvider
public org.openqa.selenium.WebElement getScrolledElement()
getScrolledElement
in interface ISeleniumPositionProvider
public boolean equals(SeleniumScrollPositionProvider other)
Copyright © 2022. All rights reserved.