|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.selenium.client.Dialog
com.atlassian.confluence.selenium.client.MacroBrowser
public class MacroBrowser
Nested Class Summary | |
---|---|
static class |
MacroBrowser.Category
|
Field Summary | |
---|---|
static String |
BROWSE_MACROS_TITLE
|
Fields inherited from class com.atlassian.confluence.selenium.client.Dialog |
---|
client, id |
Constructor Summary | |
---|---|
MacroBrowser(ConfluenceSeleniumClient client)
|
Method Summary | |
---|---|
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. |
String |
getBodyText()
Deprecated. |
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 |
getFreeformParams()
Deprecated. Freeform macros are no longer supported |
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 |
isBodyTextAreaPresent()
Deprecated. |
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 |
typeBody(String text)
Deprecated. |
void |
typeFreeformMacro(String parameters)
Deprecated. Freeform macros are no longer supported |
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()
|
Methods inherited from class com.atlassian.confluence.selenium.client.Dialog |
---|
clickButton, clickCancel, clickLink, clickPageMenu, getId, getTitle, hasButton, hasLink, hasPageMenu, isButtonDisabled, isVisible, pressEscape, pressEscapeOnly, waitForRemoval, waitUntilClosed, waitUntilVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BROWSE_MACROS_TITLE
Constructor Detail |
---|
public MacroBrowser(ConfluenceSeleniumClient client)
Method Detail |
---|
public String getMacroDescription(String macroName)
public String getInsertMacroTitle(String macroTitle)
public String getEditMacroTitle(String macroTitle)
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)
@Deprecated public void typeFreeformMacro(String parameters)
@Deprecated public String getFreeformParams()
public boolean hasParameterField(String paramName)
public void typeStringParam(String paramName, String paramValue)
public String getParamValue(String paramName)
@Deprecated public void typeBody(String text)
@Deprecated public String getBodyText()
@Deprecated public boolean isBodyTextAreaPresent()
public void selectOption(String paramName, String value)
public String[] getSelectOptions(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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |