com.atlassian.jira.pageobjects.components.fields
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 Summary
 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
 com.atlassian.pageobjects.elements.PageElement getLabel()
          If there is an overlabel, will return the PageElement
 List<MultiSelectSuggestion> getSuggestions()
          Gets a list of suggestions visible in dropdown
 com.atlassian.pageobjects.elements.query.TimedQuery<MultiSelectSuggestion> getTimedActiveSuggestion()
          Gets active suggestion as a timed query
 com.atlassian.pageobjects.elements.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
 com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> timedIsPresent()
          Returns true if the control is present on page
 AutoComplete up(int steps)
          Navigates selection down using UP key.
 

Method Detail

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.