org.xwiki.test.ui.po
Class CommentsTab

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.test.ui.po.BasePage
          extended by org.xwiki.test.ui.po.ViewPage
              extended by org.xwiki.test.ui.po.CommentsTab

public class CommentsTab
extends ViewPage

Page Object for Comments Tab.

Since:
3.2M3
Version:
$Id: bef95d71dfab9da9063a64b06b9c7956098bf6c3 $

Constructor Summary
CommentsTab()
           
 
Method Summary
 void deleteCommentByID(int id)
           
 CommentForm editCommentByID(int id)
          Clicks on the edit icon near the specified comment.
 void editCommentByID(int id, String content)
           
 CommentForm getAddCommentForm()
           
 String getCommentAuthorByID(int id)
           
 String getCommentContentByID(int id)
           
 int getCommentID(String content)
           
 String getCurrentAuthor()
           
 boolean hasEditButtonForCommentByID(int commentId)
           
 boolean isCommentFormShown()
           
 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)
           
 void setAnonymousCommentAuthor(String author)
           
 
Methods inherited from class org.xwiki.test.ui.po.ViewPage
clickBreadcrumbLink, clickWantedLink, editSection, exists, getBreadcrumbContent, getContent, hasBreadcrumbContent, isInlinePage, openAttachmentsDocExtraPane, openCommentsDocExtraPane, openHistoryDocExtraPane, waitForDocExtraPaneActive, waitUntilContent
 
Methods inherited from class org.xwiki.test.ui.po.BasePage
canDelete, clickContentMenuEditSubMenuEntry, clickContentMenuTopEntry, copy, createInlinePage, createPage, createSpace, delete, edit, editClass, editInline, editObjects, editRights, editWiki, editWYSIWYG, getCurrentUser, getDocumentTitle, getEditURL, getMetaDataValue, getPageMenuLink, getPageTitle, getPageURL, hasLoginLink, isAuthenticated, isNewDocument, login, logout, register, sendKeys, waitUntilPageIsLoaded, watchDocument, watchSpace
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentsTab

public CommentsTab()
Method Detail

getCurrentAuthor

public String getCurrentAuthor()

isCommentFormShown

public boolean isCommentFormShown()

setAnonymousCommentAuthor

public void setAnonymousCommentAuthor(String author)

getCommentID

public int getCommentID(String content)

getAddCommentForm

public CommentForm getAddCommentForm()
Returns:
the form used to add a new comment

postComment

public int postComment(String content,
                       boolean wait)

postCommentAsGuest

public int postCommentAsGuest(String content,
                              String author,
                              boolean wait)

deleteCommentByID

public void deleteCommentByID(int id)

replyToCommentByID

public CommentForm replyToCommentByID(int id)
Clicks on the reply icon near the specified comment.

Parameters:
id - identifies the comment to reply to
Returns:
the form used to reply

replyToCommentByID

public void replyToCommentByID(int id,
                               String replyContent)

editCommentByID

public CommentForm editCommentByID(int id)
Clicks on the edit icon near the specified comment.

Parameters:
id - identifies the comment to be edited
Returns:
the form used to edit the comment

editCommentByID

public void editCommentByID(int id,
                            String content)

getCommentAuthorByID

public String getCommentAuthorByID(int id)

getCommentContentByID

public String getCommentContentByID(int id)

hasEditButtonForCommentByID

public boolean hasEditButtonForCommentByID(int commentId)
Since:
3.2M3


Copyright © 2004-2013 XWiki. All Rights Reserved.