com.atlassian.jira.webtest.framework.page.dashboard
Interface Dashboard

All Superinterfaces:
GlobalPage<Dashboard>, NamedTabContainer<DashboardTab>, Page, PageObject
All Known Implementing Classes:
DashboardImpl

public interface Dashboard
extends GlobalPage<Dashboard>, NamedTabContainer<DashboardTab>

Represents JIRA Dashboard page. Dashboard is the default JIRA page that contains a number of gadgets.

Since:
v4.3
See Also:
Gadget

Method Summary
 DashboardTab defaultTab()
          Default dashboard tab.
 AddGadgetDialog gadgetDialog()
          Return instance of gadget dialog associated with this page.
 TimedCondition hasDefaultTab()
           If this dashboard has only one tab, the 'tabs' side menu is not accessible and the methods from NamedTabContainer will throw IllegalStateException.
 AddGadgetDialog openGadgetDialog()
          Open and return gadget dialog.
 DashboardToolsMenu toolsMenu()
          Return tools menu associated with this dashboard page.
 
Methods inherited from interface com.atlassian.jira.webtest.framework.page.GlobalPage
goTo
 
Methods inherited from interface com.atlassian.jira.webtest.framework.page.Page
isAt
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 
Methods inherited from interface com.atlassian.jira.webtest.framework.component.tab.NamedTabContainer
openTab, tab
 

Method Detail

openGadgetDialog

AddGadgetDialog openGadgetDialog()
Open and return gadget dialog.

Returns:
add gadget dialog instance

gadgetDialog

AddGadgetDialog gadgetDialog()
Return instance of gadget dialog associated with this page. This does not perform any operations on the dialog.

Returns:
add gadget dialog instance

toolsMenu

DashboardToolsMenu toolsMenu()
Return tools menu associated with this dashboard page.

Returns:
dashboard tools menu instance

hasDefaultTab

TimedCondition hasDefaultTab()

If this dashboard has only one tab, the 'tabs' side menu is not accessible and the methods from NamedTabContainer will throw IllegalStateException.

If this condition returns true, use defaultTab() to access the default tab.

Returns:
timed condition checking if this dashboard has only one default tab.

defaultTab

DashboardTab defaultTab()
Default dashboard tab. If hasDefaultTab() will return false, this method may throw IllegalStateException

Returns:
default tab of this dashboard
Throws:
IllegalStateException - if this dashboard has more than one dashboard tabs (non-default mode)


Copyright © 2002-2012 Atlassian. All Rights Reserved.