com.atlassian.jira.webtest.framework.component
Interface AutoCompleteInput<P extends Localizable>

All Superinterfaces:
Component<P>, PageObject, ValueHolder
All Known Subinterfaces:
DotDialog.DDInput, FcInput<I,F,S>, IssuePicker.Input
All Known Implementing Classes:
AbstractSeleniumFcInput, SeleniumAutoCompleteInput, SeleniumDDInput

public interface AutoCompleteInput<P extends Localizable>
extends Component<P>, ValueHolder

Represents an auto-complete input, in which each key stroke causes rendering of an AjsDropdown instance containing suggestions on how to complete the input sequence.

This input control consists of an input text area and a small drop icon enabling to trigger the drop-down with mouse.

Since:
v4.3

Method Summary
 AjsDropdown<P> arrowDown()
          Press arrow down key in this input.
 AutoCompleteInput<P> clear()
          Clear value of this input
 AjsDropdown<P> clickDropIcon()
          Click the drop-icon of this input.
 AjsDropdown<P> dropDown()
          AJS.DropDown instance associated with this auto-complete input.
 P focusAway()
          Take the focus out of this input.
 AutoCompleteInput<P> 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.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
 

Method Detail

dropDown

AjsDropdown<P> dropDown()
AJS.DropDown instance associated with this auto-complete input.

Returns:
drop-down instance associated with this input

type

AutoCompleteInput<P> type(com.atlassian.webtest.ui.keys.KeySequence sequence)
Type in a query.The default type mode is TypeMode.TYPE.

Parameters:
sequence - key sequence to enter
Returns:
this input instance
See Also:
TypeMode

clear

AutoCompleteInput<P> clear()
Clear value of this input

Returns:
this input instance

clickDropIcon

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

Returns:
drop-down instance associated with this input

arrowDown

AjsDropdown<P> arrowDown()
Press arrow down key in this input. This should open the associated drop-down, which may be queried by its Openable.isOpen() method.

Returns:
drop-down instance associated with this input

focusAway

P focusAway()
Take the focus out of this input. This should also close the associated drop-down.

Returns:
parent component of this autocomplete


Copyright © 2002-2012 Atlassian. All Rights Reserved.