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

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.page.content.CommentsSection.Comment
Enclosing class:
CommentsSection

public static class CommentsSection.Comment
extends Object

Represents a comment in view mode


Field Summary
protected  com.atlassian.pageobjects.PageBinder pageBinder
           
 
Constructor Summary
CommentsSection.Comment(com.atlassian.pageobjects.elements.PageElement commentElement)
           
 
Method Summary
 EditorContent clickEdit()
          Deprecated. since 5.5, use edit(), which returns an Editor instead.
 void clickEditWithoutWaitForBind()
           
 EditorContent clickReply()
          Deprecated. since 5.5, use reply(), which returns an CommentsSection.NewComment instead.
 void clickReplyWithoutWaitForBind()
          Simply click the reply button and do not wait for a page object to be binded to the new editor.
 com.atlassian.pageobjects.elements.query.TimedCondition contentContains(String text)
          Returns true if the comment content contains the specific content
 Editor edit()
          Edit the comment.
 String getCommentId()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<String> getContent()
           
 LikeSection getLikeSection()
           
 CommentsSection.QuickEdit quickEdit()
          Edit the comment without reloading page
 CommentsSection.NewReply reply()
           
 CommentsSection.NewReply replyWithFallback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageBinder

@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder
Constructor Detail

CommentsSection.Comment

public CommentsSection.Comment(com.atlassian.pageobjects.elements.PageElement commentElement)
Method Detail

getCommentId

public String getCommentId()

contentContains

public com.atlassian.pageobjects.elements.query.TimedCondition contentContains(String text)
Returns true if the comment content contains the specific content

Since:
5.6

getContent

public com.atlassian.pageobjects.elements.query.TimedQuery<String> getContent()

clickReply

public EditorContent clickReply()
Deprecated. since 5.5, use reply(), which returns an CommentsSection.NewComment instead.

Returns:
an EditorContent, which is not really what you want.
Since:
5.5

clickReplyWithoutWaitForBind

public void clickReplyWithoutWaitForBind()
Simply click the reply button and do not wait for a page object to be binded to the new editor. This should be used in cases when testing for the modal dialog which is displayed when leaving an unsaved reply.

Since:
5.6

reply

public CommentsSection.NewReply reply()
Returns:
an CommentsSection.NewReply
Since:
5.5

replyWithFallback

public CommentsSection.NewReply replyWithFallback()
Returns:
an CommentsSection.NewReply
Since:
5.5

clickEdit

@Deprecated
public EditorContent clickEdit()
Deprecated. since 5.5, use edit(), which returns an Editor instead.

Returns:
an EditorContent, which is not really what you want.
Since:
5.5

clickEditWithoutWaitForBind

public void clickEditWithoutWaitForBind()

edit

public Editor edit()
Edit the comment. clickEdit() is better named but doesn't return an Editor. edit() can be renamed eventually.

Returns:
an Editor, with save button etc.

quickEdit

public CommentsSection.QuickEdit quickEdit()
Edit the comment without reloading page

Returns:
CommentsSection.QuickEdit
Since:
5.6

getLikeSection

public LikeSection getLikeSection()


Copyright © 2003–2015 Atlassian. All rights reserved.