public class

MultiSelect

extends Object
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.components.fields.MultiSelect
Known Direct Subclasses

Class Overview

Minimal implementation of a FrotherControl. Constructor takes in the id the frother control is bound to.

Summary

Nested Classes
class MultiSelect.Lozenge  
Fields
protected PageElement dropTrigger
protected PageElementFinder elementFinder
protected PageElement errorDiv
protected ExtendedElementFinder extendedFinder
protected final String id
protected final Function<String, By> itemLocator
protected PageBinder pageBinder
protected PageElement selectDiv
protected PageElement suggestionsContainer
protected PageElement textArea
protected Timeouts timeouts
Public Constructors
MultiSelect(String id)
Constructs the minimal implementation based on a given select[multiple] id.
MultiSelect(String id, Function<String, By> itemLocator)
Constructs the minimal implementation based on a given select[multiple] id.
Public Methods
void add(String item, String label)
Adds an item by typing it in and picking the first suggestion.
void add(String item)
Adds an item by typing it in and picking the first suggestion.
void addNotWait(String item)
TimedQuery<Iterable<SuggestionGroup>> allSuggestionGroups()
TimedQuery<Iterable<Suggestion>> allSuggestions()
MultiSelect awayFromQueryInputArea()
void clearAllItems()
MultiSelect clearQuery()
Suggestion getActiveSuggestion()
TimedQuery<String> getActiveSuggestionText()
String getError()
MultiSelect.Lozenge getItemByName(String name)
TimedQuery<Iterable<MultiSelect.Lozenge>> getItems()
SuggestionGroup getSuggestionGroup(String groupId)
TimedCondition hasActiveSuggestion()
TimedQuery<Boolean> hasItem(String name)
TimedQuery<Boolean> hasItems()
TimedCondition hasSuggestionGroup(String groupId)
void initialize()
TimedCondition isSuggestionsLoading()
TimedQuery<Boolean> isSuggestionsPresent()
MultiSelect query(CharSequence query)
Clears the current issue query and types the new query.
void remove(String item)
Removes a given item by clicking on the (x) next to the lozenge.
MultiSelect selectActiveSuggestion()
MultiSelect triggerSuggestions()
Open suggestions drop-down using the clickable trigger in the query input element.
String waitUntilError()
Protected Methods
TimedQuery<Boolean> isPresent()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected PageElement dropTrigger

protected PageElementFinder elementFinder

protected PageElement errorDiv

protected ExtendedElementFinder extendedFinder

protected final String id

protected final Function<String, By> itemLocator

protected PageBinder pageBinder

protected PageElement selectDiv

protected PageElement suggestionsContainer

protected PageElement textArea

protected Timeouts timeouts

Public Constructors

public MultiSelect (String id)

Constructs the minimal implementation based on a given select[multiple] id.

Parameters
id the id of the select[multiple] element

public MultiSelect (String id, Function<String, By> itemLocator)

Constructs the minimal implementation based on a given select[multiple] id.

Parameters
id the id of the select[multiple] element
itemLocator 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

Public Methods

public void add (String item, String label)

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

public void add (String item)

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

public void addNotWait (String item)

public TimedQuery<Iterable<SuggestionGroup>> allSuggestionGroups ()

public TimedQuery<Iterable<Suggestion>> allSuggestions ()

public MultiSelect awayFromQueryInputArea ()

public void clearAllItems ()

public MultiSelect clearQuery ()

public Suggestion getActiveSuggestion ()

public TimedQuery<String> getActiveSuggestionText ()

public String getError ()

public MultiSelect.Lozenge getItemByName (String name)

public TimedQuery<Iterable<MultiSelect.Lozenge>> getItems ()

public SuggestionGroup getSuggestionGroup (String groupId)

public TimedCondition hasActiveSuggestion ()

public TimedQuery<Boolean> hasItem (String name)

public TimedQuery<Boolean> hasItems ()

public TimedCondition hasSuggestionGroup (String groupId)

public void initialize ()

public TimedCondition isSuggestionsLoading ()

public TimedQuery<Boolean> isSuggestionsPresent ()

public MultiSelect query (CharSequence query)

Clears the current issue query and types the new query.

Parameters
query the query to look up issues
Returns
  • this multi select instance

public void remove (String item)

Removes a given item by clicking on the (x) next to the lozenge.

Parameters
item the item to remove

public MultiSelect selectActiveSuggestion ()

public MultiSelect 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

public String waitUntilError ()

Protected Methods

protected TimedQuery<Boolean> isPresent ()