|
||||||||||
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:
close()
: close the window by clicking on the close button.open(WebBrowserElement)
: open the window by clicking on the
given web element.Common operations for any window are:
WebElementWrapper.clickButton(String)
: Click on the button found using the given
search mechanism.closeAction(boolean)
: The action to perform to close the window.WebElementWrapper.findElement(By, boolean)
: Find an element inside the window using
the given mechanism.#findElement(String, boolean)
: Find an element inside the window
using the given xpath.WebPageElement.findElementInFrames(By)
: Find an element inside a frame of the
window using the given mechanism.getCloseButton(boolean)
: Return the xpath of the button to close the
window.WebPageElement.resetFrame()
: Reset the current frame for the current window.WebPageElement.selectFrame()
: Select the frame in which the current window is
expected to be found.WebElementWrapper.waitForClosing()
: Wait until the current window is closed.waitForLoadingEnd()
: Wait for the window content to be loaded.WebElementWrapper.waitForElement(WebBrowserElement, By, int)
: Wait until having
found an element searched using the given mechanism.
Constructor Summary | |
---|---|
WebWindow(WebPage page,
By findBy)
|
|
WebWindow(WebPage page,
By findBy,
java.lang.String frame)
|
|
WebWindow(WebPage page,
WebBrowserElement parentElement,
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, By findBy)
public WebWindow(WebPage page, By findBy, java.lang.String frame)
public WebWindow(WebPage page, WebBrowserElement parentElement, 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 |