|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.web.WebPageElement
com.ibm.team.fvt.tests.clm.pages.helper.ClmWebPageHelper
com.ibm.team.fvt.tests.clm.pages.helper.ClmProjectAreaPageHelper
com.ibm.team.fvt.tests.clm.pages.helper.ClmProjectDashboardPageHelper
public class ClmProjectDashboardPageHelper
Helper class to manage common code of any application project dashboard page.
Constructor Summary | |
---|---|
ClmProjectDashboardPageHelper(ClmWebPageHelper pageHelper,
java.lang.String dashboardName)
|
|
ClmProjectDashboardPageHelper(ClmWebPage page,
java.lang.String dashboardName)
|
|
ClmProjectDashboardPageHelper(ClmWebPage page,
com.ibm.team.fvt.tests.web.WebBrowserElement miniDashboardElement)
|
Method Summary | ||
---|---|---|
|
addViewlet(java.lang.String title,
java.lang.Class<V> viewletClass)
Add the viewlet with the given title to the current project dashboard. |
|
|
addViewlet(java.lang.String title,
java.lang.String application,
java.lang.Class<V> viewletClass)
Add the given application viewlet with the given title to the current project dashboard. |
|
java.lang.String |
getExpectedTitle()
Return the expected title. |
|
|
getViewletElement(java.lang.String title,
java.lang.Class<V> viewletClass)
Return the viewlet web element matching the given title. |
|
java.util.List<com.ibm.team.fvt.tests.web.WebBrowserElement> |
getViewletElements()
Return all the viewlet web elements displayed in the current project dashboard page. |
|
boolean |
isProjectDashboardPageHelper()
|
|
void |
refreshContent()
Refresh the page content by clicking on the Refresh button. |
|
void |
setAutoSave(boolean on)
Check on/off the Auto Save for the current dashboard. |
|
void |
waitForAllViewlets()
Wait that all viewlets are displayed in the dashboard page. |
|
void |
waitForAllViewletsLoaded()
Wait for all viewlets to be loaded. |
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.helper.ClmProjectAreaPageHelper |
---|
checkRichHover, checkRichHover, getProjectAreaName, getProjectAreaTitle, gotoPageUsingHover, gotoPageUsingHover, setProjectAreaName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClmProjectDashboardPageHelper(ClmWebPage page, java.lang.String dashboardName)
public ClmProjectDashboardPageHelper(ClmWebPageHelper pageHelper, java.lang.String dashboardName)
public ClmProjectDashboardPageHelper(ClmWebPage page, com.ibm.team.fvt.tests.web.WebBrowserElement miniDashboardElement)
Method Detail |
---|
public final <V extends ClmViewlet> V addViewlet(java.lang.String title, java.lang.Class<V> viewletClass)
Note that nothing happens if the viewlet was already displayed in the dashboard.
title
- The viewlet title
ClmViewlet
.public <V extends ClmViewlet> V addViewlet(java.lang.String title, java.lang.String application, java.lang.Class<V> viewletClass)
Note that nothing happens if the viewlet was already displayed in the dashboard.
title
- The viewlet titleapplication
- The application from which to select the widget.
ClmViewlet
.public java.lang.String getExpectedTitle()
By default this is the banner title + " Project Dashboard"
public <V extends ClmViewlet> V getViewletElement(java.lang.String title, java.lang.Class<V> viewletClass)
Note that if there are several viewlets with the same title, that will be the first one found which will be returned.
title
- The viewlet title
ClmViewlet
or null
if no viewlet with the given title is found in the current project dashboard.public java.util.List<com.ibm.team.fvt.tests.web.WebBrowserElement> getViewletElements()
List
ofClmViewlet
.public boolean isProjectDashboardPageHelper()
isProjectDashboardPageHelper
in class ClmWebPageHelper
public void refreshContent()
public void setAutoSave(boolean on)
on
- Tells whether the auto-save has to be set or unset.public void waitForAllViewlets()
com.ibm.team.fvt.tests.scenario.errors.WaitElementTimeoutError
- If the viewlets number is still not stabilized
when the WebPageElement.shortTimeout()
is reached.public void waitForAllViewletsLoaded() throws com.ibm.team.fvt.tests.scenario.errors.WaitElementTimeoutError
Note that this operation can take a long while as it reads all viewlets contents to see if it does not start with 'Loading...'.
com.ibm.team.fvt.tests.scenario.errors.WaitElementTimeoutError
- If there's at least one viewlet still displaying
'Loading...' when the WebPageElement.openTimeout()
is reached.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |