|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.web.WebPageElement
com.ibm.team.fvt.tests.web.WebElementWrapper
com.ibm.team.fvt.tests.web.WebWindow
com.ibm.team.fvt.tests.web.WebTextHover
public abstract class WebTextHover
Abstract class for any window opened as a rich hover in a browser page.
Following functionalities are specialized by the rich hover:
getText()
: Return the text content of the hover.open(WebBrowserElement)
: open the window by clicking on the
given web element.Following operations are also defined or specialized for rich hovers:
closeAction(boolean)
: The action to perform to close the window.getCloseButton(boolean)
: The button to close the hover.
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 |
---|
public WebTextHover(WebPage page)
Method Detail |
---|
public static void waitAndCancel(WebPage page)
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.
page
- The page on which the hover occurs.public java.lang.String getText()
getText
in class WebElementWrapper
String
.public WebBrowserElement open(WebBrowserElement webElement)
The rich hover is opened by hovering the mouse over the given element.
open
in class WebWindow
webElement
- The element on which to perform the open action.
WebDialog
subclass.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |