Class CommentsSection.EditComment
- java.lang.Object
-
- com.atlassian.confluence.pageobjects.component.editor.EditorContent
-
- com.atlassian.confluence.pageobjects.page.content.CommentsSection.EditComment
-
- Direct Known Subclasses:
CommentsSection.NewComment
,CommentsSection.NewReply
,CommentsSection.QuickEdit
- Enclosing class:
- CommentsSection
public static class CommentsSection.EditComment extends EditorContent
Comment in edit mode (it can be a top level or reply comment as well)
-
-
Constructor Summary
Constructors Constructor Description EditComment()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ViewPage
cancel()
Cancel a comment in the quick editorViewPage
cancelWithDirtyEditor()
Cancel a comment in the quick editor, with a dirty editor.void
cancelWithoutWaitForBind()
Cancel a comment in the quick editor without waiting for bindcom.atlassian.pageobjects.elements.query.TimedCondition
captchaVisibleCondition()
Checks to see if Captcha is present in the quick editorvoid
clickSave()
Clicks on the save button.void
editUsingShortcut()
void
enterCaptcha(String captcha)
Enters text into the captcha fieldString
getCaptchaUrl()
Get the URL of the captcha image.Editor
getEditor()
This is a bit backwards, because the editor wraps thisEditorContent
.com.atlassian.pageobjects.elements.query.TimedQuery<String>
getPreviewText()
CommentsSection.UserLogo
getUserProfile()
com.atlassian.pageobjects.elements.query.TimedCondition
isSaveBarVisible()
Condition waits for the editor save bar to loadcom.atlassian.pageobjects.elements.query.TimedCondition
isSaveButtonDisplayedInScreen()
com.atlassian.pageobjects.elements.query.TimedCondition
isWarningMessageVisible()
com.atlassian.pageobjects.elements.query.TimedCondition
loadingContainerVisibleCondition()
EditorPreview
preview()
Preview a comment in the quick editorcom.atlassian.pageobjects.elements.query.TimedCondition
previewVisibleCondition()
Checks to see if preview pane is showingViewPage
save()
void
saveWithoutReload()
Deprecated.Usesave()
insteadViewPage
saveWithReload()
Deprecated.Usesave()
insteadvoid
waitForEditorClosed()
void
waitForTinyMCE()
Wait for the TinyMCE editor in the comments section to be ready, as we'd get JS errors otherwise if we try to insert text too early.boolean
watchThisPageCheckboxVisibleCondition()
Deprecated.com.atlassian.pageobjects.elements.query.TimedCondition
watchThisPageCheckboxVisibleTimedCondition()
-
Methods inherited from class com.atlassian.confluence.pageobjects.component.editor.EditorContent
autocompleteMacro, clear, clickEditInlineMacro, clickInContent, clickOnInlinetask, doubleClickEditInlineMacro, elementSelectionNumberOfMatches, focus, getAttributeInSelection, getContainerSize, getCurrentSearchMatchText, getEditorVersion, getEmbeddedImages, getEmbededLinks, getHtml, getImageHeight, getInnerHTMLOfCurrentCursorPosition, getRenderedContent, getSelectorParentText, getTextInSelection, getTimedHtml, getTimedNormalizedHtml, hasInlineMacro, hasLayout, hasMacro, hasMacro, hasMacroPlaceholder, hasPageLinkWithExplicitSpaceKey, htmlContains, isContentVisible, isElementPresentInEditorContentTimed, isImagePresent, isImagePresentBySrc, isVisble, isVisible, macroPlaceholderFor, mentionsAutocomplete, normalizedHtmlContains, normalizeHtml, pasteContent, placeCursor, placeCursorAtEnd, placeCursorAtStart, putCursorAtStartOfElementWithSelectorAndIndex, select, selectElementWithSelectorAndIndex, selectFirstElementWithSelector, selectFirstParagraph, sendKeys, setContent, setContentInColumn, setContentViaJs, type, typeIn, typeInColumn, typeWithoutLosingFocus, undo, waitForInlineMacro, waitForInlineMacroWithDefaultParameter, waitForInlineMacroWithParameters, waitForMacroBody, waitForMacroBodyInColumn, waitForMacroWithParameters, waitForMacroWithParameters, waitForTextContent, waitUntilMetaDataIsPopulated
-
-
-
-
Method Detail
-
waitForTinyMCE
public void waitForTinyMCE()
Wait for the TinyMCE editor in the comments section to be ready, as we'd get JS errors otherwise if we try to insert text too early.
-
editUsingShortcut
public void editUsingShortcut()
-
isSaveButtonDisplayedInScreen
public com.atlassian.pageobjects.elements.query.TimedCondition isSaveButtonDisplayedInScreen()
-
isWarningMessageVisible
public com.atlassian.pageobjects.elements.query.TimedCondition isWarningMessageVisible()
-
loadingContainerVisibleCondition
public com.atlassian.pageobjects.elements.query.TimedCondition loadingContainerVisibleCondition()
-
saveWithoutReload
@Deprecated public void saveWithoutReload()
Deprecated.Usesave()
instead
-
saveWithReload
@Deprecated public ViewPage saveWithReload()
Deprecated.Usesave()
instead
-
save
public ViewPage save()
-
clickSave
public void clickSave()
Clicks on the save button.
-
isSaveBarVisible
public com.atlassian.pageobjects.elements.query.TimedCondition isSaveBarVisible()
Condition waits for the editor save bar to load
-
preview
public EditorPreview preview()
Preview a comment in the quick editor
-
cancel
public ViewPage cancel()
Cancel a comment in the quick editor- Returns:
- the current page
-
waitForEditorClosed
public void waitForEditorClosed()
-
cancelWithDirtyEditor
public ViewPage cancelWithDirtyEditor()
Cancel a comment in the quick editor, with a dirty editor. (Useful if you still need the bind.)- Returns:
- the current page
-
cancelWithoutWaitForBind
public void cancelWithoutWaitForBind()
Cancel a comment in the quick editor without waiting for bind
-
previewVisibleCondition
public com.atlassian.pageobjects.elements.query.TimedCondition previewVisibleCondition()
Checks to see if preview pane is showing- Returns:
-
getPreviewText
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getPreviewText()
-
watchThisPageCheckboxVisibleCondition
@Deprecated public boolean watchThisPageCheckboxVisibleCondition()
Deprecated.Checks to see if Watch this page checkbox is present in the quick editor
-
watchThisPageCheckboxVisibleTimedCondition
public com.atlassian.pageobjects.elements.query.TimedCondition watchThisPageCheckboxVisibleTimedCondition()
-
getCaptchaUrl
public String getCaptchaUrl()
Get the URL of the captcha image. Can be used to check if the captcha has changed- Returns:
-
captchaVisibleCondition
public com.atlassian.pageobjects.elements.query.TimedCondition captchaVisibleCondition()
Checks to see if Captcha is present in the quick editor
-
enterCaptcha
public void enterCaptcha(String captcha)
Enters text into the captcha field
-
getEditor
public Editor getEditor()
This is a bit backwards, because the editor wraps thisEditorContent
.
-
getUserProfile
public CommentsSection.UserLogo getUserProfile()
- Returns:
- the user logo displayed together with comment RTE
-
-