com.atlassian.confluence.pageobjects.page.content
Class CommentsSection

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.page.content.CommentsSection

public class CommentsSection
extends java.lang.Object

Represents the Comments Area at the bottom of a Confluence Page or Blog Post view.

See Also:
ViewPage

Nested Class Summary
static class CommentsSection.Comment
          Represents a comment in view mode
static class CommentsSection.EditComment
          Comment in edit mode
static class CommentsSection.NewComment
          Represents the editor for a new comment
static class CommentsSection.NewReply
          Represents the editor for a new reply
static class CommentsSection.QuickEdit
          Represent the editor for editing an existing comment
static class CommentsSection.UserLogo
          Represent user profile in a quick comment
 
Field Summary
protected  org.openqa.selenium.WebDriver driver
           
protected  com.atlassian.pageobjects.PageBinder pageBinder
           
 
Constructor Summary
CommentsSection()
           
 
Method Summary
 CommentsSection.NewComment add()
           
 CommentsSection.NewComment addUsingShortcut()
           
 CommentsSection.NewComment addUsingShortcut(java.lang.String extraKeys)
          Trigger the comment dialog using the keyboard shortcut and immediately type more keys.
 CommentsSection.NewComment addWithFallback()
           
 CommentsSection.Comment get(int index)
           
 java.lang.String getTextContent()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isTopLevelCommentAreaVisible()
           
 com.atlassian.pageobjects.elements.query.TimedCondition isVisible()
           
 int size()
          Deprecated. since 5.5, use timedSize(), which returns an TimedQuery instead.
 com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Integer> timedSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageBinder

@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder

driver

@Inject
protected org.openqa.selenium.WebDriver driver
Constructor Detail

CommentsSection

public CommentsSection()
Method Detail

isVisible

public com.atlassian.pageobjects.elements.query.TimedCondition isVisible()

isTopLevelCommentAreaVisible

public com.atlassian.pageobjects.elements.query.TimedCondition isTopLevelCommentAreaVisible()

size

@Deprecated
public int size()
Deprecated. since 5.5, use timedSize(), which returns an TimedQuery instead.

Returns:
an int, that represents how many comments currently exists. However that could be a wrong value if all comments are not currently loaded at the moment of the query.
Since:
5.5

timedSize

public com.atlassian.pageobjects.elements.query.TimedQuery<java.lang.Integer> timedSize()
Returns:
a TimedQuery, that represents how many comments currently exists.

get

public CommentsSection.Comment get(int index)

add

public CommentsSection.NewComment add()

addUsingShortcut

public CommentsSection.NewComment addUsingShortcut()

addUsingShortcut

public CommentsSection.NewComment addUsingShortcut(java.lang.String extraKeys)
Trigger the comment dialog using the keyboard shortcut and immediately type more keys. The additional keys will be replayed into the comment.


addWithFallback

public CommentsSection.NewComment addWithFallback()

getTextContent

public java.lang.String getTextContent()


Copyright © 2003-2014 Atlassian. All Rights Reserved.