com.atlassian.jira.webtest.selenium.framework.dialogs
Class AddCommentDialog

java.lang.Object
  extended by com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
      extended by com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractDialog<T>
          extended by com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractSubmittableDialog<T>
              extended by com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractIssueDialog<AddCommentDialog>
                  extended by com.atlassian.jira.webtest.selenium.framework.dialogs.AddCommentDialog
All Implemented Interfaces:
Cancelable<SubmittableDialog>, LocalizablePageObject, PageObject, Submittable<SubmittableDialog>, Dialog, IssueActionDialog, SubmittableDialog

public final class AddCommentDialog
extends AbstractIssueDialog<AddCommentDialog>

Test utility representing the Dot Dialog.

Since:
v4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractIssueDialog
actionsDialog, DIALOG_CONTENT_READY_SELECTOR, issueNavigator, viewIssue, VISIBLE_DIALOG_CONTENT_SELECTOR
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
assertThat, client, context
 
Constructor Summary
AddCommentDialog(SeleniumContext ctx)
           
 
Method Summary
 void assertIsInputMode()
           
 void assertIsPreviewMode()
           
 String commentBoxLocator()
           
protected  String dialogContentsReadyLocator()
           Subclasses may override this method to provide dialog-specific contents locator, whose presence will indicate that the dialog contents have been loaded and the dialog is generally ready to use.
 void insertComment(String text)
           
 boolean isInputMode()
           
 boolean isPreviewMode()
           
 AddCommentDialog openFromViewIssue()
          Open the dialog from View Issue.
 void togglePreview()
           
 
Methods inherited from class com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractIssueDialog
actionName, assertNotOpen, assertReady, cancelTriggerLocator, isOpenable, issueOperation, open, openFromIssueNav, submit, submitTriggerLocator, visibleDialogContentsLocator
 
Methods inherited from class com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractSubmittableDialog
afterSubmit, cancel, closeByEscape, submit, submit
 
Methods inherited from class com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractDialog
assertReady, asTargetType, inDialog, isClosed, isOpen, locator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.webtest.selenium.framework.dialogs.Dialog
inDialog, isClosed, isOpen
 
Methods inherited from interface com.atlassian.jira.webtest.selenium.framework.core.PageObject
assertReady
 
Methods inherited from interface com.atlassian.jira.webtest.selenium.framework.core.LocalizablePageObject
locator
 

Constructor Detail

AddCommentDialog

public AddCommentDialog(SeleniumContext ctx)
Method Detail

commentBoxLocator

public String commentBoxLocator()

dialogContentsReadyLocator

protected String dialogContentsReadyLocator()
Description copied from class: AbstractDialog

Subclasses may override this method to provide dialog-specific contents locator, whose presence will indicate that the dialog contents have been loaded and the dialog is generally ready to use.

If the locator has not prefix, it must be relative to the dialog contents locator, as it will be appended to the main dialog locator. Locators containing prefix will be used as the stand.

Overrides:
dialogContentsReadyLocator in class AbstractDialog<AddCommentDialog>
Returns:
dialog-specific locator of a characteristic element of dialog contents.

isInputMode

public boolean isInputMode()

isPreviewMode

public boolean isPreviewMode()

openFromViewIssue

public AddCommentDialog openFromViewIssue()
Description copied from interface: IssueActionDialog
Open the dialog from View Issue.

Specified by:
openFromViewIssue in interface IssueActionDialog
Overrides:
openFromViewIssue in class AbstractIssueDialog<AddCommentDialog>
Returns:
this dialog instance

insertComment

public void insertComment(String text)

togglePreview

public void togglePreview()

assertIsInputMode

public void assertIsInputMode()

assertIsPreviewMode

public void assertIsPreviewMode()


Copyright © 2002-2013 Atlassian. All Rights Reserved.