assertTrue(pickMultiple.isEmpty());
}
@Test
public void testPickFromRange() {
ByIndexChoicePicker picker = ChoicePickerHelper.byIndex().fromRange(Range.closed(0, 2));
List<WebElement> pickMultiple = picker.pickMultiple(myFragment.getDivs());
assertEquals(Lists.newArrayList("1", "2", "3"), getStringsFromElements(pickMultiple));
picker = ChoicePickerHelper.byIndex().fromRange(Range.open(0, 2));
pickMultiple = picker.pickMultiple(myFragment.getDivs());
assertEquals(Lists.newArrayList("2"), getStringsFromElements(pickMultiple));
picker = ChoicePickerHelper.byIndex().fromRange(Range.atLeast(3));
pickMultiple = picker.pickMultiple(myFragment.getDivs());
assertEquals(Lists.newArrayList("4", "5", "6"), getStringsFromElements(pickMultiple));
picker = ChoicePickerHelper.byIndex().fromRange(Range.<Integer>all());
pickMultiple = picker.pickMultiple(myFragment.getDivs());
assertEquals(Lists.newArrayList("1", "2", "3", "4", "5", "6"), getStringsFromElements(pickMultiple));
}