com.ibm.team.fvt.tests.web
Class WebHover<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.WebHover<P>
Direct Known Subclasses:
WebRichHover

public abstract class WebHover<P extends WebPage>
extends WebWindow

Abstract class for any window opened as a simple 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
WebHover(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.
 WebBrowserElement open(WebBrowserElement webElement)
          Open the window by clicking on the given web element.
 
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

WebHover

public WebHover(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

open

public WebBrowserElement open(WebBrowserElement webElement)
Open the window by clicking on the given web element.

The rich hover is opened by hovering the mouse over the given element.

Specified by:
open in class WebWindow
Parameters:
webElement - The element on which to perform the open action.
Returns:
The dialog as a WebDialog subclass.