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

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

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

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

/**
 * @author Alexander Tolmachev [email protected]
 *         Date: 11.07.12
 */
public abstract class AbstractClickAction extends WebElementAction {
    @Override
    public void perform(WebDriver webDriver) {
        WebElement elementToClick = webDriver.findElement(buildBy());
        elementToClick.click();
    }

    @Override
    public String toString() {
        return String.format("Click on element at element '%s'", buildBy());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy