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

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.editor.EditorContent
      extended by com.atlassian.confluence.pageobjects.page.content.CommentsSection.NewComment
Enclosing class:
CommentsSection

public static class CommentsSection.NewComment
extends EditorContent

Represents the editor for a new comment


Field Summary
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.editor.EditorContent
binder, driver, execute, page
 
Constructor Summary
CommentsSection.NewComment()
           
 
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
 com.atlassian.pageobjects.elements.query.TimedCondition isSaveBarVisible()
          Condition waits for the editor save bar to load
 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()
           
 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
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.editor.EditorContent
clear, clickInContent, getCurrentSelectionText, getHtml, getRenderedContent, getTimedHtml, hasLayout, macroPlaceholderFor, placeCursor, placeCursorAtStart, putCursorAtStartOfElementWithSelectorAndIndex, putCursorAtStartOfFirstElementWithSelector, replaceCurrentSelectionText, selectElementWithSelectorAndIndex, selectFirstElementWithSelector, selectFirstParagraph, setContent, setContentInColumn, setContentViaJs, type, typeIn, typeInColumn, typeInFooter, typeInHeader, waitForMacroBodyInColumn, waitForTextContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentsSection.NewComment

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


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


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



Copyright © 2003-2013 Atlassian. All Rights Reserved.