com.atlassian.jira.webtest.framework.impl.selenium.page.dashboard
Class DashboardImpl

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
          extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
              extended by com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumPage
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.page.SeleniumAbstractGlobalPage<Dashboard>
                      extended by com.atlassian.jira.webtest.framework.impl.selenium.page.dashboard.DashboardImpl
All Implemented Interfaces:
NamedTabContainer<DashboardTab>, PageObject, Dashboard, GlobalPage<Dashboard>, Page

public class DashboardImpl
extends SeleniumAbstractGlobalPage<Dashboard>
implements Dashboard

Default implementation of the Dashboard page.

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
DashboardImpl(SeleniumContext ctx)
           
 
Method Summary
 DashboardTab defaultTab()
          Default dashboard tab.
protected  Locator detector()
          Main locator of this page object.
 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.
protected  Locator linkLocator()
          Locator of a globally accessible link leading to this page.
 AddGadgetDialog openGadgetDialog()
          Open and return gadget dialog.
 DashboardTab openTab(String tabName)
          Open tab with given tabName
 DashboardTab tab(String name)
          Retrun tab with given name.
 DashboardToolsMenu toolsMenu()
          Return tools menu associated with this dashboard page.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.page.SeleniumAbstractGlobalPage
asTargetType, goTo
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumPage
isAt
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
isReady
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
body, conditions, css, forClass, id, jQuery, locatorFor, name, queries, waitFor, xpath
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

DashboardImpl

public DashboardImpl(SeleniumContext ctx)
Method Detail

linkLocator

protected Locator linkLocator()
Description copied from class: SeleniumAbstractGlobalPage
Locator of a globally accessible link leading to this page.

Specified by:
linkLocator in class SeleniumAbstractGlobalPage<Dashboard>
Returns:
global link locator

detector

protected Locator detector()
Description copied from class: AbstractLocatorBasedPageObject
Main locator of this page object. Its presence means that this object is ready to be manipulated in the test.

Specified by:
detector in class AbstractLocatorBasedPageObject
Returns:
main locator of this page object

openGadgetDialog

public AddGadgetDialog openGadgetDialog()
Description copied from interface: Dashboard
Open and return gadget dialog.

Specified by:
openGadgetDialog in interface Dashboard
Returns:
add gadget dialog instance

gadgetDialog

public AddGadgetDialog gadgetDialog()
Description copied from interface: Dashboard
Return instance of gadget dialog associated with this page. This does not perform any operations on the dialog.

Specified by:
gadgetDialog in interface Dashboard
Returns:
add gadget dialog instance

toolsMenu

public DashboardToolsMenu toolsMenu()
Description copied from interface: Dashboard
Return tools menu associated with this dashboard page.

Specified by:
toolsMenu in interface Dashboard
Returns:
dashboard tools menu instance

openTab

public DashboardTab openTab(String tabName)
Description copied from interface: NamedTabContainer
Open tab with given tabName

Specified by:
openTab in interface NamedTabContainer<DashboardTab>
Parameters:
tabName - name of the tab to open
Returns:
tab instance

tab

public DashboardTab tab(String name)
Description copied from interface: NamedTabContainer
Retrun tab with given name.

Specified by:
tab in interface NamedTabContainer<DashboardTab>
Parameters:
name - name of the tab
Returns:
tab instance

hasDefaultTab

public TimedCondition hasDefaultTab()
Description copied from interface: Dashboard

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 Dashboard.defaultTab() to access the default tab.

Specified by:
hasDefaultTab in interface Dashboard
Returns:
timed condition checking if this dashboard has only one default tab.

defaultTab

public DashboardTab defaultTab()
Description copied from interface: Dashboard
Default dashboard tab. If Dashboard.hasDefaultTab() will return false, this method may throw IllegalStateException

Specified by:
defaultTab in interface Dashboard
Returns:
default tab of this dashboard


Copyright © 2002-2012 Atlassian. All Rights Reserved.