Package org.seleniuminspector.openfaces

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


        }

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

        // perform sorting by first column and verify data 'es' locale
        localeChanger.tabs().get(1).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withDataTable.jsf"); // issue a GET request for view to update locale in JSP
        firstHeaderElement.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

        firstHeaderElement.assertText(TODAY_ES);
        secondHeaderElement.assertText(WEEK_ES);
View Full Code Here


        }
        firstFooterElement.assertText(TODAY_ES);
        secondFooterElement.assertText(WEEK_ES);

        // perform sorting by second column and verify data 'ja' locale
        localeChanger.tabs().get(2).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withDataTable.jsf"); // issue a GET request for view to update locale in JSP
        secondHeaderElement.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        firstHeaderElement.assertText(TODAY_JA);
        secondHeaderElement.assertText(WEEK_JA);
        for (int j = 0; j < 3; j++) {
View Full Code Here

        }
        firstFooterElement.assertText(TODAY_JA);
        secondFooterElement.assertText(WEEK_JA);

        // perform filtering by first column and verify data 'ru' locale
        localeChanger.tabs().get(3).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withDataTable.jsf"); // issue a GET request for view to update locale in JSP
        dataTable("formID:loadbundleDataTable").column(0).filter(DropDownFieldFilterInspector.class, "formID:loadbundleDataTable:filter1").makeFiltering(TODAY_RU);

        for (int i = 0; i < 2; i++) {
            firstHeaderElement.assertText(TODAY_RU);
View Full Code Here

            nextPaginationButton.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        }

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

     @Test
    public void testWithropDownField() {
        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf");
View Full Code Here

        dropDown.button().mouseDown();
        secondSuggestion.assertText(TODAY_AR);

        TabSetInspector localeChanger = tabSet("formID:localeChanger");
        // check 'es' locale
        localeChanger.tabs().get(1).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf"); // issue a GET request for view to update locale in JSP
        dropDown.button().mouseDown();
        secondSuggestion.assertText(TODAY_ES);

        // check 'ja' locale
View Full Code Here

        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf"); // issue a GET request for view to update locale in JSP
        dropDown.button().mouseDown();
        secondSuggestion.assertText(TODAY_ES);

        // check 'ja' locale
        localeChanger.tabs().get(2).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf"); // issue a GET request for view to update locale in JSP
        dropDown.button().mouseDown();
        secondSuggestion.assertText(TODAY_JA);

        // check 'ru' locale
View Full Code Here

        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf"); // issue a GET request for view to update locale in JSP
        dropDown.button().mouseDown();
        secondSuggestion.assertText(TODAY_JA);

        // check 'ru' locale
        localeChanger.tabs().get(3).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf"); // issue a GET request for view to update locale in JSP
        dropDown.button().mouseDown();
        secondSuggestion.assertText(TODAY_RU);

        // reset tab index for further running tests
View Full Code Here

        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf"); // issue a GET request for view to update locale in JSP
        dropDown.button().mouseDown();
        secondSuggestion.assertText(TODAY_RU);

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

     @Test
    public void testWithFoldingPanel() {
        testAppFunctionalPage("/components/loadbundle/withFoldingPanel.jsf");
View Full Code Here

        foldingPanel.content().assertText(TODAY_AR + WEEK_AR);

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

        // check 'es' locale
        localeChanger.tabs().get(1).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withFoldingPanel.jsf"); // issue a GET request for view to update locale in JSP
        foldingPanel.caption().assertText(TODAY_ES);
        foldingPanel.setExpanded(true);
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        foldingPanel.content().assertText(TODAY_ES + WEEK_ES);
View Full Code Here

        foldingPanel.setExpanded(true);
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        foldingPanel.content().assertText(TODAY_ES + WEEK_ES);

        // check 'ja' locale
        localeChanger.tabs().get(2).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withFoldingPanel.jsf"); // issue a GET request for view to update locale in JSP
        foldingPanel.caption().assertText(TODAY_JA);
        foldingPanel.setExpanded(true);
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        foldingPanel.content().assertText(TODAY_JA + WEEK_JA);
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.