com.applitools.eyes.selenium.positioning.ScrollPositionMemento Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-selenium-common-java3 Show documentation
Show all versions of eyes-selenium-common-java3 Show documentation
Applitools Eyes SDK base for Java
The newest version!
package com.applitools.eyes.selenium.positioning;
import com.applitools.eyes.Location;
import com.applitools.eyes.positioning.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();
}
}