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

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
Direct Known Subclasses:
WebDialog, WebHover, WebPopupMenuElement

public abstract class WebWindow
extends WebElementWrapper

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:

Common operations for any window are:


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

WebWindow

public WebWindow(WebPage page,
                 By findBy)

WebWindow

public WebWindow(WebPage page,
                 By findBy,
                 java.lang.String frame)

WebWindow

public WebWindow(WebPage page,
                 WebBrowserElement parentElement,
                 By findBy,
                 WebBrowserFrame frame,
                 int maxRetry)
Method Detail

cancel

public final void cancel()
Close the window by clicking on the cancel button (usually the 'Cancel' button).


close

public final void close()
Close the window by clicking on the close button (usually the 'OK' button).


open

public abstract WebBrowserElement open(WebBrowserElement openElement)
Open the window by clicking on the given web element.

Parameters:
openElement - The element on which to perform the open action.
Returns:
The opened window as a WebWindow subclass.