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 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 public void saveWithoutReload()
      Deprecated.
      Use save() instead
    • saveWithReload

      @Deprecated public ViewPage saveWithReload()
      Deprecated.
      Use save() 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 this EditorContent.
    • getUserProfile

      public CommentsSection.UserLogo getUserProfile()
      Returns:
      the user logo displayed together with comment RTE