Class CommentsSection.Comment
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected com.atlassian.pageobjects.PageBinderpageBinder
-
Constructor Summary
Constructors Constructor Description Comment(com.atlassian.pageobjects.elements.PageElement commentElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description EditorContentclickEdit()voidclickEditWithoutWaitForBind()EditorContentclickReply()Deprecated.since 5.5, usereply(), which returns anCommentsSection.NewCommentinstead.voidclickReplyWithoutWaitForBind()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.TimedConditioncontentContains(String text)Returns true if the comment content contains the specific contentEditoredit()Edit the comment.StringgetCommentId()com.atlassian.pageobjects.elements.query.TimedQuery<String>getContent()CommentsSection.QuickEditquickEdit()Edit the comment without reloading pageCommentsSection.NewReplyreply()CommentsSection.NewReplyreplyWithFallback()
-
-
-
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, usereply(), which returns anCommentsSection.NewCommentinstead.- 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()
- 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 anEditor.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
-
-