com.ibm.team.fvt.tests.web
Class WebTextHover

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
All Implemented Interfaces:
WebConstants
Direct Known Subclasses:
WebLinkHover

public abstract class WebTextHover
extends WebWindow

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

Following functionalities are specialized by the rich hover:

Following operations are also defined or specialized for rich hovers:


Field Summary
 
Fields inherited from interface com.ibm.team.fvt.tests.web.WebConstants
DISABLED, ENABLED, FALSE, NAME, OK, TAG_NAME_H1, TITLE, TRUE
 
Constructor Summary
WebTextHover(WebPage page)
           
 
Method Summary
 java.lang.String getText()
          Return the text content of the hover.
 WebBrowserElement open(WebBrowserElement webElement)
          Open the window by clicking on the given web element.
static void waitAndCancel(WebPage page)
          Wait that a text hover gets opened and cancel it.
 
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

WebTextHover

public WebTextHover(WebPage page)
Method Detail

waitAndCancel

public static void waitAndCancel(WebPage page)
Wait that a text hover gets opened and cancel it.

This is a convenient method to close any kind of hover while moving to an element to ensure it's visible in the page.

Of course, this is a no-op if there's no hover currently opened.

Parameters:
page - The page on which the hover occurs.

getText

public java.lang.String getText()
Return the text content of the hover.

Overrides:
getText in class WebElementWrapper
Returns:
The content as a String.

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.