net.serenitybdd.screenplay.actions.deselectactions.DeselectByVisibleTextFromTarget Maven / Gradle / Ivy
package net.serenitybdd.screenplay.actions.deselectactions;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Interaction;
import net.serenitybdd.screenplay.targets.Target;
import net.serenitybdd.annotations.Step;
public class DeselectByVisibleTextFromTarget implements Interaction {
private Target target;
private String visibleText;
public DeselectByVisibleTextFromTarget() {}
public DeselectByVisibleTextFromTarget(Target target, String visibleText) {
this.target = target;
this.visibleText = visibleText;
}
@Step("{0} deselects #visibleText in #target")
public void performAs(T theUser) {
target.resolveFor(theUser).deselectByVisibleText(visibleText);
}
}