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
 ViewPage cancelWithDirtyEditor()
          Cancel a comment in the quick editor, with a dirty editor.
 void cancelWithoutWaitForBind()
          Cancel a comment in the quick editor without waiting for bind
 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 editUsingShortcut()
           
 void enterCaptcha(String captcha)
          Enters text into the captcha field
 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 setWatchThisPageCheckbox(boolean watch)
          Set the 'watch this page' checkbox to the specified state.
 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 watchThisPageCheckboxCheckedCondition()
          Checks to see if Watch this page checkbox is visible and checked in the quick editor
 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, doubleClickEditWysiwygMacro, doubleClickInContent, elementSelectionNumberOfMatches, focus, getAttributeInSelection, getClassNameOfCurrentCursor, getContainerSize, getCurrentSearchMatchText, getCurrentSelectionText, getCurrentSelectionTextTimed, getEmbeddedImages, getEmbededLinks, getHtml, getImageHeight, getImageWidth, getInnerHTMLOfCurrentCursorPosition, getRenderedContent, getSelectorParentText, getTextInSelection, getTimedHtml, getTimedNormalizedHtml, hasInlineMacro, hasLayout, hasMacro, hasMacroPlaceholder, hasPageLinkWithExplicitSpaceKey, htmlContains, isContentVisible, isElementPresentInEditorContentTimed, isImagePresent, isImagePresentBySrc, 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, waitForMacro, waitForMacroBody, waitForMacroBodyInColumn, waitForMacroWithParameters, 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.


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

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

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:

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()

watchThisPageCheckboxCheckedCondition

public boolean watchThisPageCheckboxCheckedCondition()
Checks to see if Watch this page checkbox is visible and checked in the quick editor


setWatchThisPageCheckbox

public void setWatchThisPageCheckbox(boolean watch)
Set the 'watch this page' checkbox to the specified state.


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


Copyright © 2003–2015 Atlassian. All rights reserved.