public class

QueryableDropdownSelect

extends Object
implements AutoComplete
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.components.fields.QueryableDropdownSelect

Summary

Fields
protected PageElement container
protected PageElementFinder elementFinder
protected ExtendedElementFinder extendedFinder
protected PageElement field
protected PageElement icon
protected PageElement label
protected PageBinder pageBinder
protected PageElement suggestions
protected Timeouts timeouts
Public Constructors
QueryableDropdownSelect(By containerSelector, By suggestionsSelector)
Public Methods
AutoComplete acceptUsingKeyboard(MultiSelectSuggestion suggestion)
Presses enter on specified suggestion
AutoComplete acceptUsingMouse(MultiSelectSuggestion suggestion)
Selects specified suggestion using mouse click
AutoComplete clearQuery()
Clear string in the textfield.
AutoComplete down(int steps)
Navigates selection down using DOWN key.
MultiSelectSuggestion getActiveSuggestion()
Gets active suggestion
void getElements()
PageElement getLabel()
If there is an overlabel, will return the PageElement
List<MultiSelectSuggestion> getSuggestions()
Gets a list of suggestions visible in dropdown
PageElement getSuggestionsContainerElement()
List<PageElement> getSuggestionsElements()
TimedQuery<MultiSelectSuggestion> getTimedActiveSuggestion()
Gets active suggestion as a timed query
TimedQuery<Iterable<MultiSelectSuggestion>> getTimedSuggestions()
Gets a list of suggestions visible in dropdown, as a timed query
boolean isPresent()
Returns if the control is present on page
AutoComplete query(String query)
Types string into textfield and waits for input to be evaluated
TimedQuery<Boolean> timedIsPresent()
Returns true if the control is present on page
AutoComplete up(int steps)
Navigates selection down using UP key.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.pageobjects.components.fields.AutoComplete

Fields

protected PageElement container

protected PageElementFinder elementFinder

protected ExtendedElementFinder extendedFinder

protected PageElement field

protected PageElement icon

protected PageElement label

protected PageBinder pageBinder

protected PageElement suggestions

protected Timeouts timeouts

Public Constructors

public QueryableDropdownSelect (By containerSelector, By suggestionsSelector)

Public Methods

public AutoComplete acceptUsingKeyboard (MultiSelectSuggestion suggestion)

Presses enter on specified suggestion

Parameters
suggestion - suggestion to be navigated to
Returns
  • instance

public AutoComplete acceptUsingMouse (MultiSelectSuggestion suggestion)

Selects specified suggestion using mouse click

Parameters
suggestion suggestion to be clicked
Returns
  • instance

public AutoComplete clearQuery ()

Clear string in the textfield.

public 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

public MultiSelectSuggestion getActiveSuggestion ()

Gets active suggestion

Returns
  • active suggestion

public void getElements ()

public PageElement getLabel ()

If there is an overlabel, will return the PageElement

Returns
  • Label element

public List<MultiSelectSuggestion> getSuggestions ()

Gets a list of suggestions visible in dropdown

Returns
  • suggestions list

public PageElement getSuggestionsContainerElement ()

public List<PageElement> getSuggestionsElements ()

public TimedQuery<MultiSelectSuggestion> getTimedActiveSuggestion ()

Gets active suggestion as a timed query

Returns
  • active suggestion

public TimedQuery<Iterable<MultiSelectSuggestion>> getTimedSuggestions ()

Gets a list of suggestions visible in dropdown, as a timed query

Returns
  • suggestions list query

public boolean isPresent ()

Returns if the control is present on page

Returns
  • if present

public 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

public TimedQuery<Boolean> timedIsPresent ()

Returns true if the control is present on page

Returns
  • true if present

public 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