Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.DataTableInspector.bodyRow()


        DataTableInspector selectionColumnDataTable = dataTable("formID:selectionColumnDataTableID");

        ElementInspector selectAllHeader = element("formID:selectionColumnDataTableID:selectAllHeaderID");
        selectAllHeader.click();
        for (int rowIndex = 0; rowIndex < 8; rowIndex++) {
            selectionColumnDataTable.bodyRow(rowIndex).cell(0).assertChecked(true);
        }
        selectionColumnDataTable.checkSelectedIndexes(0, 1, 2, 3, 4, 5, 6, 7, 8);

        element("formID:selectionColumnDataTableID:selectAllFooterID").click();
        for (int rowIndex = 0; rowIndex < 8; rowIndex++) {
View Full Code Here


        }
        selectionColumnDataTable.checkSelectedIndexes(0, 1, 2, 3, 4, 5, 6, 7, 8);

        element("formID:selectionColumnDataTableID:selectAllFooterID").click();
        for (int rowIndex = 0; rowIndex < 8; rowIndex++) {
            selectionColumnDataTable.bodyRow(rowIndex).cell(0).assertChecked(false);
        }
        selectionColumnDataTable.evalExpression("selectAllRows();");
        String isHeaderChecked = selectAllHeader.evalExpression("isSelected();");
        assertEquals(isHeaderChecked, "true");
        String isFooterChecked = selectAllHeader.evalExpression("isSelected();");
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.