com.ibm.team.fvt.tests.web
Class WebLinkHover<P extends WebPage>

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.WebWindow
              extended by com.ibm.team.fvt.tests.web.WebTextHover
                  extended by com.ibm.team.fvt.tests.web.WebLinkHover<P>
Direct Known Subclasses:
WebRichHover

public abstract class WebLinkHover<P extends WebPage>
extends WebTextHover

Abstract class for any window opened as a simple link hover in a browser page.

Following functionalities are specialized by the simple hover:

Following operations are also defined or specialized for simple hovers:


Constructor Summary
WebLinkHover(WebPage page)
           
 
Method Summary
 void check()
          Check the rich hover.
 P clickOnTitle()
          Click on the rich hover title link.
 java.lang.String getTitle()
          Return the title of the hover.
 WebBrowserElement getTitleElement()
          Return the hover title web element.
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebTextHover
getText, open
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebWindow
cancel, close
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebLinkHover

public WebLinkHover(WebPage page)
Method Detail

check

public void check()
           throws ScenarioFailedError
Check the rich hover.

Default check is to check the title. Subclass might add some additional verification.

Throws:
ScenarioFailedError - If the hover title fails the check.

clickOnTitle

public P clickOnTitle()
Click on the rich hover title link.

This actions leads to jump to the page pointed by the link we're hovering over.

Returns:
The opened page after the click as a subclass of WebPage

getTitle

public java.lang.String getTitle()
Return the title of the hover.

Returns:
The title as a String.

getTitleElement

public WebBrowserElement getTitleElement()
Return the hover title web element.

Returns:
The hover title element as WebBrowserElement
Throws:
ScenarioFailedError - If the title element is not found