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

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.ClmProjectAreaPageHelper
Direct Known Subclasses:
ClmProjectDashboardPageHelper

public class ClmProjectAreaPageHelper
extends ClmWebPageHelper

Helper class to manage common code of any application project area page.


Constructor Summary
ClmProjectAreaPageHelper(ClmWebPage page)
           
ClmProjectAreaPageHelper(ClmWebPageHelper pageHelper)
           
 
Method Summary
 com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage> checkRichHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement, boolean close)
          Deprecated. Use checkRichHover(WebBrowserElement, String, boolean) instead.
 com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage> checkRichHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement, java.lang.String projectName, boolean close)
          Check the rich hover title of the given link element.
 java.lang.String getProjectAreaName()
          Return the project area name.
 java.lang.String getProjectAreaTitle()
          Return the project area title.
<P> P
gotoPageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement, java.lang.Class<P> pageClass)
          Check the rich hover title of the given link element.
<P> P
gotoPageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement, java.lang.String projectName, java.lang.Class<P> pageClass)
          Check the rich hover title of the given link element.
 void setProjectAreaName(java.lang.String name)
          Set the project area name.
 
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

ClmProjectAreaPageHelper

public ClmProjectAreaPageHelper(ClmWebPage page)

ClmProjectAreaPageHelper

public ClmProjectAreaPageHelper(ClmWebPageHelper pageHelper)
Method Detail

checkRichHover

@Deprecated
public com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage> checkRichHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement,
                                                                                                                       boolean close)
Deprecated. Use checkRichHover(WebBrowserElement, String, boolean) instead.

Check the rich hover title of the given link element.

This check opens the rich hover by positioning the mouse pointer over the given link element and checks whether its title matches the given text.

Parameters:
linkElement - The link on which to hover
close - Tells whether to close the rich hover after having checked it or not.
Returns:
The opened rich hover web element as WebBrowserElement or null if the rich hover is closed after the check.
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - in following cases:
  • The rich hover is not found (typically when it fails to open)
  • The rich hover title is not found after WebPageElement.shortTimeout() (typically when the hover is still empty when the timeout is reached)
  • The title does not match the expected one

checkRichHover

public com.ibm.team.fvt.tests.web.WebRichHover<? extends com.ibm.team.fvt.tests.web.WebPage> checkRichHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement,
                                                                                                            java.lang.String projectName,
                                                                                                            boolean close)
Check the rich hover title of the given link element.

This check opens the rich hover by positioning the mouse pointer over the given link element and checks whether its title matches the given text.

Parameters:
linkElement - The link on which to hover
projectName - The project in which the hovered element belongs to
close - Tells whether to close the rich hover after having checked it or not.
Returns:
The opened rich hover web element as WebBrowserElement or null if the rich hover is closed after the check.
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - in following cases:
  • The rich hover is not found (typically when it fails to open)
  • The rich hover title is not found after WebPageElement.shortTimeout() (typically when the hover is still empty when the timeout is reached)
  • The title does not match the expected one

getProjectAreaName

public java.lang.String getProjectAreaName()
Return the project area name.

Returns:
The project area name as a String.

getProjectAreaTitle

public java.lang.String getProjectAreaTitle()
Return the project area title.

Returns:
The project area title as a String.

gotoPageUsingHover

public <P> P gotoPageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement,
                                java.lang.Class<P> pageClass)
Check the rich hover title of the given link element.

This check opens the rich hover by positioning the mouse pointer over the given link element and checks whether its title matches the given text.

Parameters:
linkElement - The link on which to hover
pageClass - The class of the opened page
Returns:
The opened rich hover web element as WebBrowserElement or null if the rich hover is closed after the check.
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - in following cases:
  • The rich hover is not found (typically when it fails to open)
  • The rich hover title is not found after WebPageElement.shortTimeout() (typically when the hover is still empty when the timeout is reached)
  • The title does not match the expected one

gotoPageUsingHover

public <P> P gotoPageUsingHover(com.ibm.team.fvt.tests.web.WebBrowserElement linkElement,
                                java.lang.String projectName,
                                java.lang.Class<P> pageClass)
Check the rich hover title of the given link element.

This check opens the rich hover by positioning the mouse pointer over the given link element and checks whether its title matches the given text.

Parameters:
linkElement - The link on which to hover
projectName - The project in which the hovered element belongs to
pageClass - The class of the opened page
Returns:
The opened rich hover web element as WebBrowserElement or null if the rich hover is closed after the check.
Throws:
com.ibm.team.fvt.tests.scenario.errors.ScenarioFailedError - in following cases:
  • The rich hover is not found (typically when it fails to open)
  • The rich hover title is not found after WebPageElement.shortTimeout() (typically when the hover is still empty when the timeout is reached)
  • The title does not match the expected one

setProjectAreaName

public void setProjectAreaName(java.lang.String name)
Set the project area name.

Parameters:
name - The project area name