com.atlassian.jira.pageobjects.components.fields
Class SingleSelect
java.lang.Object
com.atlassian.jira.pageobjects.components.fields.SingleSelect
public class SingleSelect
- extends Object
- Since:
- v4.4
Constructor Summary |
SingleSelect(com.atlassian.pageobjects.elements.PageElement parent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleSelect
public SingleSelect(com.atlassian.pageobjects.elements.PageElement parent)
getId
public String getId()
triggerSuggestions
public SingleSelect triggerSuggestions()
- This will click the 'dropdown' icon in the picker, opening or closing the suggestions depending on the current
state.
- Returns:
- this single select instance
getSuggestions
@Deprecated
public List<String> getSuggestions()
- Deprecated. use
getSuggestionsTimed()
as this method is prone to return wrong results due to race
conditions. Using getSuggestionsTimed()
will enforce clients to execute timed assertions and improve
reliability of the tests
- Returns:
- list of suggestions at any given moment
getSuggestionsTimed
public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<String>> getSuggestionsTimed()
isSuggestionsOpen
public com.atlassian.pageobjects.elements.query.TimedCondition isSuggestionsOpen()
select
public SingleSelect select(String value)
getValue
public String getValue()
getTimedValue
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getTimedValue()
isAutocompleteDisabled
public boolean isAutocompleteDisabled()
clear
public SingleSelect clear()
type
public SingleSelect type(CharSequence text)
- Type into this single select without any additional validation
- Parameters:
text
- text to type
- Returns:
- this single select instance
getError
public String getError()
Copyright © 2002-2013 Atlassian. All Rights Reserved.