Interface AutoComplete

All Known Implementing Classes:
QueryableDropdownSelect

public interface AutoComplete
An interface for Autocomplete pickers. E.G dot, multiselect, singleselect, userpickers etc
Since:
v4.4
  • Method Details

    • getSuggestions

      List<MultiSelectSuggestion> getSuggestions()
      Gets a list of suggestions visible in dropdown
      Returns:
      suggestions list
    • getTimedSuggestions

      com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<MultiSelectSuggestion>> getTimedSuggestions()
      Gets a list of suggestions visible in dropdown, as a timed query
      Returns:
      suggestions list query
    • clearQuery

      AutoComplete clearQuery()
      Clear string in the textfield.
    • query

      AutoComplete query(String query)
      Types string into textfield and waits for input to be evaluated
      Parameters:
      query - - input to be typed into text field
      Returns:
      instance
    • acceptUsingMouse

      AutoComplete acceptUsingMouse(MultiSelectSuggestion suggestion)
      Selects specified suggestion using mouse click
      Parameters:
      suggestion - suggestion to be clicked
      Returns:
      instance
    • acceptUsingKeyboard

      AutoComplete acceptUsingKeyboard(MultiSelectSuggestion suggestion)
      Presses enter on specified suggestion
      Parameters:
      suggestion - - suggestion to be navigated to
      Returns:
      instance
    • down

      AutoComplete down(int steps)
      Navigates selection down using DOWN key. The number of times down is pressed is specified by steps.
      Parameters:
      steps - - Number of times down key is pressed
      Returns:
      instance
    • up

      AutoComplete up(int steps)
      Navigates selection down using UP key. The number of times up is pressed is specified by steps.
      Parameters:
      steps - - Number of times up key is pressed
      Returns:
      instance
    • getLabel

      com.atlassian.pageobjects.elements.PageElement getLabel()
      If there is an overlabel, will return the PageElement
      Returns:
      Label element
    • getActiveSuggestion

      MultiSelectSuggestion getActiveSuggestion()
      Gets active suggestion
      Returns:
      active suggestion
    • getTimedActiveSuggestion

      com.atlassian.pageobjects.elements.query.TimedQuery<MultiSelectSuggestion> getTimedActiveSuggestion()
      Gets active suggestion as a timed query
      Returns:
      active suggestion
    • isPresent

      boolean isPresent()
      Returns if the control is present on page
      Returns:
      if present
    • timedIsPresent

      com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> timedIsPresent()
      Returns true if the control is present on page
      Returns:
      true if present