public interface PositionProvider
| Modifier and Type | Method and Description |
|---|---|
com.applitools.eyes.Location |
getCurrentPosition() |
com.applitools.eyes.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.
|
com.applitools.eyes.Location |
setPosition(com.applitools.eyes.Location location)
Go to the specified location.
|
com.applitools.eyes.Location getCurrentPosition()
null if position is not
available.com.applitools.eyes.Location setPosition(com.applitools.eyes.Location location)
location - The position to set.com.applitools.eyes.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 © 2023. All rights reserved.