net.serenitybdd.screenplay.questions.targets.TargetSelectOptions Maven / Gradle / Ivy
package net.serenitybdd.screenplay.questions.targets;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.annotations.Subject;
import net.serenitybdd.screenplay.questions.SelectOptions;
import net.serenitybdd.screenplay.targets.Target;
import java.util.List;
@Subject("#target")
public class TargetSelectOptions implements Question> {
private final Target target;
TargetSelectOptions(Target target) {
this.target = target;
}
@Override
public List answeredBy(Actor actor) {
return SelectOptions.of(target).answeredBy(actor);
}
}