Examples of ByVisibleTextChoicePicker


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

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

        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

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

        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
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.