com.atlassian.confluence.selenium.client
Class Dialog

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.Dialog
Direct Known Subclasses:
DraftChangesDialog, InsertImageDialog, KeyboardShortcutHelpDialog, LinkBrowser, LinkToPageDialog, MacroBrowser, ManageWatchersDialog, MovePageDialog, PagePermissionsEditor, ScheduleJobAdminEditDialog, ScheduleJobAdminHistoryDialog, UserStatusDialog, WhatsNewDialog

public class Dialog
extends java.lang.Object


Field Summary
protected  ConfluenceSeleniumClient client
           
protected  java.lang.String id
           
 
Constructor Summary
Dialog(java.lang.String id, ConfluenceSeleniumClient client)
           
 
Method Summary
protected  void clickButton(java.lang.String className, boolean waitForDialogToClose)
           
 void clickCancel()
          Clicks the 'Cancel' button.
 void clickClose()
          Clicks the 'Close' button.
protected  void clickLink(java.lang.String className, boolean waitForDialogToClose)
           
protected  void clickPageMenu(java.lang.String menuItemText)
           
 java.lang.String getId()
           
 java.lang.String getTitle()
           
 boolean hasButton(java.lang.String className)
           
 boolean hasLink(java.lang.String className)
           
protected  boolean hasPageMenu(java.lang.String menuItemText)
           
 boolean isButtonDisabled(java.lang.String className)
           
 boolean isVisible()
           
 void pressEscape()
          Presses the escape key in the dialog.
 void pressEscapeOnly()
          Presses the escape key in the dialog, without doing the entire up / pressed / down event sequence.
 void waitForRemoval()
          Waits for the dialog to be removed from the DOM.
 void waitUntilHidden()
           
 void waitUntilVisible()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

client

protected ConfluenceSeleniumClient client
Constructor Detail

Dialog

public Dialog(java.lang.String id,
              ConfluenceSeleniumClient client)
Method Detail

getId

public java.lang.String getId()

getTitle

public java.lang.String getTitle()

waitUntilVisible

public void waitUntilVisible()

waitUntilHidden

public void waitUntilHidden()

isVisible

public boolean isVisible()

clickButton

protected void clickButton(java.lang.String className,
                           boolean waitForDialogToClose)

clickLink

protected void clickLink(java.lang.String className,
                         boolean waitForDialogToClose)

hasButton

public boolean hasButton(java.lang.String className)

hasLink

public boolean hasLink(java.lang.String className)

isButtonDisabled

public boolean isButtonDisabled(java.lang.String className)

clickPageMenu

protected void clickPageMenu(java.lang.String menuItemText)

hasPageMenu

protected boolean hasPageMenu(java.lang.String menuItemText)

clickCancel

public void clickCancel()
Clicks the 'Cancel' button. Fails if link does not exist.


clickClose

public void clickClose()
Clicks the 'Close' button. Fails if link does not exist.


waitForRemoval

public void waitForRemoval()
Waits for the dialog to be removed from the DOM.


pressEscape

public void pressEscape()
Presses the escape key in the dialog.


pressEscapeOnly

public void pressEscapeOnly()
Presses the escape key in the dialog, without doing the entire up / pressed / down event sequence. Use in cases where the id may be removed from the DOM as a result of the key press.



Copyright © 2003-2011 Atlassian. All Rights Reserved.