Package com.vaadin.testbench.commands

Examples of com.vaadin.testbench.commands.TestBenchElementCommands.scroll()


        WebElement window = driver.findElement(By.id(WINDOW_ID));
        WebElement scrollableElement = window.findElement(By
                .className("v-scrollable"));
        TestBenchElementCommands scrollable = testBenchElement(scrollableElement);
        scrollable.scroll(1000);
        WebElement comboBox = driver.findElement(By.id(COMBOBOX_ID));
        WebElement selectButton = driver.findElement(By
                .className("v-filterselect-button"));
        selectButton.click();
View Full Code Here


        WebElement bodyElement = driver.findElement(By
                .className("v-modal-window-open"));

        TestBenchElementCommands scrollable = testBenchElement(bodyElement);
        scrollable.scroll(1000);

        Thread.sleep(1000);

        compareScreen(getScreenshotBaseName());
    }
View Full Code Here

        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);

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

                .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);

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

        // 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);

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

        element.click();

        WebElement menu = findElement(By.className("gwt-MenuBar-vertical"));

        TestBenchElementCommands scrollable = testBenchElement(menu);
        scrollable.scroll(3000);

        compareScreen(getScreenshotBaseName());
    }

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