com.atlassian.jira.webtest.selenium.framework.dialogs
Class AbstractSubmittableDialog<T extends AbstractSubmittableDialog<T>>

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>
All Implemented Interfaces:
Cancelable<SubmittableDialog>, LocalizablePageObject, PageObject, Submittable<SubmittableDialog>, Dialog, SubmittableDialog
Direct Known Subclasses:
AbstractIssueDialog, DeleteIssueLinkDialog, QuickCreateIssue, QuickCreateSubtask

public abstract class AbstractSubmittableDialog<T extends AbstractSubmittableDialog<T>>
extends AbstractDialog<T>
implements SubmittableDialog

Abstract implementation of SubmittableDialog in terms of abstract locators of the cancel and submit button.

Since:
v4.2

Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
assertThat, client, context
 
Constructor Summary
protected AbstractSubmittableDialog(Class<T> targetType, ActionType afterSubmit, SeleniumContext ctx)
           
 
Method Summary
 ActionType afterSubmit()
          Type of action happening after submitting this page object.
 T cancel(CancelType cancelType)
          Cancel this element.
 T closeByEscape()
           
 SubmittableDialog submit(SubmitType st)
          Submit this page object and wait for the after submit action.
 SubmittableDialog submit(SubmitType st, boolean waitForAction)
          Submit this page object.
 
Methods inherited from class com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractDialog
assertReady, asTargetType, dialogContentsReadyLocator, inDialog, isClosed, isOpen, locator, visibleDialogContentsLocator
 
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.SubmittableDialog
cancelTriggerLocator, submitTriggerLocator
 
Methods inherited from interface com.atlassian.jira.webtest.selenium.framework.dialogs.Dialog
inDialog, isClosed, isOpen, isOpenable, open
 
Methods inherited from interface com.atlassian.jira.webtest.selenium.framework.core.LocalizablePageObject
locator
 
Methods inherited from interface com.atlassian.jira.webtest.selenium.framework.core.PageObject
assertReady
 

Constructor Detail

AbstractSubmittableDialog

protected AbstractSubmittableDialog(Class<T> targetType,
                                    ActionType afterSubmit,
                                    SeleniumContext ctx)
Method Detail

cancel

public final T cancel(CancelType cancelType)
Description copied from interface: Cancelable
Cancel this element.

Specified by:
cancel in interface Cancelable<SubmittableDialog>
Parameters:
cancelType - type of cancel action to perform
Returns:
this page object

closeByEscape

public final T closeByEscape()

submit

public final SubmittableDialog submit(SubmitType st)
Description copied from interface: Submittable
Submit this page object and wait for the after submit action. Equivalent to invoking #submit(true).

Specified by:
submit in interface Submittable<SubmittableDialog>
Parameters:
st - type of submit action to perform
Returns:
this page object

submit

public final SubmittableDialog submit(SubmitType st,
                                      boolean waitForAction)
Description copied from interface: Submittable
Submit this page object.

Specified by:
submit in interface Submittable<SubmittableDialog>
Parameters:
st - type of submit action to perform
waitForAction - if true, the method will perform wait for this object's after submit action to happen
Returns:
this page object
See Also:
Submittable.afterSubmit()

afterSubmit

public final ActionType afterSubmit()
Description copied from interface: Submittable
Type of action happening after submitting this page object.

Specified by:
afterSubmit in interface Submittable<SubmittableDialog>
Returns:
action type
See Also:
ActionType


Copyright © 2002-2012 Atlassian. All Rights Reserved.