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.
|
Location |
setPosition(Location location)
Go to the specified location.
|
Location getCurrentPosition()
null
if position is not
available.Location setPosition(Location location)
location
- The position to set.RectangleSize getEntireSize()
PositionMemento getState()
getCurrentPosition()
in that the state of the position provider
might include other model 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.positioning.PositionMemento)
.void restoreState(PositionMemento state)
state
- The state to restore to.Copyright © 2019. All rights reserved.