|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.pageobjects.components.fields.QueryableDropdownSelect
public class QueryableDropdownSelect
Field Summary | |
---|---|
protected com.atlassian.pageobjects.elements.PageElement |
container
|
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.elements.PageElement |
suggestions
|
Constructor Summary | |
---|---|
QueryableDropdownSelect(org.openqa.selenium.By containerSelector,
org.openqa.selenium.By suggestionsSelector)
|
Method Summary | |
---|---|
AutoComplete |
acceptUsingKeyboard(Suggestion suggestion)
Presses enter on specified suggestion |
AutoComplete |
acceptUsingMouse(Suggestion suggestion)
Selects specified suggestion using mouse click |
AutoComplete |
down(int steps)
Navigates selection down using DOWN key. |
Suggestion |
getActiveSuggestion()
Gets active suggestion |
void |
getElements()
|
com.atlassian.pageobjects.elements.PageElement |
getLabel()
If there is an overlabel, will return the PageElement |
List<Suggestion> |
getSuggestions()
Gets a list of suggestions visible in dropdown |
com.atlassian.pageobjects.elements.query.TimedQuery<Suggestion> |
getTimedActiveSuggestion()
Gets active suggestion as a timed query |
com.atlassian.pageobjects.elements.query.TimedQuery<List<Suggestion>> |
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 |
AutoComplete |
up(int steps)
Navigates selection down using UP key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public QueryableDropdownSelect(org.openqa.selenium.By containerSelector, org.openqa.selenium.By suggestionsSelector)
Method Detail |
---|
public void getElements()
public boolean isPresent()
AutoComplete
isPresent
in interface AutoComplete
public AutoComplete query(String query)
AutoComplete
query
in interface AutoComplete
query
- - input to be typed into text field
public AutoComplete down(int steps)
AutoComplete
down
in interface AutoComplete
steps
- - Number of times down key is pressed
public AutoComplete up(int steps)
AutoComplete
up
in interface AutoComplete
steps
- - Number of times up key is pressed
public AutoComplete acceptUsingMouse(Suggestion suggestion)
AutoComplete
acceptUsingMouse
in interface AutoComplete
suggestion
- suggestion to be clicked
public AutoComplete acceptUsingKeyboard(Suggestion suggestion)
AutoComplete
acceptUsingKeyboard
in interface AutoComplete
suggestion
- - suggestion to be navigated to
public com.atlassian.pageobjects.elements.PageElement getLabel()
AutoComplete
getLabel
in interface AutoComplete
public Suggestion getActiveSuggestion()
AutoComplete
getActiveSuggestion
in interface AutoComplete
public com.atlassian.pageobjects.elements.query.TimedQuery<Suggestion> getTimedActiveSuggestion()
AutoComplete
getTimedActiveSuggestion
in interface AutoComplete
public List<Suggestion> getSuggestions()
AutoComplete
getSuggestions
in interface AutoComplete
public com.atlassian.pageobjects.elements.query.TimedQuery<List<Suggestion>> getTimedSuggestions()
AutoComplete
getTimedSuggestions
in interface AutoComplete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |