|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
P
- type of the parent pag objectpublic interface AjsDropdown<P extends PageObject>
Represents a AJS.DropdownSelect component used in JIRA dialogs and pickers as an auto-complete suggestions container.
The AjsDropdown contains a list of items grouped into one, or more sections. Occasionally it may contain
first-class items, i.e. items not grouped in any section. To retrieve a particular section or item, usage of
section(String)
and item(String)
is preferred to allSections()
. Additionally, item(String)
is the only method capable of retrieving first-class items (as explained above).
Nested Class Summary | |
---|---|
static interface |
AjsDropdown.CloseMode<PP extends PageObject>
|
static interface |
AjsDropdown.Item<R extends PageObject>
A single position in the drop-down list. |
static interface |
AjsDropdown.Section<Q extends PageObject>
Section of the drop-down list. |
Method Summary | |
---|---|
TimedQuery<List<AjsDropdown.Section<P>>> |
allSections()
Get all sections of this drop-down. |
AjsDropdown.CloseMode<P> |
close()
Close this drop-down |
TimedCondition |
hasItem(String itemText)
Check if this drop-down has item with given itemText. |
TimedCondition |
hasSection(String id)
Check if this drop-down has section with given id. |
TimedQuery<AjsDropdown.Item<P>> |
item(String text)
Find first position matching test |
TimedQuery<Integer> |
itemCount()
Number of items in this drop-down |
TimedQuery<AjsDropdown.Section<P>> |
section(String id)
Find section with given id. |
TimedQuery<AjsDropdown.Item<P>> |
selectedItem()
Get currently selected position of in the list. |
Methods inherited from interface com.atlassian.jira.webtest.framework.core.component.Component |
---|
parent |
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Openable |
---|
isClosed, isOpen, isOpenable, open |
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable |
---|
locator |
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject |
---|
context, isReady |
Method Detail |
---|
TimedCondition hasItem(String itemText)
itemText
- text of the position to find
TimedCondition hasSection(String id)
id
- unique pag ID of the section to find
TimedQuery<Integer> itemCount()
TimedQuery<AjsDropdown.Section<P>> section(String id)
id
- unique page ID of the section
null
,
if such section does not exist within this drop-downhasItem(String)
TimedQuery<List<AjsDropdown.Section<P>>> allSections()
TimedQuery<AjsDropdown.Item<P>> item(String text)
text
- text of the position to find
null
,
if position with given text does not exist in this drop-downhasItem(String)
TimedQuery<AjsDropdown.Item<P>> selectedItem()
AjsDropdown.CloseMode<P> close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |