Package com.vaadin.testbench.elements

Examples of com.vaadin.testbench.elements.ButtonElement.click()


        button.click();
    }

    private void clickSecondButton() {
        ButtonElement button = $(ButtonElement.class).get(1);
        button.click();
    }

    private String getFirstLabelValue() {
        LabelElement label = $(LabelElement.class).get(1);
        return label.getText();
View Full Code Here


    }

    private String getCurrentPageFirstItemIndex() throws InterruptedException {
        ButtonElement updateLabelButton = $(ButtonElement.class).get(4);
        LabelElement label = $(LabelElement.class).get(1);
        updateLabelButton.click();
        sleep(200);
        return label.getText();
    }

    private void addRow() {
View Full Code Here

        return label.getText();
    }

    private void addRow() {
        ButtonElement button = $(ButtonElement.class).get(0);
        button.click();
    }

    private void jumpToFirstRow() {
        ButtonElement button = $(ButtonElement.class).get(3);
        button.click();
View Full Code Here

        button.click();
    }

    private void jumpToFirstRow() {
        ButtonElement button = $(ButtonElement.class).get(3);
        button.click();
    }

    private void jumpToFifteenthRow() {
        ButtonElement button = $(ButtonElement.class).get(2);
        button.click();
View Full Code Here

        button.click();
    }

    private void jumpToFifteenthRow() {
        ButtonElement button = $(ButtonElement.class).get(2);
        button.click();
    }

    private void jumpToLastRow() {
        ButtonElement button = $(ButtonElement.class).get(1);
        button.click();
View Full Code Here

        button.click();
    }

    private void jumpToLastRow() {
        ButtonElement button = $(ButtonElement.class).get(1);
        button.click();
    }
}
View Full Code Here

        openTestURL();

        compareScreen("initial");

        ButtonElement button = $(ButtonElement.class).first();
        button.click();
        button.click();

        compareScreen("after");
    }
View Full Code Here

        compareScreen("initial");

        ButtonElement button = $(ButtonElement.class).first();
        button.click();
        button.click();

        compareScreen("after");
    }

}
View Full Code Here

    public void testSecondDateField() throws InterruptedException {
        DateFieldElement dateField = $(DateFieldElement.class).all().get(1);
        ButtonElement button = $(ButtonElement.class).first();

        // change the date
        button.click();
        sleep(100);

        // open the popup
        dateField.findElement(By.tagName("button")).click();
View Full Code Here

    public void testThirdDateField() throws InterruptedException {
        DateFieldElement dateField = $(DateFieldElement.class).all().get(2);
        ButtonElement button = $(ButtonElement.class).first();

        // change the date
        button.click();
        sleep(100);

        // open the popup
        dateField.findElement(By.tagName("button")).click();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.