com.atlassian.jira.webtest.framework.component
Interface AjsDropdown.Item<R extends PageObject>

All Superinterfaces:
Component<AjsDropdown.Section<R>>, Localizable, PageObject
All Known Implementing Classes:
DashboardItemImpl, SeleniumDDItem
Enclosing interface:
AjsDropdown<P extends PageObject>

public static interface AjsDropdown.Item<R extends PageObject>
extends Localizable, Component<AjsDropdown.Section<R>>

A single position in the drop-down list.


Method Summary
 AjsDropdown.Item<R> down()
          If this position is selected, this action will move selection to the next position and return it.
 AjsDropdown<R> dropDown()
          Dropdown that this position belongs to (section may be retrieved via Component.parent()).
 TimedCondition isNotSelected()
          Check if this position is currently NOT selected.
 TimedCondition isSelected()
          Check if this position is currently selected.
 String name()
          Name of the position as visible in the UI.
 AjsDropdown.Item<R> select()
          Select this position.
 AjsDropdown.Item<R> up()
          If this position is selected, this action will move selection to the previous position and return it.
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable
locator
 
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
 

Method Detail

dropDown

AjsDropdown<R> dropDown()
Dropdown that this position belongs to (section may be retrieved via Component.parent()).

Returns:
dropdown of this position

name

String name()
Name of the position as visible in the UI.

Returns:
name of this position

isSelected

TimedCondition isSelected()
Check if this position is currently selected.

Returns:
condition checking whether this position is currently selected

isNotSelected

TimedCondition isNotSelected()
Check if this position is currently NOT selected. The returned condition will return true as soon as this position element is not select, or false, if the timeout expires and this element is still selected.

Returns:
condition checking whether this position is currently not selected

select

AjsDropdown.Item<R> select()
Select this position.

Returns:
this position instance

down

AjsDropdown.Item<R> down()
If this position is selected, this action will move selection to the next position and return it.

Returns:
next position, which is also going to be selected
Throws:
IllegalStateException - if this position is not selected before invoking this action
See Also:
isSelected(), select()

up

AjsDropdown.Item<R> up()
If this position is selected, this action will move selection to the previous position and return it.

Returns:
previous position, which is also going to be selected
Throws:
IllegalStateException - if this position is not selected before invoking this action
See Also:
isSelected(), select()


Copyright © 2002-2013 Atlassian. All Rights Reserved.