com.atlassian.confluence.pageobjects.page.content
Class CommentsSection.EditComment

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.editor.EditorContent
      extended by 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


Field Summary
protected  org.openqa.selenium.WebDriver driver
           
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.editor.EditorContent
binder, execute, page
 
Constructor Summary
CommentsSection.EditComment()
           
 
Method Summary
 ViewPage cancel()
          Cancel a comment in the quick editor
 com.atlassian.pageobjects.elements.query.TimedCondition captchaVisibleCondition()
          Checks to see if Captcha is present in the quick editor
 void clickSave()
          Clicks on the save button.
 void enterCaptcha(java.lang.String captcha)
          Enters text into the captcha field
 java.lang.String getCaptchaUrl()
          Get the URL of the captcha image.
 Editor getEditor()
          This is a bit backwards, because the editor wraps this EditorContent.
 CommentsSection.UserLogo getUserProfile()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isSaveBarVisible()
          Condition waits for the editor save bar to load
 com.atlassian.pageobjects.elements.query.TimedCondition isSaveButtonDisplayedInScreen()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isWarningMessageVisible()
           
 com.atlassian.pageobjects.elements.query.TimedCondition loadingContainerVisibleCondition()
           
 void preview()
          Preview a comment in the quick editor
 com.atlassian.pageobjects.elements.query.TimedCondition previewVisibleCondition()
          Checks to see if preview pane is showing
 ViewPage save()
          Deprecated. since 5.6, use saveWithReload() saveWithoutReload() instead.
 void saveWithoutReload()
           
 ViewPage saveWithReload()
           
 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()
          Checks to see if Watch this page checkbox is present in the quick editor
 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, getClassNameOfCurrentCursor, getContainerSize, getCurrentSearchMatchText, getCurrentSelectionText, getCurrentSelectionTextTimed, getHtml, getImageHeight, getImageWidth, getInnerHTMLOfCurrentCursorPosition, getRenderedContent, getSelectorParentText, getTextInSelection, getTimedHtml, getTimedNormalizedHtml, hasInlineMacro, hasLayout, hasPageLinkWithExplicitSpaceKey, htmlContains, isContentVisible, isElementPresentInEditorContentTimed, isImagePresent, isVisble, isVisible, macroPlaceholderFor, mentionsAutocomplete, normalizedHtmlContains, normalizeHtml, pasteContent, placeCursor, placeCursorAtEnd, placeCursorAtStart, putCursorAtEndOfFirstElementWithSelector, putCursorAtStartOfElementWithSelectorAndIndex, putCursorAtStartOfFirstElementWithSelector, redo, replaceCurrentSelectionChildContent, replaceCurrentSelectionChildContentWithHtml, replaceCurrentSelectionText, select, selectElementWithSelectorAndIndex, selectFirstElementWithSelector, selectFirstParagraph, sendKeys, setContent, setContentInColumn, setContentViaJs, type, typeIn, typeInColumn, typeWithoutLosingFocus, undo, waitForInlineMacro, waitForInlineMacroWithDefaultParameter, waitForInlineMacroWithParameters, waitForMacroBody, waitForMacroBodyInColumn, waitForTextContent, waitUntilMetaDataIsPopulated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

@Inject
protected org.openqa.selenium.WebDriver driver
Constructor Detail

CommentsSection.EditComment

public CommentsSection.EditComment()
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.


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

public void saveWithoutReload()

saveWithReload

public ViewPage saveWithReload()
Since:
5.6 comments can be saved now without page refresh

save

@Deprecated
public ViewPage save()
Deprecated. since 5.6, use saveWithReload() saveWithoutReload() instead.


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 void preview()
Preview a comment in the quick editor


cancel

public ViewPage cancel()
Cancel a comment in the quick editor

Returns:
the current page

previewVisibleCondition

public com.atlassian.pageobjects.elements.query.TimedCondition previewVisibleCondition()
Checks to see if preview pane is showing

Returns:

watchThisPageCheckboxVisibleCondition

public boolean watchThisPageCheckboxVisibleCondition()
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 java.lang.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(java.lang.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


Copyright © 2003-2014 Atlassian. All Rights Reserved.