java.lang.Object
com.atlassian.jira.pageobjects.components.fields.SingleSelect

public class SingleSelect extends Object
Since:
v4.4
  • Field Details

    • pageBinder

      @Inject protected com.atlassian.pageobjects.PageBinder pageBinder
  • Constructor Details

    • SingleSelect

      public SingleSelect(com.atlassian.pageobjects.elements.PageElement parent)
  • Method Details

    • getId

      public String getId()
    • triggerSuggestions

      public SingleSelect 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 public List<String> getSuggestions()
      Deprecated.
      use allSuggestions() as this method is prone to return wrong results due to race conditions. Using getSuggestionsTimed() will enforce clients to execute timed assertions and improve reliability of the tests
      Returns:
      list of suggestions at any given moment
    • getSuggestionsTimed

      public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<String>> 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

      public SingleSelect select(String value)
    • getValue

      public String getValue()
    • getTimedValue

      public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTimedValue()
    • isAutocompleteDisabled

      public boolean isAutocompleteDisabled()
    • isDisabled

      public boolean isDisabled()
    • clear

      public SingleSelect clear()
    • getAvailableSuggestions

      public Iterable<String> getAvailableSuggestions()
    • type

      public SingleSelect type(CharSequence text)
      Type into this single select without any additional validation
      Parameters:
      text - text to type
      Returns:
      this single select instance
    • typeAndWaitForSuggestions

      public SingleSelect typeAndWaitForSuggestions(CharSequence text)
    • getError

      public String getError()
    • allSuggestions

      public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<Suggestion>> allSuggestions()
    • getSuggestionsContainer

      public com.atlassian.pageobjects.elements.PageElement getSuggestionsContainer()