Package com.vaadin.testbench.elements

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


        assertEquals("unexpected cell contents (first visible row expected)",
                "188", treeTable.getCell(189, 0).getText());
        assertEquals("unexpected cell contents (first cached row expected)",
                "158", treeTable.getCell(159, 0).getText());

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[158]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[204]/col[0]")).size());

        // check the actual visibility
View Full Code Here


        assertEquals("unexpected cell contents (first cached row expected)",
                "158", treeTable.getCell(159, 0).getText());

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[158]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[204]/col[0]")).size());

        // check the actual visibility
        compareScreen("bottom");
    }
View Full Code Here

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

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[0]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[203]/col[0]")).size());

        // scroll 6000 to make sure to actually hit bottom
View Full Code Here

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

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[0]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[203]/col[0]")).size());

        // scroll 6000 to make sure to actually hit bottom
        scrollable.scroll(6000);
View Full Code Here

        assertEquals("unexpected cell contents (first visible row expected)",
                "188", treeTable.getCell(189, 0).getText());
        assertEquals("unexpected cell contents (first cached row expected)",
                "158", treeTable.getCell(159, 0).getText());

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[158]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[204]/col[0]")).size());

        // check the actual visibility
View Full Code Here

        assertEquals("unexpected cell contents (first cached row expected)",
                "158", treeTable.getCell(159, 0).getText());

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[158]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[204]/col[0]")).size());

        // check the actual visibility
        compareScreen("bottom");
    }
View Full Code Here

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

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[0]/col[0]")).size());
        assertEquals("unexpected cell contents", "root2",
                treeTable.getCell(201, 0).getText());
        assertEquals("unexpected cell contents", "END",
                treeTable.getCell(203, 0).getText());
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.