Class MultiSelect
java.lang.Object
com.atlassian.jira.pageobjects.components.fields.MultiSelect
- Direct Known Subclasses:
ImmediateMultiSelect,IssuePicker,MultiSelect,NoBrowseUsersUserPicker
Minimal implementation of a FrotherControl. Constructor takes in the id the frother control is bound to.
- Since:
- v4.4
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementFinderprotected com.atlassian.pageobjects.elements.PageElementprotected ExtendedElementFinderprotected final Stringprotected final com.google.common.base.Function<String, org.openqa.selenium.By> protected com.atlassian.pageobjects.PageBinderprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.timeout.Timeouts -
Constructor Summary
ConstructorsConstructorDescriptionMultiSelect(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
Modifier and TypeMethodDescriptionvoidAdds an item by typing it in and picking the first suggestion.voidAdds an item by typing it in and picking the first suggestion.voidvoidaddNotWait(String item) com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<SuggestionGroup>> com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<Suggestion>> voidfreeInput(CharSequence query) Focus on multi select, input some value and blurcom.atlassian.pageobjects.elements.query.TimedQuery<String> getError()getItemByName(String name) com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<MultiSelect.Lozenge>> getItems()getSuggestionGroup(String groupId) com.atlassian.pageobjects.elements.query.TimedConditioncom.atlassian.pageobjects.elements.query.TimedQuery<Boolean> com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> hasItems()com.atlassian.pageobjects.elements.query.TimedConditionhasSuggestionGroup(String groupId) voidprotected com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> com.atlassian.pageobjects.elements.query.TimedConditioncom.atlassian.pageobjects.elements.query.TimedQuery<Boolean> query(CharSequence query) Clears the current issue query and types the new query.voidRemoves a given item by clicking on the (x) next to the lozenge.Open suggestions drop-down using the clickable trigger in the query input element.
-
Field Details
-
elementFinder
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder -
pageBinder
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder -
timeouts
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts -
extendedFinder
-
textArea
protected com.atlassian.pageobjects.elements.PageElement textArea -
selectDiv
protected com.atlassian.pageobjects.elements.PageElement selectDiv -
errorDiv
protected com.atlassian.pageobjects.elements.PageElement errorDiv -
suggestionsContainer
protected com.atlassian.pageobjects.elements.PageElement suggestionsContainer -
dropTrigger
protected com.atlassian.pageobjects.elements.PageElement dropTrigger -
id
-
itemLocator
-
-
Constructor Details
-
MultiSelect
Constructs the minimal implementation based on a given select[multiple] id.- Parameters:
id- the id of the select[multiple] element
-
MultiSelect
public 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.- Parameters:
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 Details
-
initialize
public void initialize() -
isPresent
-
query
Clears the current issue query and types the new query.- Parameters:
query- the query to look up issues- Returns:
- this multi select instance
-
queryAndWaitForOpenSuggestions
-
freeInput
Focus on multi select, input some value and blur- Parameters:
query- input for multi select- Returns:
- this multi select instance
-
triggerSuggestions
Open suggestions drop-down using the clickable trigger in the query input element.Note: if the suggestions are currently open, this action will close them. Therefore this method does not wait for the outcome of the trigger. Use
isSuggestionsPresent()to wait for the expected result.- Returns:
- this multi select
-
openSuggestions
-
clearQuery
-
awayFromQueryInputArea
-
add
Adds an item by typing it in and picking the first suggestion. Assumes that the item passed in will be used as the lozenge label- Parameters:
item- the item to add
-
add
Adds an item by typing it in and picking the first suggestion. Assumes that the item passed in will be used as the lozenge label- Parameters:
item- the item to add
-
addAll
-
addNotWait
-
selectActiveSuggestion
-
remove
Removes a given item by clicking on the (x) next to the lozenge.- Parameters:
item- the item to remove
-
clearAllItems
public void clearAllItems() -
isSuggestionsLoading
public com.atlassian.pageobjects.elements.query.TimedCondition isSuggestionsLoading() -
isSuggestionsPresent
-
allSuggestionGroups
public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<SuggestionGroup>> allSuggestionGroups() -
hasSuggestionGroup
-
getSuggestionGroup
-
getActiveSuggestionText
-
hasActiveSuggestion
public com.atlassian.pageobjects.elements.query.TimedCondition hasActiveSuggestion() -
getActiveSuggestion
-
allSuggestions
-
getItemByName
-
getItems
public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<MultiSelect.Lozenge>> getItems() -
hasItems
-
hasItem
-
getError
-
waitUntilError
-