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.PageBinder
pageBinder
-
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 EditorContent
clickEdit()
void
clickEditWithoutWaitForBind()
EditorContent
clickReply()
Deprecated.since 5.5, usereply()
, which returns anCommentsSection.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 contentEditor
edit()
Edit the comment.String
getCommentId()
com.atlassian.pageobjects.elements.query.TimedQuery<String>
getContent()
CommentsSection.QuickEdit
quickEdit()
Edit the comment without reloading pageCommentsSection.NewReply
reply()
CommentsSection.NewReply
replyWithFallback()
-
-
-
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.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()
- 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
-
-