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

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
          extended by com.atlassian.confluence.pageobjects.component.dialog.Dialog
All Implemented Interfaces:
PageComponent
Direct Known Subclasses:
BlueprintDialog, EmailToPageDialog, ImageBrowserDialog, KeyboardShortcutHelperDialog, LabelsDialog, LinkBrowserDialog, MacroBrowserDialog, ProjectShortcutsDialog, RemoveTemplateDialog, SymbolDialog, WhatsNewDialog, WikiMarkupDialog

public class Dialog
extends AbstractDialog


Field Summary
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
id
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, pageBinder, pageElementFinder, waiter
 
Constructor Summary
Dialog(String id)
           
 
Method Summary
protected  void clickButton(String className, boolean waitForDialogToClose)
           
 void clickCancel()
          Clicks the 'Cancel' link (anything in the dialog with a "button-panel-cancel-link" class.
protected  void clickLink(String className, boolean waitForDialogToClose)
           
protected  void clickPageMenu(String menuItemText)
           
protected  com.atlassian.pageobjects.elements.PageElement find(String cssSelector)
           
protected  List<com.atlassian.pageobjects.elements.PageElement> findAll(String cssSelector)
           
 String getTitle()
           
 boolean hasButton(String className)
           
 boolean hasLink(String className)
           
protected  boolean hasPageMenu(String menuItemText)
           
 boolean isButtonDisabled(String className)
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
getId, isVisible, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilHidden, 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
 

Constructor Detail

Dialog

public Dialog(String id)
Method Detail

getTitle

public String getTitle()

clickButton

protected void clickButton(String className,
                           boolean waitForDialogToClose)

clickLink

protected void clickLink(String className,
                         boolean waitForDialogToClose)

hasButton

public boolean hasButton(String className)

hasLink

public boolean hasLink(String className)

isButtonDisabled

public boolean isButtonDisabled(String className)

clickPageMenu

protected void clickPageMenu(String menuItemText)

hasPageMenu

protected boolean hasPageMenu(String menuItemText)

clickCancel

public void clickCancel()
Clicks the 'Cancel' link (anything in the dialog with a "button-panel-cancel-link" class. Fails if link does not exist.


find

protected com.atlassian.pageobjects.elements.PageElement find(String cssSelector)

findAll

protected List<com.atlassian.pageobjects.elements.PageElement> findAll(String cssSelector)


Copyright © 2003-2013 Atlassian. All Rights Reserved.