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

ru.yandex.qatools.actions.beans.AbstractSelectCheckBoxAction Maven / Gradle / Ivy

The newest version!
package ru.yandex.qatools.actions.beans;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import ru.yandex.qatools.htmlelements.element.CheckBox;

/**
 * @author Alexander Tolmachev [email protected]
 *         Date: 11.07.12
 */
public abstract class AbstractSelectCheckBoxAction extends WebElementAction {
    @Override
    public void perform(WebDriver webDriver) {
        WebElement checkBoxElement = webDriver.findElement(buildBy());
        CheckBox checkBox = new CheckBox(checkBoxElement);
        checkBox.select();
    }

    @Override
    public String toString() {
        return String.format("Set checkbox '%s'", buildBy());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy