Package org.richfaces.fragment.autocomplete

Examples of org.richfaces.fragment.autocomplete.SelectOrConfirm


     */

    private void typeSomethingToInputCheckThePoppupPressEnterCheckTheInputValue(RichFacesAutocomplete autocomplete,
        String whatTotype, String expectedValueInPopup, String expectedValueInInputAfterEnter) {

        SelectOrConfirm suggestions = autocomplete.type(whatTotype);

        String firstSuggestion = autocomplete.advanced().getSuggestionsElements().get(0).getText();
        assertTrue("The first row of popup should suggest " + expectedValueInPopup + " " + "when " + whatTotype
            + " is typed in input", expectedValueInPopup.equals(firstSuggestion));

        suggestions.select(ChoicePickerHelper.byVisibleText().contains(firstSuggestion));

        String valueInInput = autocomplete.advanced().getInput().getStringValue();
        assertEquals("The value in input should be different!", expectedValueInInputAfterEnter, valueInInput);

        autocomplete.advanced().getInput().clear();
View Full Code Here

TOP

Related Classes of org.richfaces.fragment.autocomplete.SelectOrConfirm

Copyright © 2018 www.massapicom. 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.