All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.screenplay.actions.deselectactions.DeselectAllOptions Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.screenplay.actions.deselectactions;

import net.serenitybdd.core.steps.Instrumented;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.actions.ByAction;
import net.serenitybdd.screenplay.targets.Target;
import net.serenitybdd.annotations.Step;

public class DeselectAllOptions extends ByAction {

    private final Target target;

    public DeselectAllOptions(Target target) {
        this.target = target;
    }

    public static DeselectAllOptions from(Target target) {
        return Instrumented.instanceOf(DeselectAllOptions.class).withProperties(target);
    }

    @Step("{0} deselects all options in #target")
    public  void performAs(T theUser) {
        target.resolveFor(theUser).deselectAll();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy