public class QueryableDropdownSelect extends Object implements AutoComplete
| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.pageobjects.elements.PageElement |
container |
protected com.atlassian.pageobjects.elements.PageElementFinder |
elementFinder |
protected ExtendedElementFinder |
extendedFinder |
protected com.atlassian.pageobjects.elements.PageElement |
field |
protected com.atlassian.pageobjects.elements.PageElement |
icon |
protected com.atlassian.pageobjects.elements.PageElement |
label |
protected com.atlassian.pageobjects.PageBinder |
pageBinder |
protected com.atlassian.pageobjects.elements.PageElement |
suggestions |
protected com.atlassian.pageobjects.elements.timeout.Timeouts |
timeouts |
| Constructor and Description |
|---|
QueryableDropdownSelect(org.openqa.selenium.By containerSelector,
org.openqa.selenium.By suggestionsSelector) |
| Modifier and Type | Method and Description |
|---|---|
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() |
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.PageElement |
getSuggestionsContainerElement() |
List<com.atlassian.pageobjects.elements.PageElement> |
getSuggestionsElements() |
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.
|
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts
@Inject protected ExtendedElementFinder extendedFinder
protected com.atlassian.pageobjects.elements.PageElement container
protected com.atlassian.pageobjects.elements.PageElement field
protected com.atlassian.pageobjects.elements.PageElement suggestions
protected com.atlassian.pageobjects.elements.PageElement icon
protected com.atlassian.pageobjects.elements.PageElement label
public QueryableDropdownSelect(org.openqa.selenium.By containerSelector,
org.openqa.selenium.By suggestionsSelector)
public void getElements()
public boolean isPresent()
AutoCompleteisPresent in interface AutoCompletepublic com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> timedIsPresent()
AutoCompletetimedIsPresent in interface AutoCompletetrue if presentpublic AutoComplete clearQuery()
AutoCompleteclearQuery in interface AutoCompletepublic AutoComplete query(String query)
AutoCompletequery in interface AutoCompletequery - - input to be typed into text fieldpublic AutoComplete down(int steps)
AutoCompletedown in interface AutoCompletesteps - - Number of times down key is pressedpublic AutoComplete up(int steps)
AutoCompleteup in interface AutoCompletesteps - - Number of times up key is pressedpublic AutoComplete acceptUsingMouse(MultiSelectSuggestion suggestion)
AutoCompleteacceptUsingMouse in interface AutoCompletesuggestion - suggestion to be clickedpublic AutoComplete acceptUsingKeyboard(MultiSelectSuggestion suggestion)
AutoCompleteacceptUsingKeyboard in interface AutoCompletesuggestion - - suggestion to be navigated topublic com.atlassian.pageobjects.elements.PageElement getLabel()
AutoCompletegetLabel in interface AutoCompletepublic MultiSelectSuggestion getActiveSuggestion()
AutoCompletegetActiveSuggestion in interface AutoCompletepublic com.atlassian.pageobjects.elements.query.TimedQuery<MultiSelectSuggestion> getTimedActiveSuggestion()
AutoCompletegetTimedActiveSuggestion in interface AutoCompletepublic com.atlassian.pageobjects.elements.PageElement getSuggestionsContainerElement()
public List<com.atlassian.pageobjects.elements.PageElement> getSuggestionsElements()
public List<MultiSelectSuggestion> getSuggestions()
AutoCompletegetSuggestions in interface AutoCompletepublic com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<MultiSelectSuggestion>> getTimedSuggestions()
AutoCompletegetTimedSuggestions in interface AutoCompleteCopyright © 2002-2020 Atlassian. All Rights Reserved.