com.atlassian.jira.webtest.framework.impl.selenium.dialog.issueaction
Class AbstractIssueActionDialog<T extends IssueActionDialog<T>>

java.lang.Object
  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:
SeleniumLinkIssueDialog

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

Abstract Selenium implementation of IssueActionDialog.

Since:
v4.3

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
isReady
 
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
context
 
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
action
 
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
locator
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Field Detail

opener

protected final IssueActionDialogOpener opener

parent

protected final IssueActionsParent parent
Constructor Detail

AbstractIssueActionDialog

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.

Parameters:
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

isOpenableInContext

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>>
Returns:
timed condition 'is openable in the current context?'

issueData

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

Specified by:
issueData in interface IssueAware
Returns:
issue data

open

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>>
Returns:
timed query for this component's instance


Copyright © 2002-2013 Atlassian. All Rights Reserved.