public class MacroBrowser extends Dialog
Modifier and Type | Class and Description |
---|---|
static class |
MacroBrowser.Category |
Constructor and Description |
---|
MacroBrowser(ConfluenceSeleniumClient client) |
Modifier and Type | Method and Description |
---|---|
void |
clickCheckboxParam(String paramName,
boolean check) |
void |
clickClose() |
void |
clickDropDownOption(String displayText)
Click the specified option in the visible macro browser drop down
|
void |
clickInsert() |
void |
clickPreview(boolean waitForPreview) |
static String |
getBrowseCategoryMacroId(MacroBrowser.Category category,
String macroName) |
String |
getDropDownOptionTooltip(String displayText)
Returns the tooltip (title) text for the dropdown option with the supplied display text.
|
String |
getEditMacroTitle(String macroTitle) |
String |
getInsertMacroTitle(String macroTitle) |
String |
getMacroDescription(String macroName) |
String |
getParameterDescription(String parameterName)
Returns the description text under the given parameter for the currently-displayed macro.
|
String |
getParamId(String paramName) |
String |
getParamValue(String paramName) |
MacroBrowser.Category |
getSelectedCategory() |
Marketplace |
goToMarketplace() |
boolean |
hasCategory(MacroBrowser.Category category) |
boolean |
isDropDownOptionVisible(String displayText)
Returns true if display text appears in the currently-visible 'smart field' drop down.
|
boolean |
isDropDownVisibleForParameter(String paramName)
Is a 'smart field' drop down visible for the named macro parameter.
|
void |
selectCategory(MacroBrowser.Category category) |
void |
selectMacro(String macroKey) |
void |
selectMacro(String macroKey,
boolean waitForPreview) |
void |
selectMainFrame()
Selects the main/top frame for Confluence.
|
void |
typeStringParam(String paramName,
String paramValue) |
void |
waitForDropDownForParameter(String paramName)
Is a 'smart field' drop down visible for the named macro parameter.
|
void |
waitForDropDownToCloseForParameter(String paramName)
Waits until no dropdown is displayed for the named macro parameter.
|
void |
waitForPreviewButtonToEnable()
Wait for the preview button to be enabled
|
void |
waitForPreviewToLoad() |
clickButton, clickCancel, clickLink, clickPageMenu, getTitle, hasPageMenu, isVisible, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilClosed, waitUntilVisible
public MacroBrowser(ConfluenceSeleniumClient client)
public void selectCategory(MacroBrowser.Category category)
public boolean hasCategory(MacroBrowser.Category category)
public MacroBrowser.Category getSelectedCategory()
public void selectMacro(String macroKey)
public void selectMacro(String macroKey, boolean waitForPreview)
public void waitForPreviewToLoad()
public void selectMainFrame()
public void clickCheckboxParam(String paramName, boolean check)
public void waitForDropDownForParameter(String paramName)
public void waitForDropDownToCloseForParameter(String paramName)
public boolean isDropDownVisibleForParameter(String paramName)
public boolean isDropDownOptionVisible(String displayText)
public String getDropDownOptionTooltip(String displayText)
public void clickDropDownOption(String displayText)
displayText
- the display text of the option to be selectedpublic void clickPreview(boolean waitForPreview)
public void waitForPreviewButtonToEnable()
public void clickClose()
public void clickInsert()
public String getParamId(String paramName)
public Marketplace goToMarketplace()
public String getParameterDescription(String parameterName)
public static String getBrowseCategoryMacroId(MacroBrowser.Category category, String macroName)
Copyright © 2003–2018 Atlassian. All rights reserved.