Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.DropDownFieldInspector.button()


        DropDownFieldInspector dropDown = dropDownField("formID:plants");
        ElementInspector secondSuggestion = dropDown.popup().items().get(2);

        // check 'ar' locale
        dropDown.button().mouseDown();
        secondSuggestion.assertText(TODAY_AR);

        TabSetInspector localeChanger = tabSet("formID:localeChanger");
        // check 'es' locale
        localeChanger.tabs().get(1).clickAndWait();
View Full Code Here


        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
        localeChanger.tabs().get(2).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf"); // issue a GET request for view to update locale in JSP
View Full Code Here

        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
        localeChanger.tabs().get(3).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf"); // issue a GET request for view to update locale in JSP
View Full Code Here

        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
        localeChanger.tabs().get(0).clickAndWait();
    }
View Full Code Here

        // with mouse help
        DropDownFieldInspector first = dropDownField("formID:first");
        if (isDropDown) {
            first.popup().assertVisible(false);
            first.button().mouseDown();
            first.popup().assertVisible(true);
            first.button().mouseDown();
        }

        // with keyboard help
View Full Code Here

        DropDownFieldInspector first = dropDownField("formID:first");
        if (isDropDown) {
            first.popup().assertVisible(false);
            first.button().mouseDown();
            first.popup().assertVisible(true);
            first.button().mouseDown();
        }

        // with keyboard help
        first.popup().assertVisible(false);
        first.field().keyDown(KeyEvent.VK_DOWN); // down key
View Full Code Here

        testAppFunctionalPage(pageUrl);

        String[] referenceCollection = {"Red", "Yellow", "Blue"};
        DropDownFieldInspector first = dropDownField("formID:first");
        if (isDropDown)
            first.button().mouseDown();
        else
            first.field().keyDown(KeyEvent.VK_DOWN); // down key

        first.popup().assertItemTexts(referenceCollection);
View Full Code Here

        first.popup().assertItemTexts(referenceCollection);

        // check items defined by binding
        DropDownFieldInspector second = dropDownField("formID:second");
        if (isDropDown)
            second.button().mouseDown();
        else
            second.field().keyDown(KeyEvent.VK_DOWN);
        second.popup().assertItemTexts(referenceCollection);
    }
View Full Code Here

        first.field().keyPress(13);
        first.field().assertValue("Red");

        DropDownFieldInspector second = dropDownField("formID:second");
        if (isDropDown) {
            second.button().mouseDown();
            second.popup().assertVisible(true);
            second.popup().items().get(0).click();
        } else {
            second.field().keyDown(KeyEvent.VK_DOWN);
            second.popup().assertVisible(true);
View Full Code Here

        if (makeSubmit) {
            submitElement.clickAndWait();
        }
        DropDownFieldInspector dropDown = dropDownField("formID:styled");

        ElementInspector button = dropDown.button();
        ElementInspector field = dropDown.field();
        DropDownPopupInspector popup = dropDown.popup();
        List<ElementInspector> items = popup.items();

        if (isFocused) {
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.