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
Modifier and TypeMethodDescriptionacceptUsingKeyboard(MultiSelectSuggestion suggestion) Presses enter on specified suggestionacceptUsingMouse(MultiSelectSuggestion suggestion) Selects specified suggestion using mouse clickClear string in the textfield.down(int steps) Navigates selection down using DOWN key.Gets active suggestioncom.atlassian.pageobjects.elements.PageElementgetLabel()If there is an overlabel, will return the PageElementGets a list of suggestions visible in dropdowncom.atlassian.pageobjects.elements.query.TimedQuery<MultiSelectSuggestion>Gets active suggestion as a timed querycom.atlassian.pageobjects.elements.query.TimedQuery<Iterable<MultiSelectSuggestion>>Gets a list of suggestions visible in dropdown, as a timed querybooleanReturns if the control is present on pageTypes string into textfield and waits for input to be evaluatedcom.atlassian.pageobjects.elements.query.TimedQuery<Boolean>Returns true if the control is present on pageup(int steps) Navigates selection down using UP key.
-
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
Types string into textfield and waits for input to be evaluated- Parameters:
query- - input to be typed into text field- Returns:
- instance
-
acceptUsingMouse
Selects specified suggestion using mouse click- Parameters:
suggestion- suggestion to be clicked- Returns:
- instance
-
acceptUsingKeyboard
Presses enter on specified suggestion- Parameters:
suggestion- - suggestion to be navigated to- Returns:
- instance
-
down
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
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:
trueif present
-