Package org.seleniuminspector.html

Examples of org.seleniuminspector.html.TableSectionInspector.row()


     * this function.
     */
    public void expandAllNodes(LoadingMode loadingMode) {
        TableSectionInspector body = body();
        for (int i = 0; i < body.rowCount(); i++) {
            TreeTableRowInspector row = (TreeTableRowInspector) body.row(i);
            ElementInspector expansionToggle = row.expansionToggle();
            if (expansionToggle != null) {
                expansionToggle.click();
                loadingMode.waitForLoad();
            }
View Full Code Here


    public void testColumnGroups_headers() {
        testAppFunctionalPage("/components/datatable/dataTableColumnGroups.jsf");
        TableInspector table = dataTable("formID:twoHeadersTable");

        TableSectionInspector header = table.header();
        TableRowInspector firstHeaderRow = header.row(0);
        firstHeaderRow.assertCellParams(new TableCellParams[]{
                new TableCellParams(NBSP_CHAR, 1, 2,
                        "border-right: 1px solid #a0a0a0; border-bottom: 1px solid #a0a0a0"),
                new TableCellParams("String Fields", 4, 1,
                        "background: SteelBlue; border-right: 1px solid #a0a0a0; border-bottom: ? none ?"),
View Full Code Here

                new TableCellParams("String Fields", 4, 1,
                        "background: SteelBlue; border-right: 1px solid #a0a0a0; border-bottom: ? none ?"),
                new TableCellParams("Integer Fields", 3, 1,
                        "background: ForestGreen; border-right: ? none ?; border-bottom: ? none ?")
        });
        TableRowInspector secondHeaderRow = header.row(1);
        secondHeaderRow.assertCellParams(new TableCellParams[]{
                new TableCellParams(null, 1, 1,
                        "background: LightSteelBlue; border-right: ? none ?; border-bottom: 1px solid #a0a0a0"),
                new TableCellParams("String Field 1", 1, 1,
                        "background: LightSteelBlue; border-right: ? none ?; border-bottom: 1px solid #a0a0a0"),
View Full Code Here

        });

        TableSectionInspector body = table.body();
        assertEquals("Checking body row count", 10, body.rowCount());
        for (int i = 0, count = body.rowCount(); i < count - 1; i++) {
            body.row(i).assertCellStyles("border-bottom: 1px solid #e0e0e0");
        }

        body.assertColumnCellStyles(new String[]{
                "border-right: 1px solid #e0e0e0",
                "border-right: ? none ?",
View Full Code Here

        assertFalse("There should be no header", table.header().elementExists());
        assertEquals("There should be 10 body rows", 10, body.rowCount());

        TableSectionInspector footer = table.footer();
        assertEquals("There should be 2 footer rows", 2, footer.rowCount());
        footer.row(0).assertCellStyles("border-top: 1px solid #a0a0a0");
        footer.row(0).assertCellStyles("border-bottom: ? none ?");
        footer.row(1).assertCellStyles("border-top: ? none ?");
        footer.row(1).assertCellStyles("border-bottom: ? none ?");

        table.footer().row(0).assertCellParams(new TableCellParams[]{
View Full Code Here

        assertEquals("There should be 10 body rows", 10, body.rowCount());

        TableSectionInspector footer = table.footer();
        assertEquals("There should be 2 footer rows", 2, footer.rowCount());
        footer.row(0).assertCellStyles("border-top: 1px solid #a0a0a0");
        footer.row(0).assertCellStyles("border-bottom: ? none ?");
        footer.row(1).assertCellStyles("border-top: ? none ?");
        footer.row(1).assertCellStyles("border-bottom: ? none ?");

        table.footer().row(0).assertCellParams(new TableCellParams[]{
                new TableCellParams(null, 1, 1, "background: DarkKhaki"),
View Full Code Here

        TableSectionInspector footer = table.footer();
        assertEquals("There should be 2 footer rows", 2, footer.rowCount());
        footer.row(0).assertCellStyles("border-top: 1px solid #a0a0a0");
        footer.row(0).assertCellStyles("border-bottom: ? none ?");
        footer.row(1).assertCellStyles("border-top: ? none ?");
        footer.row(1).assertCellStyles("border-bottom: ? none ?");

        table.footer().row(0).assertCellParams(new TableCellParams[]{
                new TableCellParams(null, 1, 1, "background: DarkKhaki"),
                new TableCellParams("String Field 1", 1, 1, "background: DarkKhaki"),
View Full Code Here

        TableSectionInspector footer = table.footer();
        assertEquals("There should be 2 footer rows", 2, footer.rowCount());
        footer.row(0).assertCellStyles("border-top: 1px solid #a0a0a0");
        footer.row(0).assertCellStyles("border-bottom: ? none ?");
        footer.row(1).assertCellStyles("border-top: ? none ?");
        footer.row(1).assertCellStyles("border-bottom: ? none ?");

        table.footer().row(0).assertCellParams(new TableCellParams[]{
                new TableCellParams(null, 1, 1, "background: DarkKhaki"),
                new TableCellParams("String Field 1", 1, 1, "background: DarkKhaki"),
                new TableCellParams("String Field 2", 1, 1, "background: DarkKhaki"),
View Full Code Here

        assertEquals("Checking the number of columns", 9, table.getColumnCount());

        TableSectionInspector header = table.header();
        assertEquals("Checking the number of header rows", 4, header.rowCount());
        header.row(0).assertCellParams(new TableCellParams[]{
                new TableCellParams("Common Header", 9, 1, "border-bottom: 2px solid gray")
        });
        header.row(1).assertCellParams(new TableCellParams[]{
                new TableCellParams("", 1, 2, "border-right: 2px solid gray; border-bottom: 1px solid #a0a0a0"),
                new TableCellParams("String Field 1", 1, 2, "border-right: 2px solid gray; border-bottom: 1px solid #a0a0a0"),
View Full Code Here

        TableSectionInspector header = table.header();
        assertEquals("Checking the number of header rows", 4, header.rowCount());
        header.row(0).assertCellParams(new TableCellParams[]{
                new TableCellParams("Common Header", 9, 1, "border-bottom: 2px solid gray")
        });
        header.row(1).assertCellParams(new TableCellParams[]{
                new TableCellParams("", 1, 2, "border-right: 2px solid gray; border-bottom: 1px solid #a0a0a0"),
                new TableCellParams("String Field 1", 1, 2, "border-right: 2px solid gray; border-bottom: 1px solid #a0a0a0"),
                new TableCellParams(NBSP_CHAR, 1, 2, "border-right: 2px solid gray; border-bottom: 1px solid #a0a0a0"),
                new TableCellParams("String Fields", 5, 1, "border-right: 1px solid orange; border-bottom: ? none ?"),
                new TableCellParams("Int Field 3 (header only)", 1, 2, "border-right: ? none ?; border-bottom: 1px solid #a0a0a0")
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.