com.atlassian.jira.webtest.framework.component.fc
Interface FcInput<I extends FcInput<I,F,S>,F extends FrotherControl<F,S,I>,S extends FcSuggestions<F>>

Type Parameters:
I - type of this input
F - type of the FC parent
S - type of the FC suggestions
All Superinterfaces:
AutoCompleteInput<F>, Component<F>, Localizable, PageObject, ValueHolder
All Known Subinterfaces:
IssuePicker.Input
All Known Implementing Classes:
AbstractSeleniumFcInput

public interface FcInput<I extends FcInput<I,F,S>,F extends FrotherControl<F,S,I>,S extends FcSuggestions<F>>
extends AutoCompleteInput<F>, ValueHolder, Localizable

Input component of the FrotherControl.

Since:
v4.3

Method Summary
 S arrowDown()
          Press arrow down key in this input.
 FcInput<I,F,S> clear()
          Clear value of this input.
 S clickDropIcon()
          Click the drop-icon of this input.
 TimedCondition hasLozenge(String text)
          Check if this input has lozenge with given text.
 TimedQuery<FcLozenge> lozenge(String label)
           Retrieves lozenge with given label.
 S suggestions()
          Suggestions associated with this FC input.
 FcInput<I,F,S> type(com.atlassian.webtest.ui.keys.KeySequence sequence)
          Type in a query.The default type mode is TypeMode.TYPE.
 
Methods inherited from interface com.atlassian.jira.webtest.framework.component.AutoCompleteInput
dropDown, focusAway
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.component.Component
parent
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.component.ValueHolder
value
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable
locator
 

Method Detail

suggestions

S suggestions()
Suggestions associated with this FC input.

Returns:
FC suggestions

lozenge

TimedQuery<FcLozenge> lozenge(String label)

Retrieves lozenge with given label.

Returns:
lozenge in this Frother Control input with given label, as a timed query waiting for this input to be ready and for the lozenge to be available. The query will return null if those conditions are not met by given timeout
See Also:
FcLozenge

hasLozenge

TimedCondition hasLozenge(String text)
Check if this input has lozenge with given text.

Parameters:
text - text to find
Returns:
timed condition querying whether any loznge of this input matches given text

type

FcInput<I,F,S> type(com.atlassian.webtest.ui.keys.KeySequence sequence)
Type in a query.The default type mode is TypeMode.TYPE.

Specified by:
type in interface AutoCompleteInput<F extends FrotherControl<F,S,I>>
Parameters:
sequence - key sequence to enter
Returns:
this input instance
See Also:
TypeMode

clear

FcInput<I,F,S> clear()
Clear value of this input. This will not remove the already existing lozenges.

Specified by:
clear in interface AutoCompleteInput<F extends FrotherControl<F,S,I>>
Returns:
this input instance

clickDropIcon

S clickDropIcon()
Click the drop-icon of this input. Depending on the current test state, this should either open, or close the associated suggestions, which may be queried by its appropriate methods: Openable.isOpen() and Openable.isClosed().

Specified by:
clickDropIcon in interface AutoCompleteInput<F extends FrotherControl<F,S,I>>
Returns:
suggestions instance associated with this input

arrowDown

S arrowDown()
Press arrow down key in this input. This should open the associated suggestions, which may be queried by its Openable.isOpen() method.

Specified by:
arrowDown in interface AutoCompleteInput<F extends FrotherControl<F,S,I>>
Returns:
suggestions instance associated with this input


Copyright © 2002-2013 Atlassian. All Rights Reserved.