public class CommentsTab extends BaseElement
Constructor and Description |
---|
CommentsTab() |
Modifier and Type | Method and Description |
---|---|
void |
deleteCommentByID(int id)
Deletes a comment.
|
CommentForm |
editCommentByID(int id)
Clicks on the edit icon near the specified comment.
|
void |
editCommentByID(int id,
String content)
Edits a comment with the specified content.
|
CommentForm |
getAddCommentForm() |
String |
getCommentAuthorByID(int id) |
String |
getCommentContentByID(int id) |
int |
getCommentID(String content) |
String |
getCurrentAuthor() |
boolean |
hasDeleteButtonForCommentByID(int id) |
boolean |
hasEditButtonForCommentByID(int id) |
boolean |
isCommentFormShown() |
boolean |
isOpened() |
void |
openCommentForm()
Opens the comment form by clicking on the comment button.
|
int |
postComment(String content,
boolean wait) |
int |
postCommentAsGuest(String content,
String author,
boolean wait) |
CommentForm |
replyToCommentByID(int id)
Clicks on the reply icon near the specified comment.
|
void |
replyToCommentByID(int id,
String replyContent)
Replies to a comment with the specified content.
|
void |
setAnonymousCommentAuthor(String author) |
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageJSIsLoaded
public boolean isOpened()
public String getCurrentAuthor()
public boolean isCommentFormShown()
public void openCommentForm()
public void setAnonymousCommentAuthor(String author)
public int getCommentID(String content)
public CommentForm getAddCommentForm()
public int postComment(String content, boolean wait)
public void deleteCommentByID(int id)
id
- the comment idpublic CommentForm replyToCommentByID(int id)
id
- identifies the comment to reply topublic void replyToCommentByID(int id, String replyContent)
id
- the comment idreplyContent
- the comment content of the replypublic CommentForm editCommentByID(int id)
id
- identifies the comment to be editedpublic void editCommentByID(int id, String content)
id
- the comment idcontent
- the new comment contentpublic String getCommentAuthorByID(int id)
id
- the comment idpublic String getCommentContentByID(int id)
id
- the comment idpublic boolean hasEditButtonForCommentByID(int id)
id
- the comment idpublic boolean hasDeleteButtonForCommentByID(int id)
id
- the comment idCopyright © 2004–2021 XWiki. All rights reserved.