public static class ChoicePickerHelper.ByIndexChoicePicker extends Object implements ChoicePicker, MultipleChoicePicker
Modifier and Type | Method and Description |
---|---|
ChoicePickerHelper.ByIndexChoicePicker |
beforeLast(int positionsBeforeLast) |
ChoicePickerHelper.ByIndexChoicePicker |
everyNth(int nth)
Picks every nth index from 0 (including).
|
ChoicePickerHelper.ByIndexChoicePicker |
everyNth(int nth,
int from)
Picks every nth index from @from (including).
|
ChoicePickerHelper.ByIndexChoicePicker |
first() |
ChoicePickerHelper.ByIndexChoicePicker |
fromRange(com.google.common.collect.Range<Integer> range)
Picks every index from given range.
|
ChoicePickerHelper.ByIndexChoicePicker |
index(int index) |
ChoicePickerHelper.ByIndexChoicePicker |
indexes(Integer... indexes) |
ChoicePickerHelper.ByIndexChoicePicker |
last() |
org.openqa.selenium.WebElement |
pick(List<org.openqa.selenium.WebElement> options)
Picks the first WebElement from the @options, that meets all requirements depending on implementation.
|
List<org.openqa.selenium.WebElement> |
pickMultiple(List<org.openqa.selenium.WebElement> options)
Picks multiple WebElements from the @options, that meets all requirements depending on implementation.
|
String |
toString() |
public ChoicePickerHelper.ByIndexChoicePicker beforeLast(int positionsBeforeLast)
public ChoicePickerHelper.ByIndexChoicePicker everyNth(int nth)
nth
- has to be greater than 1public ChoicePickerHelper.ByIndexChoicePicker everyNth(int nth, int from)
nth
- has to be greater than 1 (the iteration step)from
- has to be greater or equals to 0public ChoicePickerHelper.ByIndexChoicePicker first()
public ChoicePickerHelper.ByIndexChoicePicker fromRange(com.google.common.collect.Range<Integer> range)
range
- range from which will be the indexes pickedpublic ChoicePickerHelper.ByIndexChoicePicker index(int index)
public ChoicePickerHelper.ByIndexChoicePicker indexes(Integer... indexes)
public ChoicePickerHelper.ByIndexChoicePicker last()
public org.openqa.selenium.WebElement pick(List<org.openqa.selenium.WebElement> options)
ChoicePicker
pick
in interface ChoicePicker
options
- options to be picked from.public List<org.openqa.selenium.WebElement> pickMultiple(List<org.openqa.selenium.WebElement> options)
MultipleChoicePicker
pickMultiple
in interface MultipleChoicePicker
options
- options to be picked fromCopyright © 2014 JBoss by Red Hat. All Rights Reserved.