Package org.seleniuminspector.openfaces

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


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

        // check 'es' locale
        element("formID:collapseNodesBtn").clickAndWait();
        localeChanger.tabs().get(1).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withTreeTable.jsf"); // issue a GET request for view to update locale in JSP
        element(treeTableId + ":2:categoryID").assertText(TODAY_ES);
        window().document().getElementsByTagName("img").get(1).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        element(treeTableId + ":1_0:nameID").assertText(WEEK_ES);
        element(treeTableId + ":1_1:nameID").assertText(WEEK_ES);
View Full Code Here


        element(treeTableId + ":1_0:nameID").assertText(WEEK_ES);
        element(treeTableId + ":1_1:nameID").assertText(WEEK_ES);

        // check 'ja' locale
        element("formID:collapseNodesBtn").clickAndWait();
        localeChanger.tabs().get(2).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withTreeTable.jsf"); // issue a GET request for view to update locale in JSP
        element(treeTableId + ":3:categoryID").assertText(TODAY_JA);
        window().document().getElementsByTagName("img").get(2).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        element(treeTableId + ":2_0:nameID").assertText(WEEK_JA);
        element(treeTableId + ":2_1:nameID").assertText(WEEK_JA);
View Full Code Here

        element(treeTableId + ":2_0:nameID").assertText(WEEK_JA);
        element(treeTableId + ":2_1:nameID").assertText(WEEK_JA);

        // check 'ru' locale
        element("formID:collapseNodesBtn").clickAndWait();
        localeChanger.tabs().get(3).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withTreeTable.jsf"); // issue a GET request for view to update locale in JSP
        element(treeTableId + ":4:categoryID").assertText(TODAY_RU);
        window().document().getElementsByTagName("img").get(3).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        element(treeTableId + ":3_0:nameID").assertText(WEEK_RU);
View Full Code Here

        element(treeTableId + ":4:categoryID").assertText(TODAY_RU);
        window().document().getElementsByTagName("img").get(3).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        element(treeTableId + ":3_0:nameID").assertText(WEEK_RU);

        // reset tab index for further running tests
        localeChanger.tabs().get(0).clickAndWait();
    }

}
View Full Code Here

    private void staticTreeStructure(LoadingMode loadingMode) {
        testAppFunctionalPage("/components/treetable/treeTableStaticStructure.jsf");
        TabSetInspector loadingModes = tabSet("formID:loadingModes");
        if (loadingMode instanceof ServerLoadingMode) {
            loadingModes.tabs().get(1).clickAndWait(loadingMode);
        }
        TreeTableInspector treeTable = treeTable("formID:treeTableStaticStructureID");
        treeTable.bodyRow(0).cell(0).assertText("Colors");

        treeTable.bodyRow(0).expansionToggle().clickAndWait(loadingMode);
View Full Code Here

        treeTable.bodyRow(5).cell(0).assertText("Blue");
        treeTable.bodyRow(6).cell(0).assertText("Purple");

        if (loadingMode instanceof ServerLoadingMode) {
            // reset page index for further test to run correctly
            loadingModes.tabs().get(0).clickAndWait(loadingMode);
        }

    }

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

    private void dynamicTreeStructure(LoadingMode loadingMode) {
        testAppFunctionalPage("/components/treetable/treeTableDynamicStructure.jsf");
        TabSetInspector loadingModes = tabSet("formID:loadingModes");
        if (loadingMode instanceof ServerLoadingMode) {
            loadingModes.tabs().get(1).clickAndWait(loadingMode);
        }

        element("formID:dynamicTreeStructureID:0:categoryID").assertText("User Management");
        element("formID:dynamicTreeStructureID:1:categoryID").assertText("Document Browsing");
        element("formID:dynamicTreeStructureID:2:categoryID").assertText("Document Creation");
View Full Code Here

        window().document().getElementsByTagName("img").get(5).clickAndWait(loadingMode);
        element("formID:dynamicTreeStructureID:5_0:nameID").assertText("Ivan Ivanych");

        if (loadingMode instanceof ServerLoadingMode) {
            // reset page index for further test to run correctly
            loadingModes.tabs().get(0).clickAndWait(loadingMode);
        }
    }

    private void testSorting(LoadingMode loadingMode) {
        testAppFunctionalPage("/components/treetable/treeTableSorting.jsf");
View Full Code Here

    private void testSorting(LoadingMode loadingMode) {
        testAppFunctionalPage("/components/treetable/treeTableSorting.jsf");
        TabSetInspector loadingModes = tabSet("formID:loadingModes");
        if (loadingMode instanceof ServerLoadingMode) {
            loadingModes.tabs().get(1).clickAndWait(loadingMode);
        }

        TreeTableInspector treeTable1 = treeTable("formID:treeTableStaticStructureID");
        /* check simple sorting in static TreeTable */
        treeTable1.headerRow(0).cell(0).clickAndWait(loadingMode);
View Full Code Here

        treeTable5.headerRow(0).cell(0).clickAndWait(loadingMode);
        treeTable5.assertBodyRowTexts("Colors", "Cold colors", "purple", "Purple");

        if (loadingMode instanceof ServerLoadingMode) {
            // reset page index for further test to run correctly
            loadingModes.tabs().get(0).clickAndWait(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.