public interface PositionProvider
| Modifier and Type | Method and Description |
|---|---|
Location |
getCurrentPosition() |
RectangleSize |
getEntireSize() |
PositionMemento |
getState()
Get the current state of the position provider.
|
void |
restoreState(PositionMemento state)
Restores the state of the position provider to the state provided as a
parameter.
|
void |
setPosition(Location location)
Go to the specified location.
|
Location getCurrentPosition()
null if position is not
available.void setPosition(Location location)
location - The position to set.RectangleSize getEntireSize()
PositionMemento getState()
getCurrentPosition() in that the state of the position provider
might include other data than just the coordinates. For example a CSS
translation based position provider (in WebDriver based SDKs), might
save the entire "transform" style value as its state.restoreState(com.applitools.eyes.PositionMemento).void restoreState(PositionMemento state)
state - The state to restore to.Copyright © 2016. All rights reserved.