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

com.sdl.selenium.web.button.InputButton Maven / Gradle / Ivy

Go to download

Automated Acceptance Testing. Selenium and Selenium WebDriver test framework for web applications. (optimized for dynamic html, ExtJS, Bootstrap, complex UI, simple web applications/sites)

The newest version!
package com.sdl.selenium.web.button;

import com.sdl.selenium.web.WebLocator;
import org.openqa.selenium.WebElement;

public class InputButton extends WebLocator implements IButton {

    public InputButton() {
        setClassName("InputButton");
        setTag("input");
        setTemplate("text", "@value=%s");
    }

    /**
     * @param container is parent of item
     */
    public InputButton(WebLocator container) {
        this();
        setContainer(container);
    }

    public InputButton(WebElement webElement) {
        this();
        setWebElement(webElement);
    }

    /**
     * @param container is parent of item
     * @param text      is value from input item
     */
    public InputButton(WebLocator container, String text) {
        this(container);
        setText(text);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy