Class QueryableDropdownSelect

java.lang.Object
com.atlassian.jira.pageobjects.components.fields.QueryableDropdownSelect
All Implemented Interfaces:
AutoComplete

public class QueryableDropdownSelect extends Object implements AutoComplete
Since:
v4.4
  • 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

      @Inject protected ExtendedElementFinder extendedFinder
    • container

      protected com.atlassian.pageobjects.elements.PageElement container
    • field

      protected com.atlassian.pageobjects.elements.PageElement field
    • suggestions

      protected com.atlassian.pageobjects.elements.PageElement suggestions
    • icon

      protected com.atlassian.pageobjects.elements.PageElement icon
    • label

      protected com.atlassian.pageobjects.elements.PageElement label
  • Constructor Details

    • QueryableDropdownSelect

      public QueryableDropdownSelect(org.openqa.selenium.By containerSelector, org.openqa.selenium.By suggestionsSelector)
  • Method Details

    • getElements

      public void getElements()
    • isPresent

      public boolean isPresent()
      Description copied from interface: AutoComplete
      Returns if the control is present on page
      Specified by:
      isPresent in interface AutoComplete
      Returns:
      if present
    • timedIsPresent

      public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> timedIsPresent()
      Description copied from interface: AutoComplete
      Returns true if the control is present on page
      Specified by:
      timedIsPresent in interface AutoComplete
      Returns:
      true if present
    • clearQuery

      public AutoComplete clearQuery()
      Description copied from interface: AutoComplete
      Clear string in the textfield.
      Specified by:
      clearQuery in interface AutoComplete
    • query

      public AutoComplete query(String query)
      Description copied from interface: AutoComplete
      Types string into textfield and waits for input to be evaluated
      Specified by:
      query in interface AutoComplete
      Parameters:
      query - - input to be typed into text field
      Returns:
      instance
    • down

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

      public AutoComplete up(int steps)
      Description copied from interface: AutoComplete
      Navigates selection down using UP key. The number of times up is pressed is specified by steps.
      Specified by:
      up in interface AutoComplete
      Parameters:
      steps - - Number of times up key is pressed
      Returns:
      instance
    • acceptUsingMouse

      public AutoComplete acceptUsingMouse(MultiSelectSuggestion suggestion)
      Description copied from interface: AutoComplete
      Selects specified suggestion using mouse click
      Specified by:
      acceptUsingMouse in interface AutoComplete
      Parameters:
      suggestion - suggestion to be clicked
      Returns:
      instance
    • acceptUsingKeyboard

      public AutoComplete acceptUsingKeyboard(MultiSelectSuggestion suggestion)
      Description copied from interface: AutoComplete
      Presses enter on specified suggestion
      Specified by:
      acceptUsingKeyboard in interface AutoComplete
      Parameters:
      suggestion - - suggestion to be navigated to
      Returns:
      instance
    • getLabel

      public com.atlassian.pageobjects.elements.PageElement getLabel()
      Description copied from interface: AutoComplete
      If there is an overlabel, will return the PageElement
      Specified by:
      getLabel in interface AutoComplete
      Returns:
      Label element
    • getActiveSuggestion

      public MultiSelectSuggestion getActiveSuggestion()
      Description copied from interface: AutoComplete
      Gets active suggestion
      Specified by:
      getActiveSuggestion in interface AutoComplete
      Returns:
      active suggestion
    • getTimedActiveSuggestion

      public com.atlassian.pageobjects.elements.query.TimedQuery<MultiSelectSuggestion> getTimedActiveSuggestion()
      Description copied from interface: AutoComplete
      Gets active suggestion as a timed query
      Specified by:
      getTimedActiveSuggestion in interface AutoComplete
      Returns:
      active suggestion
    • getSuggestionsContainerElement

      public com.atlassian.pageobjects.elements.PageElement getSuggestionsContainerElement()
    • getSuggestionsElements

      public List<com.atlassian.pageobjects.elements.PageElement> getSuggestionsElements()
    • getSuggestions

      public List<MultiSelectSuggestion> getSuggestions()
      Description copied from interface: AutoComplete
      Gets a list of suggestions visible in dropdown
      Specified by:
      getSuggestions in interface AutoComplete
      Returns:
      suggestions list
    • getTimedSuggestions

      public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<MultiSelectSuggestion>> getTimedSuggestions()
      Description copied from interface: AutoComplete
      Gets a list of suggestions visible in dropdown, as a timed query
      Specified by:
      getTimedSuggestions in interface AutoComplete
      Returns:
      suggestions list query