com.atlassian.jira.webtest.framework.component
Interface CommentInput

All Superinterfaces:
Input, Localizable, PageObject, ValueHolder
All Known Implementing Classes:
SeleniumCommentInput

public interface CommentInput
extends Input

Represents the comment input component in the JIRA UI. The comment control consists mainly of the text area input, but also has additional switches to control comment visibility and to switch to wiki preview (if wiki markup is enabled for comments).

Since:
v4.3

Nested Class Summary
static interface CommentInput.CommentVisibilityDropdown
           
 
Method Summary
 TimedCondition hasWikiRendering()
          Check if this comment input has wiki rendering.
 TimedCondition isEditMode()
          Check if this comment input is in edit-mode.
 TimedCondition isPreviewMode()
          Check if this comment input is in preview-mode.
 CommentInput toggleMode()
          Switch mode of this comment input.
 CommentInput.CommentVisibilityDropdown visibilityDropdown()
          Return the visibility drop-down of this comment input
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.component.Input
type
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.component.ValueHolder
value
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable
locator
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Method Detail

visibilityDropdown

CommentInput.CommentVisibilityDropdown visibilityDropdown()
Return the visibility drop-down of this comment input

Returns:
visibility selection dropdown

isEditMode

TimedCondition isEditMode()
Check if this comment input is in edit-mode. If the wiki-rendering is disabled for this comment, this method will always return true condition.

Returns:
timed condition verifying if this comment input is in edit-mode

isPreviewMode

TimedCondition isPreviewMode()
Check if this comment input is in preview-mode. If wiki-rendering is disabled for this comment, this method will always return false condition.

Returns:
timed condition verifying if this comment input is in preview mode
See Also:
hasWikiRendering()

hasWikiRendering

TimedCondition hasWikiRendering()
Check if this comment input has wiki rendering.

Returns:
timed condition verifying, if wiki rendering is enabled for this comment input

toggleMode

CommentInput toggleMode()
Switch mode of this comment input. Results of this operation may be queried via isEditMode() and isPreviewMode(). Wiki rendering must be enabled for this operation to succeed,

Returns:
this comment input
Throws:
IllegalStateException - if wiki rendering is disabled for this comment input


Copyright © 2002-2013 Atlassian. All Rights Reserved.