|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumPage com.atlassian.jira.webtest.framework.impl.selenium.page.SeleniumAbstractGlobalPage<Dashboard> com.atlassian.jira.webtest.framework.impl.selenium.page.dashboard.DashboardImpl
public class DashboardImpl
Default implementation of the Dashboard
page.
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 |
---|
public DashboardImpl(SeleniumContext ctx)
Method Detail |
---|
protected Locator linkLocator()
SeleniumAbstractGlobalPage
linkLocator
in class SeleniumAbstractGlobalPage<Dashboard>
protected Locator detector()
AbstractLocatorBasedPageObject
detector
in class AbstractLocatorBasedPageObject
public AddGadgetDialog openGadgetDialog()
Dashboard
openGadgetDialog
in interface Dashboard
public AddGadgetDialog gadgetDialog()
Dashboard
gadgetDialog
in interface Dashboard
public DashboardToolsMenu toolsMenu()
Dashboard
toolsMenu
in interface Dashboard
public DashboardTab openTab(String tabName)
NamedTabContainer
openTab
in interface NamedTabContainer<DashboardTab>
tabName
- name of the tab to open
public DashboardTab tab(String name)
NamedTabContainer
tab
in interface NamedTabContainer<DashboardTab>
name
- name of the tab
public TimedCondition hasDefaultTab()
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.
hasDefaultTab
in interface Dashboard
public DashboardTab defaultTab()
Dashboard
Dashboard.hasDefaultTab()
will return false, this method may
throw IllegalStateException
- Specified by:
defaultTab
in interface Dashboard
- Returns:
- default tab of this dashboard
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |