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:
AddSpaceDialog, AddVersionDialog, ConfirmPasswordDialog, CreateDialog, Dialog, ManageWatchersDialog, MoveBlogPostDialog, MovePageDialog, PageRestrictionsDialog, UserStatusDialog, ViewDraftDiffDialog, WatchDialog

public abstract class AbstractDialog
extends ConfluenceAbstractPageComponent


Field Summary
protected  String id
          Deprecated. since 5.4, there's no reason to use this outside this class, it should be private. Use the getDialog() pageelement if you need to use the dialog.
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, frameExecutor, pageBinder, pageElementFinder, timeouts, waiter
 
Constructor Summary
AbstractDialog(String id)
           
 
Method Summary
 com.atlassian.pageobjects.elements.PageElement getDialog()
           
 int getHeight()
           
 String getId()
          Deprecated. since 5.4, there's no reason to use this outside this class. Use the getDialog() pageelement if you need to use the dialog.
 String getTitle()
           
 int getWidth()
           
 boolean isVisible()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isVisibleTimed()
           
 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

@Deprecated
protected String id
Deprecated. since 5.4, there's no reason to use this outside this class, it should be private. Use the getDialog() pageelement if you need to use the dialog.
Constructor Detail

AbstractDialog

public AbstractDialog(String id)
Method Detail

getId

@Deprecated
public String getId()
Deprecated. since 5.4, there's no reason to use this outside this class. Use the getDialog() pageelement if you need to use the dialog.


waitUntilVisible

public void waitUntilVisible()

waitUntilHidden

public void waitUntilHidden()

isVisible

public boolean isVisible()

isVisibleTimed

public com.atlassian.pageobjects.elements.query.TimedCondition isVisibleTimed()

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.


getDialog

public com.atlassian.pageobjects.elements.PageElement getDialog()

getTitle

public String getTitle()

getWidth

public int getWidth()
Returns:
the width of this dialog

getHeight

public int getHeight()


Copyright © 2003–2015 Atlassian. All rights reserved.