|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.pageobjects.components.MultiSelect
public class MultiSelect
Minimal implementation of a FrotherControl. Constructor takes in the id the frother control is bound to.
| Nested Class Summary | |
|---|---|
static class |
MultiSelect.Item
|
| Constructor Summary | |
|---|---|
MultiSelect(String id)
Constructs the minimal implementation based on a given select[multiple] id. |
|
MultiSelect(String id,
com.google.common.base.Function<String,org.openqa.selenium.By> itemLocator)
Constructs the minimal implementation based on a given select[multiple] id. |
|
| Method Summary | |
|---|---|
void |
add(String item)
Adds an item by typing it in and picking the first suggestion. |
void |
addNotWait(String item)
|
void |
clear()
|
String |
getError()
|
MultiSelect.Item |
getItemByName(String name)
|
List<MultiSelect.Item> |
getItems()
|
protected com.atlassian.pageobjects.elements.PageElement |
getTextArea()
|
com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
hasItem(String name)
|
com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
hasItems()
|
void |
initialize()
|
void |
remove(String item)
Removes a given item by clicking on the (x) next to the lozenge. |
String |
waitUntilError()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiSelect(String id)
id - the id of the select[multiple] element
public MultiSelect(String id,
com.google.common.base.Function<String,org.openqa.selenium.By> itemLocator)
id - the id of the select[multiple] elementitemLocator - a function that given a string will create a locator to locate the item for this multiselect given the name or all items if no name is provided| Method Detail |
|---|
public void initialize()
public void add(String item)
item - the item to addpublic void addNotWait(String item)
public void remove(String item)
item - the item to removepublic void clear()
public MultiSelect.Item getItemByName(String name)
public List<MultiSelect.Item> getItems()
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasItems()
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasItem(String name)
public String getError()
public String waitUntilError()
protected com.atlassian.pageobjects.elements.PageElement getTextArea()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||