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

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
              extended by com.ibm.team.fvt.tests.web.WebDialog
All Implemented Interfaces:
WebConstants
Direct Known Subclasses:
WebFramedDialog

public abstract class WebDialog
extends WebWindow

Abstract class for any window opened as a dialog in a browser page.

Following functionalities are specialized by the dialog:

Following operations are also specialized for dialogs:


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
WebDialog(WebPage page, org.openqa.selenium.By findBy)
           
WebDialog(WebPage page, org.openqa.selenium.By findBy, java.lang.String frame)
           
WebDialog(WebPage page, org.openqa.selenium.By findBy, WebBrowserFrame frame)
           
 
Method Summary
 WebBrowserElement open(WebBrowserElement openElement)
          Open the window by clicking on the given web element.
 WebBrowserElement opened()
          Method to get the element on an already opened dialog.
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebWindow
cancel, close
 
Methods inherited from class com.ibm.team.fvt.tests.web.WebElementWrapper
getText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDialog

public WebDialog(WebPage page,
                 org.openqa.selenium.By findBy)

WebDialog

public WebDialog(WebPage page,
                 org.openqa.selenium.By findBy,
                 java.lang.String frame)

WebDialog

public WebDialog(WebPage page,
                 org.openqa.selenium.By findBy,
                 WebBrowserFrame frame)
Method Detail

opened

public WebBrowserElement opened()
Method to get the element on an already opened dialog.

Returns:
The dialog as a WebDialog subclass.

open

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

Specified by:
open in class WebWindow
Parameters:
openElement - The element on which to perform the open action.
Returns:
The dialog as a WebDialog subclass.