Class SingleSelect
java.lang.Object
com.atlassian.jira.pageobjects.components.fields.SingleSelect
- Since:
- v4.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.pageobjects.elements.query.TimedQuery<Iterable<Suggestion>> clear()getError()getId()Deprecated.com.atlassian.pageobjects.elements.PageElementcom.atlassian.pageobjects.elements.query.TimedQuery<Iterable<com.atlassian.pageobjects.elements.PageElement>> com.atlassian.pageobjects.elements.query.TimedQuery<String> getValue()booleanbooleancom.atlassian.pageobjects.elements.query.TimedConditionThis will click the 'dropdown' icon in the picker, opening or closing the suggestions depending on the current state.type(CharSequence text) Type into this single select without any additional validation
-
Field Details
-
pageBinder
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder
-
-
Constructor Details
-
SingleSelect
public SingleSelect(com.atlassian.pageobjects.elements.PageElement parent)
-
-
Method Details
-
getId
-
triggerSuggestions
This will click the 'dropdown' icon in the picker, opening or closing the suggestions depending on the current state.- Returns:
- this single select instance
-
getSuggestions
Deprecated.useallSuggestions()as this method is prone to return wrong results due to race conditions. UsinggetSuggestionsTimed()will enforce clients to execute timed assertions and improve reliability of the tests- Returns:
- list of suggestions at any given moment
-
getSuggestionsTimed
-
getSuggestionsElementsTimed
public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<com.atlassian.pageobjects.elements.PageElement>> getSuggestionsElementsTimed() -
isSuggestionsOpen
public com.atlassian.pageobjects.elements.query.TimedCondition isSuggestionsOpen() -
select
-
getValue
-
getTimedValue
-
isAutocompleteDisabled
public boolean isAutocompleteDisabled() -
isDisabled
public boolean isDisabled() -
clear
-
getAvailableSuggestions
-
type
Type into this single select without any additional validation- Parameters:
text- text to type- Returns:
- this single select instance
-
typeAndWaitForSuggestions
-
getError
-
allSuggestions
-
getSuggestionsContainer
public com.atlassian.pageobjects.elements.PageElement getSuggestionsContainer()
-
allSuggestions()as this method is prone to return wrong results due to race conditions.