
ru.yandex.qatools.actions.beans.AbstractClearAction 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.TextInput;
/**
* @author Pavel Zorin [email protected]
*/
public abstract class AbstractClearAction extends WebElementAction {
@Override
public void perform(WebDriver webDriver) {
WebElement textElement = webDriver.findElement(buildBy());
TextInput textInput = new TextInput(textElement);
textInput.clear();
}
@Override
public String toString() {
return String.format("Clear text input in element '%s'", buildBy());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy