public interface

AutoComplete

com.atlassian.jira.pageobjects.components.fields.AutoComplete
Known Indirect Subclasses

Class Overview

An interface for Autocomplete pickers. E.G dot, multiselect, singleselect, userpickers etc

Summary

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
PageElement getLabel()
If there is an overlabel, will return the PageElement
List<MultiSelectSuggestion> getSuggestions()
Gets a list of suggestions visible in dropdown
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.

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 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 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