com.applitools.eyes.selenium.ScrollPositionMemento Maven / Gradle / Ivy
package com.applitools.eyes.selenium;
import com.applitools.eyes.Location;
import com.applitools.eyes.PositionMemento;
/**
* Encapsulates state for {@link ScrollPositionProvider} instances.
*/
public class ScrollPositionMemento extends PositionMemento {
private final Location position;
/**
*
* @param l The current location to be saved.
*/
public ScrollPositionMemento(Location l) {
position = new Location(l);
}
public int getX() {
return position.getX();
}
public int getY() {
return position.getY();
}
}