Package org.seleniuminspector.html

Examples of org.seleniuminspector.html.TableInspector.body()


    private void verifyStyles(TabSetInspector tabSet, int selectedTabIndex) {
        ElementInspector firstTab = tabSet.tabs().get(0);
        ElementInspector secondTab = tabSet.tabs().get(1);
        TableInspector tabSetAsTable = new TableInspector(tabSet);
        TableCellInspector emptySpaceCell = tabSetAsTable.body().row(0).cell(4);

        emptySpaceCell.assertStyle("background: beige");

        // backBorderStyle="2px solid SpringGreen"
        if (selectedTabIndex == 0) {
View Full Code Here


            secondTab.assertStyle("border-right: 3px dashed OliveDrab");
        }

        emptySpaceCell.assertStyle("border-bottom: 3px dashed OliveDrab");

        tabSetAsTable.body().row(0).cell(0).assertStyle("border-bottom: 3px dashed OliveDrab");

        // tabStyle="background: azure; border-top: 1px dotted darkgreen; width: 70px;"
        if (selectedTabIndex == 0) {
            secondTab.assertStyle("background: azure; width: 70px; border-top: 1px dotted darkgreen");
        } else if (selectedTabIndex == 1) {
View Full Code Here

                        "background: LawnGreen; border-right: ? none ?; border-bottom: 1px solid #a0a0a0"),
                new TableCellParams("Int Field 3", 1, 1,
                        "background: LawnGreen; border-right: ? none ?; border-bottom: 1px solid #a0a0a0")
        });

        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");
        }
View Full Code Here

        testAppFunctionalPage("/components/datatable/dataTableColumnGroups.jsf");
        tabbedPane("formID:testSelector").setPageIndex(1, ServerLoadingMode.getInstance());

        TableInspector table = dataTable("formID:groupStylesTable");
        assertEquals("There should be two header rows", 2, table.header().rowCount());
        assertEquals("There should be 10 body rows", 10, table.body().rowCount());
        assertFalse("There should be no footer", table.footer().elementExists());

        table.header().row(0).assertCellParams(new TableCellParams[]{
                new TableCellParams(NBSP_CHAR),
                new TableCellParams("String Field 1"),
View Full Code Here

    public void testColumnGroups_footers() {
        testAppFunctionalPage("/components/datatable/dataTableColumnGroups.jsf");
        tabbedPane("formID:testSelector").setPageIndex(2, ServerLoadingMode.getInstance());

        TableInspector table = dataTable("formID:twoFootersTable");
        TableSectionInspector body = table.body();
        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());
View Full Code Here

        });
        header.row(3).assertCellStyles("border-bottom: 2px solid gray");
        for (int i = 1; i <= 2; i++)
            header.row(i).assertStyle("color: OrangeRed; font-weight: bold; font-family: Tahoma,Arial; font-size: 19px;");

        TableSectionInspector body = table.body();
        assertEquals("Checking the number of body rows", 10, body.rowCount());
        body.assertColumnCellStyles(new String[]{
                "border-right: 2px solid silver",
                "border-right: 2px solid silver",
                "border-right: 2px solid silver",
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.