com.atlassian.jira.pageobjects.components.fields
Class QueryableDropdownSelect

java.lang.Object
  extended by com.atlassian.jira.pageobjects.components.fields.QueryableDropdownSelect
All Implemented Interfaces:
AutoComplete

public class QueryableDropdownSelect
extends Object
implements AutoComplete

Since:
v4.4

Field Summary
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 Summary
QueryableDropdownSelect(org.openqa.selenium.By containerSelector, org.openqa.selenium.By suggestionsSelector)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

@Inject
protected ExtendedElementFinder 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 Detail

QueryableDropdownSelect

public QueryableDropdownSelect(org.openqa.selenium.By containerSelector,
                               org.openqa.selenium.By suggestionsSelector)
Method Detail

getElements

public void getElements()

isPresent

public boolean isPresent()
Description copied from interface: AutoComplete
Returns if the control is present on page

Specified by:
isPresent in interface AutoComplete
Returns:
if present

timedIsPresent

public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> timedIsPresent()
Description copied from interface: AutoComplete
Returns true if the control is present on page

Specified by:
timedIsPresent in interface AutoComplete
Returns:
true if present

clearQuery

public AutoComplete clearQuery()
Description copied from interface: AutoComplete
Clear string in the textfield.

Specified by:
clearQuery in interface AutoComplete

query

public AutoComplete query(String query)
Description copied from interface: AutoComplete
Types string into textfield and waits for input to be evaluated

Specified by:
query in interface AutoComplete
Parameters:
query - - input to be typed into text field
Returns:
instance

down

public AutoComplete down(int steps)
Description copied from interface: AutoComplete
Navigates selection down using DOWN key. The number of times down is pressed is specified by steps.

Specified by:
down in interface AutoComplete
Parameters:
steps - - Number of times down key is pressed
Returns:
instance

up

public AutoComplete up(int steps)
Description copied from interface: AutoComplete
Navigates selection down using UP key. The number of times up is pressed is specified by steps.

Specified by:
up in interface AutoComplete
Parameters:
steps - - Number of times up key is pressed
Returns:
instance

acceptUsingMouse

public AutoComplete acceptUsingMouse(MultiSelectSuggestion suggestion)
Description copied from interface: AutoComplete
Selects specified suggestion using mouse click

Specified by:
acceptUsingMouse in interface AutoComplete
Parameters:
suggestion - suggestion to be clicked
Returns:
instance

acceptUsingKeyboard

public AutoComplete acceptUsingKeyboard(MultiSelectSuggestion suggestion)
Description copied from interface: AutoComplete
Presses enter on specified suggestion

Specified by:
acceptUsingKeyboard in interface AutoComplete
Parameters:
suggestion - - suggestion to be navigated to
Returns:
instance

getLabel

public com.atlassian.pageobjects.elements.PageElement getLabel()
Description copied from interface: AutoComplete
If there is an overlabel, will return the PageElement

Specified by:
getLabel in interface AutoComplete
Returns:
Label element

getActiveSuggestion

public MultiSelectSuggestion getActiveSuggestion()
Description copied from interface: AutoComplete
Gets active suggestion

Specified by:
getActiveSuggestion in interface AutoComplete
Returns:
active suggestion

getTimedActiveSuggestion

public com.atlassian.pageobjects.elements.query.TimedQuery<MultiSelectSuggestion> getTimedActiveSuggestion()
Description copied from interface: AutoComplete
Gets active suggestion as a timed query

Specified by:
getTimedActiveSuggestion in interface AutoComplete
Returns:
active suggestion

getSuggestionsContainerElement

public com.atlassian.pageobjects.elements.PageElement getSuggestionsContainerElement()

getSuggestionsElements

public List<com.atlassian.pageobjects.elements.PageElement> getSuggestionsElements()

getSuggestions

public List<MultiSelectSuggestion> getSuggestions()
Description copied from interface: AutoComplete
Gets a list of suggestions visible in dropdown

Specified by:
getSuggestions in interface AutoComplete
Returns:
suggestions list

getTimedSuggestions

public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<MultiSelectSuggestion>> getTimedSuggestions()
Description copied from interface: AutoComplete
Gets a list of suggestions visible in dropdown, as a timed query

Specified by:
getTimedSuggestions in interface AutoComplete
Returns:
suggestions list query


Copyright © 2002-2013 Atlassian. All Rights Reserved.