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

io.magentys.cinnamon.webdriver.actions.basic.SelectActionImpl Maven / Gradle / Ivy

There is a newer version: 0.2.0
Show newest version
package io.magentys.cinnamon.webdriver.actions.basic;

import io.magentys.cinnamon.webdriver.actions.SelectAction;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;

public class SelectActionImpl implements SelectAction {

    private final Select select;

    public SelectActionImpl(final WebElement target) {
        this.select = new Select(target);
    }

    @Override
    public void byIndex(final int idx) {
        select.selectByIndex(idx);
    }

    @Override
    public void byValue(final String value) {
        select.selectByValue(value);
    }

    @Override
    public void byVisibleText(final String text) {
        select.selectByVisibleText(text);
    }

    @Override
    public void byVisibleTextContains(final String text) {
        select.selectByVisibleTextContains(text);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy