Class AbstractIssueActionDialog<T extends IssueActionDialog<T>>

  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
          extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
              extended by com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumDialog<T>
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiDialog<T>
                      extended by com.atlassian.jira.webtest.framework.impl.selenium.dialog.issueaction.AbstractIssueActionDialog<T>
All Implemented Interfaces:
Localizable, Openable<T>, PageObject, Dialog<T>, IssueActionDialog<T>, IssueAware
Direct Known Subclasses:

public abstract class AbstractIssueActionDialog<T extends IssueActionDialog<T>>
extends AbstractSeleniumAuiDialog<T>
implements IssueActionDialog<T>

Abstract Selenium implementation of IssueActionDialog.


Field Summary
protected  IssueActionDialogOpener opener
protected  IssueActionsParent parent
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
Constructor Summary
protected AbstractIssueActionDialog(IssueActionsParent parent, SeleniumContext context, String dialogId, IssueActionDialogOpener opener, Class<T> targetType)
          Subclasses must provide unique ID for given dialog type.
Method Summary
protected  TimedCondition isOpenableInContext()
          Timed condition checking if this dialog is openable in the current test context
 IssueData issueData()
          Issue data of the associated issue.
 T open()
           Open this component and return this instance.
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumAuiDialog
cancelLinkLocator, getOpenDialogClass, openDialogLocator
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumDialog
detector, isClosed, isOpen, isOpenable, locator
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
body, conditions, css, forClass, id, jQuery, locatorFor, name, queries, waitFor, xpath
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
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.framework.dialog.issueaction.IssueActionDialog
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Openable
isClosed, isOpen, isOpenable
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady

Field Detail


protected final IssueActionDialogOpener opener


protected final IssueActionsParent parent
Constructor Detail


protected AbstractIssueActionDialog(IssueActionsParent parent,
                                    SeleniumContext context,
                                    String dialogId,
                                    IssueActionDialogOpener opener,
                                    Class<T> targetType)
Subclasses must provide unique ID for given dialog type. This id is used as an identifier of the div element serving as a container of the dialog.

parent - parent object of this dialog
context - current selenium test context
dialogId - unique HTML id of the dialog container div
opener - dialog opener
targetType - target dialog type
Method Detail


protected TimedCondition isOpenableInContext()
Description copied from class: AbstractSeleniumDialog
Timed condition checking if this dialog is openable in the current test context

Specified by:
isOpenableInContext in class AbstractSeleniumDialog<T extends IssueActionDialog<T>>
timed condition 'is openable in the current context?'


public IssueData issueData()
Description copied from interface: IssueAware
Issue data of the associated issue.

Specified by:
issueData in interface IssueAware
issue data


public final T open()
Description copied from interface: Openable

Open this component and return this instance.

A pre-condition for this action is that the Openable.isClosed() and Openable.isOpenable() condition is met.

NOTE: this method, like most action methods in the framework, does not verify its results (as opposed to pre-conditions), as in some cases it might be legitimate to attempt to open a component given the test context state deliberately set up to make this attempt fail and then verify that the failure did happen. Thus, invoking clients are responsible for validation results of this action, which may be done by calling Openable.isOpen().

Specified by:
open in interface Openable<T extends IssueActionDialog<T>>
timed query for this component's instance

Copyright © 2002-2013 Atlassian. All Rights Reserved.