com.atlassian.jira.pageobjects.pages.viewissue
Class AddCommentSection

java.lang.Object
  extended by com.atlassian.jira.pageobjects.pages.viewissue.AddCommentSection

public class AddCommentSection
extends Object

Represents add comment section on view issue page.

Since:
v5.0

Field Summary
protected  com.atlassian.pageobjects.elements.PageElement add
           
protected  com.atlassian.pageobjects.elements.PageElement cancel
           
protected  com.atlassian.pageobjects.elements.PageElement comment
           
protected  com.atlassian.pageobjects.elements.PageElement commentForm
           
protected  com.atlassian.pageobjects.PageBinder pageBinder
           
protected  com.atlassian.pageobjects.elements.PageElement previewLink
           
protected  com.atlassian.webdriver.AtlassianWebDriver webDriver
           
 
Constructor Summary
AddCommentSection(ViewIssuePage parent)
           
 
Method Summary
 ViewIssuePage addAndWait()
          Adds and waits for issue to refresh
 String addWithErrors()
           
 ViewIssuePage cancel()
           
 AddCommentSection closeErrors()
          Comment errors get displayed on the dialog.
 String getComment()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<String> getCommentTimed()
           
 com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isInPreviewMode()
           
 MentionsUserPicker mentions()
           
 AddCommentSection previewMode()
           
 AddCommentSection selectMention(String userId)
           
 AddCommentSection typeComment(CharSequence... text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webDriver

@Inject
protected com.atlassian.webdriver.AtlassianWebDriver webDriver

pageBinder

@Inject
protected com.atlassian.pageobjects.PageBinder pageBinder

comment

protected com.atlassian.pageobjects.elements.PageElement comment

commentForm

protected com.atlassian.pageobjects.elements.PageElement commentForm

add

protected com.atlassian.pageobjects.elements.PageElement add

cancel

protected com.atlassian.pageobjects.elements.PageElement cancel

previewLink

protected com.atlassian.pageobjects.elements.PageElement previewLink
Constructor Detail

AddCommentSection

public AddCommentSection(ViewIssuePage parent)
Method Detail

typeComment

public AddCommentSection typeComment(CharSequence... text)

getComment

public String getComment()

getCommentTimed

public com.atlassian.pageobjects.elements.query.TimedQuery<String> getCommentTimed()

mentions

public MentionsUserPicker mentions()

selectMention

public AddCommentSection selectMention(String userId)

addAndWait

public ViewIssuePage addAndWait()
Adds and waits for issue to refresh


addWithErrors

public String addWithErrors()

closeErrors

public AddCommentSection closeErrors()
Comment errors get displayed on the dialog. After receiving an error use this method to make sure the dialog gets closed.

Returns:
this comment section

cancel

public ViewIssuePage cancel()

isInPreviewMode

public com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> isInPreviewMode()

previewMode

public AddCommentSection previewMode()


Copyright © 2002-2014 Atlassian. All Rights Reserved.