Package org.seleniuminspector.openfaces

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


        noDataDefaultDateTable.column(0).filter(InputTextFilterInspector.class, "formID:noDataDefaultID:filter1").makeFiltering("www");
        noDataDefaultDateTable.body().row(0).cell(0).assertText("No records satisfying the filtering criteria");

        //check is message string for the no data corresponding to filter criterion visible
        DataTableInspector noDataMessageDataTable = dataTable("formID:noDataMessageAllowedID");
        noDataMessageDataTable.column(0).filter(InputTextFilterInspector.class, "formID:noDataMessageAllowedID:filter1").makeFiltering("www");
        assertEquals("There should be one invisible fake row", 1, noDataMessageDataTable.body().rowCount());
        noDataMessageDataTable.body().row(0).assertCellParams(new TableCellParams[]{
                new TableCellParams(null, 2, 1, "display: none")
        });
View Full Code Here


                new TableCellParams(null, 2, 1, "display: none")
        });

        //check custom message for the no data corresponding to filter criterion
        DataTableInspector customNoDataMessageTable = dataTable("formID:customNoDataMessageID");
        customNoDataMessageTable.column(0).filter(InputTextFilterInspector.class,"formID:customNoDataMessageID:filter1").makeFiltering("www");
        element("formID:customNoDataMessageID:noFilteredDataCustomMessageID").assertText("Test no filtered data");

        //check default string for the no data corresponding to filter criterion
        dataTable("formID:emptyDataID").bodyRow(0).cell(0).assertText("No records");
View Full Code Here

        if (loadingMode instanceof ServerLoadingMode) {
            loadingModes.tabs().get(1).clickAndWait();
        }

        filterableDataTable.setLoadingMode(loadingMode);
        filterableDataTable.column(0).filter(ComboBoxFilterInspector.class, "formID:filterableDataTable_comboBox:filter1").makeFiltering("col3_row1");

        element("formID:filterableDataTable_comboBox:filterableDataTable_comboBox_firstHeader")
                .assertText("first column header");
        element("formID:filterableDataTable_comboBox:filterableDataTable_comboBox_secondHeader")
                .assertText("second column header");
View Full Code Here

        if (loadingMode instanceof ServerLoadingMode) {
            loadingModes.tabs().get(1).clickAndWait();
        }
        filterableDataTable.setLoadingMode(loadingMode);

        filterableDataTable.column(0).filter(DropDownFieldFilterInspector.class, "formID:filterableDataTable_dropDownField:filter1").makeFiltering("col3_row1");

        element("formID:filterableDataTable_dropDownField:filterableDataTable_dropDownField_firstHeader")
                .assertText("first column header");
        element("formID:filterableDataTable_dropDownField:filterableDataTable_dropDownField_secondHeader")
                .assertText("second column header");
View Full Code Here

        if (loadingMode instanceof ServerLoadingMode) {
            combinationDataTable.setLoadingMode(ServerLoadingMode.getInstance());
        }

        //perform filtering using comboBox filter kind
        combinationDataTable.column(2).filter(ComboBoxFilterInspector.class, "formID:featuresCombinationDataTableID:filter2").makeFiltering("criterion_1,2,3");

        //get reference data for checking filtered data
        List referenceDataAfterComboboxFilter = DataTableUtils.getFilteredValuesFeaturesCombinationTable("criterion_1,2,3");
        //get actual data
View Full Code Here

        //select first row
        element("formID:featuresCombinationDataTableID:0:featuresCombinationDataTableID_firstBody").click();
        combinationDataTable.checkSelectedIndex(0);

        //sort by first column
        combinationDataTable.column(1).makeSorting();
        //check data after sorting by first column
        checkDataAfterSorting(rowsQuantity, actualDataAfterComboboxFiltering);
        //check selection after sorting by first column
        combinationDataTable.checkSelectedIndex(0);
View Full Code Here

        checkDataAfterSorting(rowsQuantity, actualDataAfterComboboxFiltering);
        //check selection after sorting by first column
        combinationDataTable.checkSelectedIndex(0);

        //sort by second column
        combinationDataTable.column(2).makeSorting();
        //check data after sorting by second column
        checkDataAfterSorting(rowsQuantity, actualDataAfterComboboxFiltering);
        //check selection after sorting by second column
        combinationDataTable.checkSelectedIndex(0);
View Full Code Here

        checkDataAfterSorting(rowsQuantity, actualDataAfterComboboxFiltering);
        //check selection after sorting by second column
        combinationDataTable.checkSelectedIndex(0);

        //sort by third column
        combinationDataTable.column(3).makeSorting();
        combinationDataTable.column(3).makeSorting();
        //check data after sorting by third column
        Collections.reverse(actualDataAfterComboboxFiltering);
        checkDataAfterSorting(rowsQuantity, actualDataAfterComboboxFiltering);
        //check selection after sorting by third column
View Full Code Here

        //check selection after sorting by second column
        combinationDataTable.checkSelectedIndex(0);

        //sort by third column
        combinationDataTable.column(3).makeSorting();
        combinationDataTable.column(3).makeSorting();
        //check data after sorting by third column
        Collections.reverse(actualDataAfterComboboxFiltering);
        checkDataAfterSorting(rowsQuantity, actualDataAfterComboboxFiltering);
        //check selection after sorting by third column
        combinationDataTable.checkSelectedIndex(2);
View Full Code Here

        checkDataAfterSorting(rowsQuantity, actualDataAfterComboboxFiltering);
        //check selection after sorting by third column
        combinationDataTable.checkSelectedIndex(2);

        //sort by fourth column
        combinationDataTable.column(4).makeSorting();
        //check data after sorting by fourth column
        Collections.reverse(actualDataAfterComboboxFiltering);
        checkDataAfterSorting(rowsQuantity, actualDataAfterComboboxFiltering);
        //check selection after sorting by fourth column
        combinationDataTable.checkSelectedIndex(0);
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.