public class

AddCommentSection

extends Object
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.pages.viewissue.AddCommentSection

Class Overview

Represents add comment section on view issue page.

Summary

Fields
protected PageElement add
protected PageElement cancel
protected PageElement comment
protected PageElement commentForm
protected PageBinder pageBinder
protected PageElement previewLink
protected AtlassianWebDriver webDriver
Public Constructors
AddCommentSection(ViewIssuePage parent)
Public Methods
ViewIssuePage addAndWait()
Adds and waits for issue to refresh
String addWithErrors()
ViewIssuePage cancel()
AddCommentSection closeErrors()
Comment errors get displayed on the dialog.
String getComment()
TimedQuery<String> getCommentTimed()
TimedQuery<Boolean> isInPreviewMode()
MentionsUserPicker mentions()
AddCommentSection previewMode()
AddCommentSection selectMention(String userId)
AddCommentSection typeComment(CharSequence... text)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected PageElement add

protected PageElement cancel

protected PageElement comment

protected PageElement commentForm

protected PageBinder pageBinder

protected PageElement previewLink

protected AtlassianWebDriver webDriver

Public Constructors

public AddCommentSection (ViewIssuePage parent)

Public Methods

public ViewIssuePage addAndWait ()

Adds and waits for issue to refresh

public String addWithErrors ()

public ViewIssuePage cancel ()

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

public String getComment ()

public TimedQuery<String> getCommentTimed ()

public TimedQuery<Boolean> isInPreviewMode ()

public MentionsUserPicker mentions ()

public AddCommentSection previewMode ()

public AddCommentSection selectMention (String userId)

public AddCommentSection typeComment (CharSequence... text)