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

All Superinterfaces:
Localizable, NamedTab<DashboardTab>, Openable<DashboardTab>, PageObject, Tab<DashboardTab>
All Known Implementing Classes:
DashboardTabImpl, DefaultDashboardTabImpl

public interface DashboardTab
extends NamedTab<DashboardTab>

Tab containing contents of a single user dashboard on the Dashboard page.

Since:
v4.3

Method Summary
<T extends Gadget>
T
gadget(Class<T> gadgetType)
           Find gadget of given gadgetType.
<T extends Gadget>
T
gadget(Class<T> gadgetType, int gadgetId)
           Find gadget of given gadgetType and with given ID.
 TimedCondition hasGadget(Class<? extends Gadget> gadgetType)
           Check if dashboard has a given gadget.
 TimedCondition hasGadget(Class<? extends Gadget> gadgetType, int gadgetId)
           Check if dashboard has gadget of given type and with given gadgetId.
 
Methods inherited from interface com.atlassian.jira.webtest.framework.component.tab.NamedTab
name
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable
locator
 
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.PageObject
context, isReady
 

Method Detail

hasGadget

TimedCondition hasGadget(Class<? extends Gadget> gadgetType)

Check if dashboard has a given gadget.

NOTE: there may be more than one gadgets on a given Dashboard page and this method will not convey information about how many gadgets are there. Use hasGadget(Class, int) to check for a gadget with particular ID.

Parameters:
gadgetType - type of the gadget
Returns:
timed condition checking, whether the given gadget exists on this dashboard
See Also:
hasGadget(Class, int)

hasGadget

TimedCondition hasGadget(Class<? extends Gadget> gadgetType,
                         int gadgetId)

Check if dashboard has gadget of given type and with given gadgetId.

Parameters:
gadgetType - type of the gadget
gadgetId - ID of the gadget
Returns:
timed condition checking, whether the given gadget exists on this dashboard

gadget

<T extends Gadget> T gadget(Class<T> gadgetType)

Find gadget of given gadgetType.

NOTE: if there are multiple gadget of gadgetType on the particular dashboard, the first found one will be returned

Type Parameters:
T - type parameter of gadget
Parameters:
gadgetType - gadget class
Returns:
gadget instance. NOTE: this will return gadget instance (if given gadget type is supported), even if it is not present on current dashboard. This may be checked by PageObject.isReady(), or by hasGadget(Class).

gadget

<T extends Gadget> T gadget(Class<T> gadgetType,
                            int gadgetId)

Find gadget of given gadgetType and with given ID.

Type Parameters:
T - type parameter of gadget
Parameters:
gadgetType - gadget class
gadgetId - ID of the gadget
Returns:
gadget instance. NOTE: this will return gadget instance (if given gadget type is supported), even if it is not present on current dashboard. This may be checked by PageObject.isReady(), or by hasGadget(Class, int).


Copyright © 2002-2012 Atlassian. All Rights Reserved.