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

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
              extended by com.atlassian.confluence.pageobjects.component.dialog.MacroBrowserDialog
All Implemented Interfaces:
PageComponent

public class MacroBrowserDialog
extends Dialog


Field Summary
static String BROWSE_MACROS_TITLE
           
static String ID
           
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
id
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, frameExecutor, pageBinder, pageElementFinder, timeouts, waiter
 
Constructor Summary
MacroBrowserDialog()
           
 
Method Summary
 void clickBack()
           
 void clickSave()
           
 String getEditMacroTitle(String macroTitle)
           
 String getInsertMacroTitle(String macroTitle)
           
 com.atlassian.pageobjects.elements.query.TimedCondition isMacroVisible(Macro.Category category, String macroName)
           
 com.atlassian.pageobjects.elements.query.TimedCondition isSaveButtonEnabled()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isSelectedCategory(Macro.Category category)
           
 Iterable<MacroItem> searchFor(String text)
           
 MacroItem searchForFirst(String text)
          Returns the first item matching macro search text.
 void selectCategory(Macro.Category category)
           
 void selectEnter()
           
 MacroForm selectMacro(Macro.Category category, String macroName)
           
 MacroForm selectMacro(String macro)
           
 void selectReturn()
           
 void typeStringParam(String paramName, String paramValue)
           
 void waitUntilMacroBrowserVisible()
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.dialog.Dialog
clickButton, clickCancel, clickCancelAndWaitUntilClosed, clickLink, clickPageMenu, find, findAll, getTitle, hasButton, hasLink, hasPageMenu, isButtonDisabled
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.dialog.AbstractDialog
getDialog, getHeight, getId, getWidth, isVisible, isVisibleTimed, 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
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values

BROWSE_MACROS_TITLE

public static final String BROWSE_MACROS_TITLE
See Also:
Constant Field Values
Constructor Detail

MacroBrowserDialog

public MacroBrowserDialog()
Method Detail

searchFor

public Iterable<MacroItem> searchFor(String text)

searchForFirst

public MacroItem searchForFirst(String text)
Returns the first item matching macro search text. Should be fairly safe if the search text is the macro name.


selectMacro

public MacroForm selectMacro(String macro)

isSelectedCategory

public com.atlassian.pageobjects.elements.query.TimedCondition isSelectedCategory(Macro.Category category)

selectCategory

public void selectCategory(Macro.Category category)

selectMacro

public MacroForm selectMacro(Macro.Category category,
                             String macroName)

isMacroVisible

public com.atlassian.pageobjects.elements.query.TimedCondition isMacroVisible(Macro.Category category,
                                                                              String macroName)

waitUntilMacroBrowserVisible

public void waitUntilMacroBrowserVisible()

selectReturn

public void selectReturn()

selectEnter

public void selectEnter()

isSaveButtonEnabled

public com.atlassian.pageobjects.elements.query.TimedCondition isSaveButtonEnabled()
Since:
5.6

clickSave

public void clickSave()

clickBack

public void clickBack()

getInsertMacroTitle

public String getInsertMacroTitle(String macroTitle)

getEditMacroTitle

public String getEditMacroTitle(String macroTitle)

typeStringParam

public void typeStringParam(String paramName,
                            String paramValue)


Copyright © 2003–2015 Atlassian. All rights reserved.