com.ibm.team.fvt.tests.clm.pages
Class ClmMiniDashboard

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPageElement
      extended by com.ibm.team.fvt.tests.web.WebElementWrapper
          extended by com.ibm.team.fvt.tests.web.WebExpandableElement
              extended by com.ibm.team.fvt.tests.clm.pages.ClmMiniDashboard

public class ClmMiniDashboard
extends com.ibm.team.fvt.tests.web.WebExpandableElement

Class to handle Mini-Dashboard web element.

This class overrides the following default expandable element behavior:

It also provide following features:


Constructor Summary
ClmMiniDashboard(com.ibm.team.fvt.tests.web.WebPage page)
           
 
Method Summary
 void collapse()
          Collapse the mini-dashboard.
 void expand()
          Expand the mini-dashboard.
<V extends ClmViewlet>
V
getViewletElement(java.lang.String title, java.lang.Class<V> viewletClass)
           
 java.util.List<com.ibm.team.fvt.tests.web.WebBrowserElement> getViewletElements()
           
 void pin(boolean state)
          Pin or unpin the mini-dashboard.
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebExpandableElement
isExpandable, isExpanded, toggle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClmMiniDashboard

public ClmMiniDashboard(com.ibm.team.fvt.tests.web.WebPage page)
Method Detail

collapse

public void collapse()
Collapse the mini-dashboard.

Instead of clicking on an element, collapsing the mini-dashboard is done by sending the escape key to the wrapped element.

It also waits that all are loaded before proceeding.

Overrides:
collapse in class com.ibm.team.fvt.tests.web.WebExpandableElement

expand

public void expand()
            throws com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
Expand the mini-dashboard.

Waits that all are loaded after having proceeded.

Overrides:
expand in class com.ibm.team.fvt.tests.web.WebExpandableElement
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError

getViewletElement

public <V extends ClmViewlet> V getViewletElement(java.lang.String title,
                                                  java.lang.Class<V> viewletClass)
See Also:
ClmProjectDashboardPageHelper.getViewletElement(String, Class)

getViewletElements

public java.util.List<com.ibm.team.fvt.tests.web.WebBrowserElement> getViewletElements()
See Also:
ClmProjectDashboardPageHelper.getViewletElements()

pin

public void pin(boolean state)
         throws com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError
Pin or unpin the mini-dashboard.

This is a no-op if the dashboard is already in the requested state.

Parameters:
state - Tells whether to pin or unpin the dashboard
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError