T - public abstract class AbstractListComponent<T extends ListItem> extends Object implements ListComponent<T>
| Constructor and Description |
|---|
AbstractListComponent() |
| Modifier and Type | Method and Description |
|---|---|
T |
getItem(ChoicePicker picker)
Gets item found by
picker. |
T |
getItem(int index)
Gets the item on the given
index. |
T |
getItem(String text)
Gets the item which text representation is exact match with the given param
text |
List<T> |
getItems()
Gets all items from this list.
|
List<T> |
getItems(MultipleChoicePicker picker)
Gets multiple items accoriding to the rules given in
picker param. |
protected List<org.openqa.selenium.WebElement> |
getItemsElements() |
protected List<T> |
getItemsFragments() |
protected Class<T> |
getListItemClass() |
org.openqa.selenium.WebElement |
getRootElement()
Gets the root of this component.
|
protected List<T> |
instantiateFragments(Class<T> klass,
List<org.openqa.selenium.WebElement> itemsRoots) |
protected T |
instantiateItemFragment(Class<T> klass,
org.openqa.selenium.WebElement item) |
boolean |
isEmpty()
Founds out whether the list is empty or not.
|
boolean |
isVisible() |
int |
size()
Gets the size of this list component.
|
public T getItem(int index)
ListComponentindex.getItem in interface ListComponent<T extends ListItem>index - index of the item to be returnedpublic T getItem(String text)
ListComponenttextgetItem in interface ListComponent<T extends ListItem>text - the text according to which the item will be returnedpublic T getItem(ChoicePicker picker)
ListComponentpicker.getItem in interface ListComponent<T extends ListItem>picker - for picking from the itemsChoicePickerHelper.ByIndexChoicePicker,
ChoicePickerHelper.ByVisibleTextChoicePickerpublic List<T> getItems(MultipleChoicePicker picker)
ListComponentpicker param.getItems in interface ListComponent<T extends ListItem>picker - for picking from listMultipleChoicePickerpublic List<T> getItems()
ListComponentgetItems in interface ListComponent<T extends ListItem>protected List<org.openqa.selenium.WebElement> getItemsElements()
public org.openqa.selenium.WebElement getRootElement()
ListComponentgetRootElement in interface ListComponent<T extends ListItem>protected List<T> instantiateFragments(Class<T> klass, List<org.openqa.selenium.WebElement> itemsRoots)
protected T instantiateItemFragment(Class<T> klass, org.openqa.selenium.WebElement item)
public boolean isEmpty()
ListComponentisEmpty in interface ListComponent<T extends ListItem>public int size()
ListComponentsize in interface ListComponent<T extends ListItem>public boolean isVisible()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.