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
Comment in edit mode (it can be a top level or reply comment as well)
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancel()Cancel a comment in the quick editorCancel a comment in the quick editor, with a dirty editor.voidCancel a comment in the quick editor without waiting for bindcom.atlassian.pageobjects.elements.query.TimedConditionChecks to see if Captcha is present in the quick editorvoidClicks on the save button.voidvoidenterCaptcha(String captcha) Enters text into the captcha fieldGet the URL of the captcha image.This is a bit backwards, because the editor wraps thisEditorContent.com.atlassian.pageobjects.elements.query.TimedQuery<String>com.atlassian.pageobjects.elements.query.TimedConditionCondition waits for the editor save bar to loadcom.atlassian.pageobjects.elements.query.TimedConditioncom.atlassian.pageobjects.elements.query.TimedConditioncom.atlassian.pageobjects.elements.query.TimedConditionpreview()Preview a comment in the quick editorcom.atlassian.pageobjects.elements.query.TimedConditionChecks to see if preview pane is showingsave()voidDeprecated.Deprecated.Usesave()insteadvoidvoidWait 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.booleanDeprecated.com.atlassian.pageobjects.elements.query.TimedConditionMethods 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
-
Constructor Details
-
EditComment
public EditComment()
-
-
Method Details
-
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.Usesave()instead -
saveWithReload
Deprecated.Usesave()instead -
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
Preview a comment in the quick editor -
cancel
Cancel a comment in the quick editor- Returns:
- the current page
-
waitForEditorClosed
public void waitForEditorClosed() -
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
-
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
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
Enters text into the captcha field -
getEditor
This is a bit backwards, because the editor wraps thisEditorContent. -
getUserProfile
- Returns:
- the user logo displayed together with comment RTE
-
save()instead