public class MacroBrowser extends Dialog
Modifier and Type | Class and Description |
---|---|
static class |
MacroBrowser.Category |
Modifier and Type | Field and Description |
---|---|
static String |
BROWSE_MACROS_TITLE |
Constructor and Description |
---|
MacroBrowser(ConfluenceSeleniumClient client) |
Modifier and Type | Method and Description |
---|---|
void |
assertElementExistsInPreview(String jquerySelector) |
void |
clickBack() |
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) |
void |
focusInSearch() |
String |
getBodyLabel()
Returns the label for the Macro Body textarea.
|
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) |
String |
getSearch() |
MacroBrowser.Category |
getSelectedCategory() |
String[] |
getSelectOptions(String paramName) |
Marketplace |
goToMarketplace() |
boolean |
hasCategory(MacroBrowser.Category category) |
boolean |
hasParameterField(String paramName)
Returns true if there is a parameter field element present for the parameter
with the supplied name.
|
boolean |
isCheckboxParamChecked(String paramName) |
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.
|
boolean |
isOkButtonEnabled() |
boolean |
isOnNoMetadataPage() |
boolean |
isOnSelectionPage() |
void |
search(String text) |
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 |
selectOption(String paramName,
String value) |
void |
selectPreviewFrame() |
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 |
waitForPreviewButtonToDisable()
Wait for the preview button to be disabled
|
void |
waitForPreviewButtonToEnable()
Wait for the preview button to be enabled
|
void |
waitForPreviewToLoad() |
clickButton, clickCancel, clickLink, clickPageMenu, getId, getTitle, hasButton, hasLink, hasPageMenu, isButtonDisabled, isVisible, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilClosed, waitUntilVisible
public static final String BROWSE_MACROS_TITLE
public MacroBrowser(ConfluenceSeleniumClient client)
public boolean isOnNoMetadataPage()
public boolean isOnSelectionPage()
public void search(String text)
public String getSearch()
public void focusInSearch()
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 assertElementExistsInPreview(String jquerySelector)
public void selectPreviewFrame()
public void selectMainFrame()
public void clickCheckboxParam(String paramName, boolean check)
public boolean isCheckboxParamChecked(String paramName)
public boolean hasParameterField(String paramName)
public String getBodyLabel()
public void waitForDropDownForParameter(String paramName)
public void waitForDropDownToCloseForParameter(String paramName)
public boolean isDropDownVisibleForParameter(String paramName)
public boolean isDropDownOptionVisible(String displayText)
public boolean isOkButtonEnabled()
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 waitForPreviewButtonToDisable()
public void clickClose()
public void clickBack()
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–2015 Atlassian. All rights reserved.