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 PositionProvider
public Location setPosition(Location location)
setPosition
in interface PositionProvider
location
- The position to scroll to.public RectangleSize getEntireSize()
getEntireSize
in interface PositionProvider
public PositionMemento getState()
getState
in interface PositionProvider
public void restoreState(PositionMemento state)
restoreState
in interface PositionProvider
Copyright © 2019. All rights reserved.