net.serenitybdd.screenplay.actions.ScrollToTarget Maven / Gradle / Ivy
package net.serenitybdd.screenplay.actions;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.targets.Target;
public class ScrollToTarget extends ScrollTo {
private final Target target;
public ScrollToTarget(Target target) {
this.target = target;
}
public void performAs(T actor) {
performScrollTo(actor, target.resolveFor(actor));
}
}