|
||||||||||
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.WebHover<P>
public abstract class WebHover<P extends WebPage>
Abstract class for any window opened as a simple hover in a browser page.
Following functionalities are specialized by the simple hover:
checkTitle()
: Check the rich hover title.clickOnTitle()
: Click on the rich hover title link.getTitle()
: Return the title of the hover.getTitleElement()
: Return the hover title web element.getTitleLinkXpath()
: Return the xpath for the the title link element.open(WebBrowserElement)
: Open the rich hover by flying over
the given web element.Following operations are also defined or specialized for simple hovers:
closeAction(boolean)
: The action to perform to close the window.getCloseButton(boolean)
: The button to close the hover.getTitlePageClass()
: Return the class of the page opened when
clicking on the title.waitForBrowserUrl()
: Wait for the browser URL to be stable.
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 |
---|
public WebHover(WebPage page)
Method Detail |
---|
public void check() throws ScenarioFailedError
Default check is to check the title. Subclass might add some additional verification.
ScenarioFailedError
- If the hover title fails the check.public P clickOnTitle()
This actions leads to jump to the page pointed by the link we're hovering over.
WebPage
public java.lang.String getTitle()
String
.public WebBrowserElement getTitleElement()
WebBrowserElement
ScenarioFailedError
- If the title element is not foundpublic 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 |