Package org.richfaces.fragment.common.picker.ChoicePickerHelper

Examples of org.richfaces.fragment.common.picker.ChoicePickerHelper.ByVisibleTextChoicePicker


public class TestChoicePickerByVisibleText extends AbstractChoicePickerTest {

    @Test
    public void testMultipleChoicePickerNonExistingElement() {
        ByVisibleTextChoicePicker picker = ChoicePickerHelper.byVisibleText().match("non existing");
        List<WebElement> elements = picker.pickMultiple(myFragment.getDivs());
        assertTrue(elements.isEmpty());
    }
View Full Code Here


        assertTrue(elements.isEmpty());
    }

    @Test
    public void testPickExistingElement() {
        ByVisibleTextChoicePicker picker = ChoicePickerHelper.byVisibleText().match("1");
        WebElement element = picker.pick(myFragment.getDivs());
        assertNotNull(element);
        assertEquals("1", element.getText());
    }
View Full Code Here

        assertEquals("1", element.getText());
    }

    @Test
    public void testPickNotExistingElement() {
        ByVisibleTextChoicePicker picker = ChoicePickerHelper.byVisibleText().match("non existing");
        WebElement element = picker.pick(myFragment.getDivs());
        assertNull(element);
    }
View Full Code Here

TOP

Related Classes of org.richfaces.fragment.common.picker.ChoicePickerHelper.ByVisibleTextChoicePicker

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.