public class ElementPositionProvider extends Object implements PositionProvider
| Constructor and Description |
|---|
ElementPositionProvider(Logger logger,
EyesWebDriver driver,
org.openqa.selenium.WebElement element) |
| Modifier and Type | Method and Description |
|---|---|
Location |
getCurrentPosition() |
RectangleSize |
getEntireSize() |
PositionMemento |
getState() |
void |
restoreState(PositionMemento state) |
Location |
setPosition(Location location)
Go to the specified location.
|
public ElementPositionProvider(Logger logger, EyesWebDriver driver, org.openqa.selenium.WebElement element)
public Location getCurrentPosition()
getCurrentPosition in interface PositionProviderpublic Location setPosition(Location location)
setPosition in interface PositionProviderlocation - The position to scroll to.public RectangleSize getEntireSize()
getEntireSize in interface PositionProviderpublic PositionMemento getState()
getState in interface PositionProviderpublic void restoreState(PositionMemento state)
restoreState in interface PositionProviderCopyright © 2019. All rights reserved.