Package com.vaadin.testbench.elements

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


            InterruptedException {
        openTestURL();

        ButtonElement decreaseSize = $(ButtonElement.class).caption(
                "Decrease size").first();
        decreaseSize.click(); // decreasing container size from 50 to 40
        decreaseSize.click(); // decreasing container size from 40 to 30

        TableElement table = $(TableElement.class).first();
        // TableElement scroll not working properly, so we need to do this.
        // http://dev.vaadin.com/ticket/13826
View Full Code Here


        openTestURL();

        ButtonElement decreaseSize = $(ButtonElement.class).caption(
                "Decrease size").first();
        decreaseSize.click(); // decreasing container size from 50 to 40
        decreaseSize.click(); // decreasing container size from 40 to 30

        TableElement table = $(TableElement.class).first();
        // TableElement scroll not working properly, so we need to do this.
        // http://dev.vaadin.com/ticket/13826
        testBenchElement(table.findElement(By.className("v-scrollable")))
View Full Code Here

        openTestURL();

        ButtonElement btnAdd = $(ButtonElement.class).get(0);

        for (int i = 0; i < ITERATIONS; i++) {
            btnAdd.click();
            ButtonElement btnDel = $(ButtonElement.class).get(1);
            TableElement tbl = $(TableElement.class).get(0);
            Random rand = new Random();
            int scrollValue = rand.nextInt(1500);
            scrollTable(tbl, scrollValue);
View Full Code Here

                Thread.sleep(1000);
            } catch (InterruptedException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            btnDel.click();
        }
        // Set breakoint and look memory consuption in Profiler
        btnAdd = $(ButtonElement.class).get(0);
    }
View Full Code Here

        ButtonElement button = $(ButtonElement.class).first();
        TableElement table = $(TableElement.class).first();

        // initialise contents
        button.click();
        sleep(500);

        List<WebElement> rows = table.findElement(By.className("v-table-body"))
                .findElements(By.tagName("tr"));
View Full Code Here

        WebElement label = finalRow.findElement(By.className("v-label"));
        assertEquals(TableRowScrolledBottom.part1 + 100
                + TableRowScrolledBottom.part2, label.getText());

        // add more rows
        button.click();
        sleep(500);

        rows = table.findElement(By.className("v-table-body")).findElements(
                By.tagName("tr"));
View Full Code Here

        List<ButtonElement> buttons = $(ButtonElement.class).all();
        assertFalse(buttons.isEmpty());

        // open alert dialog
        ButtonElement button = buttons.get(0);
        button.click();

        // ensure dialog opened
        waitForElementPresent(By.className("v-window"));
        WindowElement window = $(WindowElement.class).first();
View Full Code Here

        // ensure that checked now
        assertEquals("true", input.getAttribute("checked"));

        // open alert dialog
        button = $(ButtonElement.class).first();
        button.click();

        waitForElementPresent(By.className("v-window"));

        // ensure correct attributes
        window = $(WindowElement.class).first();
View Full Code Here

        textFields.get(0).sendKeys("Important");
        textFields.get(1).sendKeys(" - do ASAP");

        // open alert dialog
        button = $(ButtonElement.class).first();
        button.click();

        waitForElementPresent(By.className("v-window"));

        // ensure the assistive spans have been added to the header
        window = $(WindowElement.class).first();
View Full Code Here

        Assert.assertNotEquals("0,0", eventCoordinates);
    }

    private void clickFirstButton() {
        ButtonElement button = $(ButtonElement.class).first();
        button.click();
    }

    private void clickSecondButton() {
        ButtonElement button = $(ButtonElement.class).get(1);
        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.