public class ScrollPositionProvider extends Object implements PositionProvider
| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.JavascriptExecutor |
executor |
protected Logger |
logger |
| Constructor and Description |
|---|
ScrollPositionProvider(Logger logger,
org.openqa.selenium.JavascriptExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
Location |
getCurrentPosition() |
RectangleSize |
getEntireSize() |
PositionMemento |
getState() |
void |
restoreState(PositionMemento state) |
void |
setPosition(Location location)
Go to the specified location.
|
protected final Logger logger
protected final org.openqa.selenium.JavascriptExecutor executor
public ScrollPositionProvider(Logger logger, org.openqa.selenium.JavascriptExecutor executor)
public Location getCurrentPosition()
getCurrentPosition in interface PositionProviderpublic void 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 © 2016. All rights reserved.