Examples of findElement()


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

    @Test
    public void testNotification() throws InterruptedException {
        openTestURL();

        TreeTableElement treeTable = $(TreeTableElement.class).first();
        List<WebElement> rows = treeTable.findElement(
                By.className("v-table-body")).findElements(By.tagName("tr"));

        WebElement treeSpacer = rows.get(0).findElement(
                By.className("v-treetable-treespacer"));
        treeSpacer.click();
View Full Code Here

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

                By.className("v-treetable-treespacer"));
        treeSpacer.click();

        sleep(100);

        rows = treeTable.findElement(By.className("v-table-body"))
                .findElements(By.tagName("tr"));
        WebElement button = rows.get(2).findElement(By.className("v-button"));
        button.click();

        List<WebElement> notifications = findElements(By
View Full Code Here

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

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

        // ensure the last cached row isn't the final row
        treeTable = $(TreeTableElement.class).first();
        rows = treeTable.findElement(By.className("v-table-body"))
                .findElements(By.tagName("tr"));
        String elementText = rows.get(rows.size() - 1)
                .findElement(By.className("v-table-cell-wrapper")).getText();
        assertFalse("final row found when it should be beyond cache",
                elementText.contains("END"));
View Full Code Here

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

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

    @Test
    public void testLongScroll() 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

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

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

        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

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

                .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 drop the first row from the cache
        // but not far enough to reach the last row
        scrollable.scroll(1692);
View Full Code Here

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

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

    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

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

        // 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
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.