|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.Dialog com.atlassian.confluence.selenium.client.MacroBrowser
public class MacroBrowser
Nested Class Summary | |
---|---|
static class |
MacroBrowser.Category
|
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.selenium.client.Dialog |
---|
client, id |
Constructor Summary | |
---|---|
MacroBrowser(ConfluenceSeleniumClient client,
Editor editor)
|
Method Summary | |
---|---|
void |
clickBack()
|
void |
clickCheckboxParam(java.lang.String paramName,
boolean check)
|
void |
clickClose()
|
void |
clickDropDownOption(java.lang.String displayText)
Click the specified option in the visible macro browser drop down |
void |
clickInsert()
|
void |
clickPreview(boolean waitForPreview)
|
java.lang.String |
getBodyText()
|
java.lang.String |
getDropDownOptionTooltip(java.lang.String displayText)
Returns the tooltip (title) text for the dropdown option with the supplied display text. |
java.lang.String |
getEditMacroTitle(java.lang.String macroTitle)
|
java.lang.String |
getFreeformParams()
|
java.lang.String |
getInsertMacroTitle(java.lang.String macroTitle)
|
java.lang.String |
getMacroDescription(java.lang.String macroName)
|
java.lang.String |
getParameterDescription(java.lang.String parameterName)
Returns the description text under the given parameter for the currently-displayed macro. |
java.lang.String |
getParamId(java.lang.String paramName)
|
java.lang.String |
getParamValue(java.lang.String paramName)
|
java.lang.String |
getSearch()
|
boolean |
isBodyTextAreaPresent()
|
boolean |
isCheckboxParamChecked(java.lang.String paramName)
|
boolean |
isDropDownOptionVisible(java.lang.String displayText)
Returns true if display text appears in the currently-visible 'smart field' drop down. |
boolean |
isDropDownVisibleForParameter(java.lang.String paramName)
Is a 'smart field' drop down visible for the named macro parameter. |
boolean |
isOnSelectionPage()
|
void |
search(java.lang.String text)
|
void |
selectCategory(MacroBrowser.Category category)
|
void |
selectMacro(java.lang.String macroKey)
|
void |
selectMacro(java.lang.String macroKey,
boolean waitForPreview)
|
void |
selectMainFrame()
Selects the main/top frame for Confluence. |
void |
selectPreviewFrame()
|
void |
typeBody(java.lang.String text)
|
void |
typeFreeformMacro(java.lang.String parameters)
|
void |
typeStringParam(java.lang.String paramName,
java.lang.String paramValue)
|
void |
waitForDropDownForParameter(java.lang.String paramName)
Is a 'smart field' drop down visible for the named macro parameter. |
void |
waitForDropDownToCloseForParameter(java.lang.String paramName)
Waits until no dropdown is displayed for the named macro parameter. |
void |
waitForPreviewToLoad()
|
Methods inherited from class com.atlassian.confluence.selenium.client.Dialog |
---|
clickButton, clickPageMenu, getId, getTitle, hasButton, isButtonDisabled, isVisible, pressEscape, waitUntilHidden, waitUntilVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MacroBrowser(ConfluenceSeleniumClient client, Editor editor)
Method Detail |
---|
public java.lang.String getMacroDescription(java.lang.String macroName)
public java.lang.String getInsertMacroTitle(java.lang.String macroTitle)
public java.lang.String getEditMacroTitle(java.lang.String macroTitle)
public boolean isOnSelectionPage()
public void search(java.lang.String text)
public java.lang.String getSearch()
public void selectCategory(MacroBrowser.Category category)
public void selectMacro(java.lang.String macroKey)
public void selectMacro(java.lang.String macroKey, boolean waitForPreview)
public void waitForPreviewToLoad()
public void selectPreviewFrame()
public void selectMainFrame()
public void clickCheckboxParam(java.lang.String paramName, boolean check)
public boolean isCheckboxParamChecked(java.lang.String paramName)
public void typeFreeformMacro(java.lang.String parameters)
public java.lang.String getFreeformParams()
public void typeStringParam(java.lang.String paramName, java.lang.String paramValue)
public java.lang.String getParamValue(java.lang.String paramName)
public void typeBody(java.lang.String text)
public java.lang.String getBodyText()
public boolean isBodyTextAreaPresent()
public void waitForDropDownForParameter(java.lang.String paramName)
paramName
- public void waitForDropDownToCloseForParameter(java.lang.String paramName)
public boolean isDropDownVisibleForParameter(java.lang.String paramName)
paramName
- public boolean isDropDownOptionVisible(java.lang.String displayText)
displayText
- public java.lang.String getDropDownOptionTooltip(java.lang.String displayText)
public void clickDropDownOption(java.lang.String displayText)
displayText
- the display text of the option to be selectedpublic void clickPreview(boolean waitForPreview)
public void clickClose()
public void clickBack()
public void clickInsert()
public java.lang.String getParamId(java.lang.String paramName)
paramName
-
public java.lang.String getParameterDescription(java.lang.String parameterName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |