|
||||||||||
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
public abstract class WebWindow
Abstract class for any window opened in a browser page.
All necessary information to find the window in the page has to be given when creating an instance of this class. Then, it will be possible to open it at any time, but also to recover it if troubles occur during the opening operation (typically if the window does not show up after having performed the expected operation...).
Following functionalities are defined by this window:
cancel()
: Close the window by clicking on the cancel button
(usually the 'Cancel' button).close()
: Close the window by clicking on the close button
(usually the 'OK' button).open(WebBrowserElement)
: open the window by clicking on the
given web element.Common operations for any window are:
closeAction(boolean)
: The action to perform to close the window.getCloseButton(boolean)
: Return the xpath of the button to close the
window.waitForLoadingEnd()
: Wait for the window content to be loaded.
Constructor Summary | |
---|---|
WebWindow(WebPage page,
org.openqa.selenium.By findBy)
|
|
WebWindow(WebPage page,
org.openqa.selenium.By findBy,
java.lang.String frame)
|
|
WebWindow(WebPage page,
WebBrowserElement parentElement,
org.openqa.selenium.By findBy,
WebBrowserFrame frame,
int maxRetry)
|
Method Summary | |
---|---|
void |
cancel()
Close the window by clicking on the cancel button (usually the 'Cancel' button). |
void |
close()
Close the window by clicking on the close button (usually the 'OK' button). |
abstract WebBrowserElement |
open(WebBrowserElement openElement)
Open the window by clicking on the given web element. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebWindow(WebPage page, org.openqa.selenium.By findBy)
public WebWindow(WebPage page, org.openqa.selenium.By findBy, java.lang.String frame)
public WebWindow(WebPage page, WebBrowserElement parentElement, org.openqa.selenium.By findBy, WebBrowserFrame frame, int maxRetry)
Method Detail |
---|
public final void cancel()
public final void close()
public abstract WebBrowserElement open(WebBrowserElement openElement)
openElement
- The element on which to perform the open action.
WebWindow
subclass.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |