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()
AutoComplete
isPresent
in interface AutoComplete
public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> timedIsPresent()
AutoComplete
timedIsPresent
in interface AutoComplete
true
if presentpublic AutoComplete clearQuery()
AutoComplete
clearQuery
in interface AutoComplete
public AutoComplete query(String query)
AutoComplete
query
in interface AutoComplete
query
- - input to be typed into text fieldpublic AutoComplete down(int steps)
AutoComplete
down
in interface AutoComplete
steps
- - Number of times down key is pressedpublic AutoComplete up(int steps)
AutoComplete
up
in interface AutoComplete
steps
- - Number of times up key is pressedpublic AutoComplete acceptUsingMouse(MultiSelectSuggestion suggestion)
AutoComplete
acceptUsingMouse
in interface AutoComplete
suggestion
- suggestion to be clickedpublic AutoComplete acceptUsingKeyboard(MultiSelectSuggestion suggestion)
AutoComplete
acceptUsingKeyboard
in interface AutoComplete
suggestion
- - suggestion to be navigated topublic com.atlassian.pageobjects.elements.PageElement getLabel()
AutoComplete
getLabel
in interface AutoComplete
public MultiSelectSuggestion getActiveSuggestion()
AutoComplete
getActiveSuggestion
in interface AutoComplete
public com.atlassian.pageobjects.elements.query.TimedQuery<MultiSelectSuggestion> getTimedActiveSuggestion()
AutoComplete
getTimedActiveSuggestion
in interface AutoComplete
public com.atlassian.pageobjects.elements.PageElement getSuggestionsContainerElement()
public List<com.atlassian.pageobjects.elements.PageElement> getSuggestionsElements()
public List<MultiSelectSuggestion> getSuggestions()
AutoComplete
getSuggestions
in interface AutoComplete
public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<MultiSelectSuggestion>> getTimedSuggestions()
AutoComplete
getTimedSuggestions
in interface AutoComplete
Copyright © 2002-2019 Atlassian. All Rights Reserved.