Class QueryableDropdownSelect
java.lang.Object
com.atlassian.jira.pageobjects.components.fields.QueryableDropdownSelect
- All Implemented Interfaces:
AutoComplete
- Since:
- v4.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementFinderprotected ExtendedElementFinderprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.PageBinderprotected com.atlassian.pageobjects.elements.PageElementprotected com.atlassian.pageobjects.elements.timeout.Timeouts -
Constructor Summary
ConstructorsConstructorDescriptionQueryableDropdownSelect(org.openqa.selenium.By containerSelector, org.openqa.selenium.By suggestionsSelector) -
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 suggestionvoidcom.atlassian.pageobjects.elements.PageElementgetLabel()If there is an overlabel, will return the PageElementGets a list of suggestions visible in dropdowncom.atlassian.pageobjects.elements.PageElementList<com.atlassian.pageobjects.elements.PageElement> com.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.
-
Field Details
-
elementFinder
@Inject protected com.atlassian.pageobjects.elements.PageElementFinder elementFinder -
pageBinder
@Inject protected com.atlassian.pageobjects.PageBinder pageBinder -
timeouts
@Inject protected com.atlassian.pageobjects.elements.timeout.Timeouts timeouts -
extendedFinder
-
container
protected com.atlassian.pageobjects.elements.PageElement container -
field
protected com.atlassian.pageobjects.elements.PageElement field -
suggestions
protected com.atlassian.pageobjects.elements.PageElement suggestions -
icon
protected com.atlassian.pageobjects.elements.PageElement icon -
label
protected com.atlassian.pageobjects.elements.PageElement label
-
-
Constructor Details
-
QueryableDropdownSelect
public QueryableDropdownSelect(org.openqa.selenium.By containerSelector, org.openqa.selenium.By suggestionsSelector)
-
-
Method Details
-
getElements
public void getElements() -
isPresent
public boolean isPresent()Description copied from interface:AutoCompleteReturns if the control is present on page- Specified by:
isPresentin interfaceAutoComplete- Returns:
- if present
-
timedIsPresent
Description copied from interface:AutoCompleteReturns true if the control is present on page- Specified by:
timedIsPresentin interfaceAutoComplete- Returns:
trueif present
-
clearQuery
Description copied from interface:AutoCompleteClear string in the textfield.- Specified by:
clearQueryin interfaceAutoComplete
-
query
Description copied from interface:AutoCompleteTypes string into textfield and waits for input to be evaluated- Specified by:
queryin interfaceAutoComplete- Parameters:
query- - input to be typed into text field- Returns:
- instance
-
down
Description copied from interface:AutoCompleteNavigates selection down using DOWN key. The number of times down is pressed is specified by steps.- Specified by:
downin interfaceAutoComplete- Parameters:
steps- - Number of times down key is pressed- Returns:
- instance
-
up
Description copied from interface:AutoCompleteNavigates selection down using UP key. The number of times up is pressed is specified by steps.- Specified by:
upin interfaceAutoComplete- Parameters:
steps- - Number of times up key is pressed- Returns:
- instance
-
acceptUsingMouse
Description copied from interface:AutoCompleteSelects specified suggestion using mouse click- Specified by:
acceptUsingMousein interfaceAutoComplete- Parameters:
suggestion- suggestion to be clicked- Returns:
- instance
-
acceptUsingKeyboard
Description copied from interface:AutoCompletePresses enter on specified suggestion- Specified by:
acceptUsingKeyboardin interfaceAutoComplete- Parameters:
suggestion- - suggestion to be navigated to- Returns:
- instance
-
getLabel
public com.atlassian.pageobjects.elements.PageElement getLabel()Description copied from interface:AutoCompleteIf there is an overlabel, will return the PageElement- Specified by:
getLabelin interfaceAutoComplete- Returns:
- Label element
-
getActiveSuggestion
Description copied from interface:AutoCompleteGets active suggestion- Specified by:
getActiveSuggestionin interfaceAutoComplete- Returns:
- active suggestion
-
getTimedActiveSuggestion
public com.atlassian.pageobjects.elements.query.TimedQuery<MultiSelectSuggestion> getTimedActiveSuggestion()Description copied from interface:AutoCompleteGets active suggestion as a timed query- Specified by:
getTimedActiveSuggestionin interfaceAutoComplete- Returns:
- active suggestion
-
getSuggestionsContainerElement
public com.atlassian.pageobjects.elements.PageElement getSuggestionsContainerElement() -
getSuggestionsElements
-
getSuggestions
Description copied from interface:AutoCompleteGets a list of suggestions visible in dropdown- Specified by:
getSuggestionsin interfaceAutoComplete- Returns:
- suggestions list
-
getTimedSuggestions
public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<MultiSelectSuggestion>> getTimedSuggestions()Description copied from interface:AutoCompleteGets a list of suggestions visible in dropdown, as a timed query- Specified by:
getTimedSuggestionsin interfaceAutoComplete- Returns:
- suggestions list query
-