com.ibm.team.fvt.tests.clm.pages.helper
Class ClmWebAllProjectsPageHelper

java.lang.Object
  extended by com.ibm.team.fvt.tests.web.WebPageElement
      extended by com.ibm.team.fvt.tests.clm.pages.helper.ClmWebPageHelper
          extended by com.ibm.team.fvt.tests.clm.pages.helper.ClmWebAllProjectsPageHelper

public class ClmWebAllProjectsPageHelper
extends ClmWebPageHelper

Helper class to manage common code of any application's all projects page.


Constructor Summary
ClmWebAllProjectsPageHelper(ClmWebPage page, java.lang.String[] projectsTabs)
           
ClmWebAllProjectsPageHelper(ClmWebPage page, java.lang.String[] projectsTabs, org.openqa.selenium.By... locators)
           
 
Method Summary
 com.ibm.team.fvt.tests.web.WebBrowserElement getProjectElement(java.lang.String projectName, boolean link)
          Return the web element for the given project.
 com.ibm.team.fvt.tests.web.WebBrowserElement getProjectElement(java.lang.String projectName, java.lang.String tabName, boolean link)
          Return the project link element for the given project in the given tab.
 java.util.List<com.ibm.team.fvt.tests.web.WebBrowserElement> getProjectElements()
          Return the list of project web elements displayed in the page.
<P extends ClmWebPage>
P
gotoProjectDashboardPage(java.lang.String projectName, java.lang.Class<P> pageClass, java.lang.String... info)
          Go to the given dashboard page for the given project.
 void waitForLoadingPageEnd()
          Wait until the projects list is loading.
 
Methods inherited from class com.ibm.team.fvt.tests.clm.pages.helper.ClmWebPageHelper
isProjectDashboardPageHelper
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClmWebAllProjectsPageHelper

public ClmWebAllProjectsPageHelper(ClmWebPage page,
                                   java.lang.String[] projectsTabs)

ClmWebAllProjectsPageHelper

public ClmWebAllProjectsPageHelper(ClmWebPage page,
                                   java.lang.String[] projectsTabs,
                                   org.openqa.selenium.By... locators)
Method Detail

getProjectElements

public java.util.List<com.ibm.team.fvt.tests.web.WebBrowserElement> getProjectElements()
Return the list of project web elements displayed in the page.

Returns:
The projects list as a List of WebBrowserElement.

getProjectElement

public com.ibm.team.fvt.tests.web.WebBrowserElement getProjectElement(java.lang.String projectName,
                                                                      boolean link)
Return the web element for the given project.

The returned web element will be either the entire projectsListItem class allowing to find children or only the link element to allow to click on it and jump to the lifecycle project web page.

The project will be searched in all page's tabs.

Parameters:
projectName - The project name
link - Tell whether to return the simple link to project web page or the
Returns:
The link element as a WebBrowserElement or null if none was found.

getProjectElement

public com.ibm.team.fvt.tests.web.WebBrowserElement getProjectElement(java.lang.String projectName,
                                                                      java.lang.String tabName,
                                                                      boolean link)
Return the project link element for the given project in the given tab.

The returned web element will contain the entire projectsListItem class allowing to find children or only the link element to allow to click on it and jump to the lifecycle project web page.

Parameters:
projectName - The project name
tabName - The tab name where to find the project
link - Tell whether to return the simple link to project web page or the entire web element.
Returns:
The link element as a WebBrowserElement or null if none was found.

gotoProjectDashboardPage

public <P extends ClmWebPage> P gotoProjectDashboardPage(java.lang.String projectName,
                                                         java.lang.Class<P> pageClass,
                                                         java.lang.String... info)
Go to the given dashboard page for the given project.

Parameters:
projectName - The project name
pageClass - The class of the opened web page
info - Additional info to pass to the project dashboard page
Returns:
The opened project dashboard page

waitForLoadingPageEnd

public void waitForLoadingPageEnd()
Wait until the projects list is loading.