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

net.serenitybdd.screenplay.ui.Deselect Maven / Gradle / Ivy

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

import net.serenitybdd.screenplay.Performable;
import net.serenitybdd.screenplay.actions.DeselectFromOptions;
import net.serenitybdd.screenplay.actions.deselectactions.DeselectAllOptions;
import net.serenitybdd.screenplay.targets.Target;

/**
 * Interact with a SELECT Html element
 */
public class Deselect {
    public static DeselectFromOptions option(String option) {
        return DeselectFromOptions.byVisibleText(option);
    }

    public static DeselectFromOptions value(String volvo) {
        return DeselectFromOptions.byValue(volvo);
    }

    public static DeselectFromOptions optionNumber(int index) {
        return DeselectFromOptions.byIndex(index);
    }

    public static Performable allOptionsFrom(Target target) {
        return new DeselectAllOptions(target);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy