Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.TabSetInspector.tabs()


        boolean initialValueAsTag = Boolean.parseBoolean(asTagOutputText.text());

        TabSetInspector loadingModesTabSet = tabSet("formID:loadingModes");

        if (loadingMode instanceof ClientLoadingMode) {
            loadingModesTabSet.tabs().get(1).clickAndWait();
        } else if (loadingMode instanceof ServerLoadingMode) {
            loadingModesTabSet.tabs().get(2).clickAndWait();
        }

        tabbedPane("formID:asAttribute").tabSet().tabs().get(1).clickAndWait(loadingMode);
View Full Code Here


        TabSetInspector loadingModesTabSet = tabSet("formID:loadingModes");

        if (loadingMode instanceof ClientLoadingMode) {
            loadingModesTabSet.tabs().get(1).clickAndWait();
        } else if (loadingMode instanceof ServerLoadingMode) {
            loadingModesTabSet.tabs().get(2).clickAndWait();
        }

        tabbedPane("formID:asAttribute").tabSet().tabs().get(1).clickAndWait(loadingMode);
        tabbedPane("formID:asTag").tabSet().tabs().get(1).clickAndWait(loadingMode);
View Full Code Here

        firstPane.assertText("First tab content");
    }

    private void verifyStyles(TabbedPaneInspector tabbedPane, int selectedTabIndex) {
        TabSetInspector tabSet = tabbedPane.tabSet();
        ElementInspector firstTab = tabSet.tabs().get(0);
        ElementInspector secondTab = tabSet.tabs().get(1);
        ElementInspector firstPane = tabbedPane.contentPanes().get(0);
        ElementInspector secondPane = tabbedPane.contentPanes().get(1);
        String emptySpacePath_0 = "tbody[0]/tr[0]/td[0]";
        String emptySpacePath_1 = "tbody[0]/tr[0]/td[2]";
View Full Code Here

    }

    private void verifyStyles(TabbedPaneInspector tabbedPane, int selectedTabIndex) {
        TabSetInspector tabSet = tabbedPane.tabSet();
        ElementInspector firstTab = tabSet.tabs().get(0);
        ElementInspector secondTab = tabSet.tabs().get(1);
        ElementInspector firstPane = tabbedPane.contentPanes().get(0);
        ElementInspector secondPane = tabbedPane.contentPanes().get(1);
        String emptySpacePath_0 = "tbody[0]/tr[0]/td[0]";
        String emptySpacePath_1 = "tbody[0]/tr[0]/td[2]";
        String emptySpacePath_2 = "tbody[0]/tr[0]/td[4]";
View Full Code Here

        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/datatablePagination.jsf");
        TabSetInspector loadingModes = tabSet("formID:loadingModes");

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

        List<DataTableUtils.TestDataTableItem> referenceDataTableValues = DataTableUtils.TWO_STRING_COLUMN_LIST;
        final String firstColumnHeaderContent = "first column header";
        final String secondColumnHeaderContent = "second column header";
View Full Code Here

        checkDataTableContents(selenium, referenceDataTableValues, 3);
        clientPaginator.firstPage().clickAndWait(loadingMode);
        checkDataTableContents(selenium, referenceDataTableValues, 1);
        if (loadingMode instanceof ServerLoadingMode) {
            // reset tab index for possible further tests
            loadingModes.tabs().get(0).clickAndWait();
        }

    }

    private void checkDataTableContents(Selenium selenium, List<DataTableUtils.TestDataTableItem> referenceDataTableValues, int pageNo) {
View Full Code Here

        TabSetInspector loadingModes = tabSet("formID:loadingModes");

        DataTableInspector filterableDataTable = dataTable("formID:filterableDataTable_comboBox");
        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");
View Full Code Here

                    .assertElementExists(false);
        }

        if (loadingMode instanceof ServerLoadingMode) {
            // reset tab index for possible further tests
            loadingModes.tabs().get(0).clickAndWait();
        }

    }

    private void filteringDropDown(LoadingMode loadingMode) {
View Full Code Here

        testAppFunctionalPage("/components/datatable/datatableFilteringDropDownField.jsf");

        TabSetInspector loadingModes = tabSet("formID:loadingModes");
        DataTableInspector filterableDataTable = dataTable("formID:filterableDataTable_dropDownField");
        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");
View Full Code Here

                        .assertElementExists(false);
            }
        }
        if (loadingMode instanceof ServerLoadingMode) {
            // reset tab index for possible further tests
            loadingModes.tabs().get(0).clickAndWait();
        }

    }

    private void featuresCombination(LoadingMode loadingMode) {
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.