
ru.yandex.qatools.actions.beans.AbstractDeselectCheckBoxAction 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 AbstractDeselectCheckBoxAction extends WebElementAction {
@Override
public void perform(WebDriver webDriver) {
WebElement checkBoxElement = webDriver.findElement(buildBy());
CheckBox checkBox = new CheckBox(checkBoxElement);
checkBox.deselect();
}
@Override
public String toString() {
return String.format("Unset checkbox '%s'", buildBy());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy