public class CssTranslatePositionProvider extends Object implements PositionProvider
PositionProvider which is based on CSS translates. This is
useful when we want to stitch a page which contains fixed position elements.| Constructor and Description |
|---|
CssTranslatePositionProvider(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) |
public CssTranslatePositionProvider(Logger logger, org.openqa.selenium.JavascriptExecutor executor)
public Location getCurrentPosition()
getCurrentPosition in interface PositionProviderpublic void setPosition(Location location)
setPosition in interface PositionProviderpublic RectangleSize getEntireSize()
getEntireSize in interface PositionProviderpublic PositionMemento getState()
getState in interface PositionProviderpublic void restoreState(PositionMemento state)
restoreState in interface PositionProviderCopyright © 2016. All rights reserved.