Class CommentsSection.Comment

  • Enclosing class:
    CommentsSection

    public static class CommentsSection.Comment
    extends Object
    Represents a comment in view mode
    • Field Detail

      • pageBinder

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

      • Comment

        public 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()
      • 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
      • 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.