public class InvalidPositionProvider extends Object implements PositionProvider
PositionProvider which throws an exception
for every method. Can be used as a placeholder until an actual
implementation is set.| Constructor and Description |
|---|
InvalidPositionProvider() |
| 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.
|
public Location getCurrentPosition()
getCurrentPosition in interface PositionProvidernull if position is not
available.public void setPosition(Location location)
PositionProvidersetPosition in interface PositionProviderlocation - The position to set.public RectangleSize getEntireSize()
getEntireSize in interface PositionProviderpublic PositionMemento getState()
PositionProviderPositionProvider.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.getState in interface PositionProviderPositionProvider.restoreState(com.applitools.eyes.positioning.PositionMemento).public void restoreState(PositionMemento state)
PositionProviderrestoreState in interface PositionProviderstate - The state to restore to.Copyright © 2017. All rights reserved.