com.atlassian.confluence.pageobjects.component.dialog
Class AbstractDialog

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
All Implemented Interfaces:
PageComponent
Direct Known Subclasses:
Dialog, PropertyPanel

public class AbstractDialog
extends ConfluenceAbstractPageComponent


Field Summary
protected  String id
           
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, pageBinder, poller
 
Constructor Summary
AbstractDialog(String id)
           
 
Method Summary
 String getId()
           
 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 com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
getComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id
Constructor Detail

AbstractDialog

public AbstractDialog(String id)
Method Detail

getId

public String getId()

waitUntilVisible

public void waitUntilVisible()

waitUntilHidden

public void waitUntilHidden()

isVisible

public boolean isVisible()

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-2012 Atlassian. All Rights Reserved.