Package com.vaadin.testbench.elements

Examples of com.vaadin.testbench.elements.TreeTableElement.findElement()


        waitUntilNot(ExpectedConditions.visibilityOfElementLocated(By
                .className("v-table-scrollposition")));

        // check the contents
        treeTable = $(TreeTableElement.class).first();
        rows = treeTable.findElement(By.className("v-table-body"))
                .findElements(By.tagName("tr"));
        assertEquals("unexpected cached row count", 45, rows.size());
        assertEquals("unexpected cell contents (final row expected)", "END",
                treeTable.getCell(203, 0).getText());
        assertEquals("unexpected cell contents (first visible row expected)",
View Full Code Here


    public void testNegativeArraySize() throws IOException,
            InterruptedException {
        openTestURL();

        TreeTableElement treeTable = $(TreeTableElement.class).first();
        List<WebElement> rows = treeTable.findElement(
                By.className("v-table-body")).findElements(By.tagName("tr"));
        assertEquals("unexpected row count", 4, rows.size());

        // expand the first root element
        treeTable.getCell(0, 0)
View Full Code Here

        // wait for the scrollposition element to disappear
        waitUntilNot(ExpectedConditions.visibilityOfElementLocated(By
                .className("v-table-scrollposition")));

        treeTable = $(TreeTableElement.class).first();
        rows = treeTable.findElement(By.className("v-table-body"))
                .findElements(By.tagName("tr"));
        assertEquals("unexpected cached row count", 46, rows.size());

        // TODO: replace these with just treeTable.scroll(int) when #13826 has
        // been fixed
View Full Code Here

                .findElements(By.tagName("tr"));
        assertEquals("unexpected cached row count", 46, rows.size());

        // TODO: replace these with just treeTable.scroll(int) when #13826 has
        // been fixed
        TestBenchElementCommands scrollable = testBenchElement(treeTable
                .findElement(By.className("v-scrollable")));

        // scroll far enough down to reach the second root item again
        scrollable.scroll(3969);
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.