|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractDialog<T> com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractSubmittableDialog<T> com.atlassian.jira.webtest.selenium.framework.dialogs.AbstractIssueDialog<T>
public abstract class AbstractIssueDialog<T extends AbstractIssueDialog<T>>
Base class for utility classes representing JIRA issue action dialogs.
Field Summary | |
---|---|
protected ActionsDialog |
actionsDialog
|
protected static String |
DIALOG_CONTENT_READY_SELECTOR
|
protected IssueNavigator |
issueNavigator
|
protected ViewIssue |
viewIssue
|
protected static String |
VISIBLE_DIALOG_CONTENT_SELECTOR
|
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject |
---|
assertThat, client, context |
Constructor Summary | |
---|---|
AbstractIssueDialog(LegacyIssueOperation issueOperation,
Class<T> targetType,
ActionType afterSubmit,
SeleniumContext ctx)
|
Method Summary | |
---|---|
String |
actionName()
Gets name of the dialog in the Actions Dialog list. |
void |
assertNotOpen()
Assert that no dialog is currently open on the page. |
void |
assertReady()
|
String |
cancelTriggerLocator()
Cancel button locator within the dialog. |
boolean |
isOpenable()
Test if the dialog can be opened at the current location. |
LegacyIssueOperation |
issueOperation()
Returns issue operation associated with this particular dialog. |
Dialog |
open()
Open this dialog if possible. |
T |
openFromIssueNav(int issueId)
Open the dialog from the Issue Navigator for given issueId. |
T |
openFromViewIssue()
Open the dialog from View Issue. |
T |
submit()
Submit AUI dialog using its default submit button. |
String |
submitTriggerLocator()
Submit button locator within the dialog. |
protected String |
visibleDialogContentsLocator()
jQuery locator of the main dialog component (when visible). |
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, dialogContentsReadyLocator, 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 |
Field Detail |
---|
protected static final String VISIBLE_DIALOG_CONTENT_SELECTOR
protected static final String DIALOG_CONTENT_READY_SELECTOR
protected final IssueNavigator issueNavigator
protected final ViewIssue viewIssue
protected final ActionsDialog actionsDialog
Constructor Detail |
---|
public AbstractIssueDialog(LegacyIssueOperation issueOperation, Class<T> targetType, ActionType afterSubmit, SeleniumContext ctx)
Method Detail |
---|
public String submitTriggerLocator()
SubmittableDialog
submitTriggerLocator
in interface SubmittableDialog
public String cancelTriggerLocator()
SubmittableDialog
cancelTriggerLocator
in interface SubmittableDialog
protected String visibleDialogContentsLocator()
AbstractDialog
visibleDialogContentsLocator
in class AbstractDialog<T extends AbstractIssueDialog<T>>
public final LegacyIssueOperation issueOperation()
IssueActionDialog
issueOperation
in interface IssueActionDialog
public final String actionName()
IssueActionDialog
actionName
in interface IssueActionDialog
public final boolean isOpenable()
Dialog
isOpenable
in interface Dialog
true
, if opening of the dialog is currently possiblepublic final void assertReady()
public final void assertNotOpen()
public T openFromViewIssue()
IssueActionDialog
openFromViewIssue
in interface IssueActionDialog
public T openFromIssueNav(int issueId)
IssueActionDialog
openFromIssueNav
in interface IssueActionDialog
issueId
- issue ID
public final T submit()
public final Dialog open()
open
in interface Dialog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |