com.atlassian.jira.pageobjects.websudo
Class JiraSudoFormDialog
java.lang.Object
com.atlassian.jira.pageobjects.dialogs.FormDialog
com.atlassian.jira.pageobjects.websudo.JiraSudoFormDialog
- All Implemented Interfaces:
- JiraWebSudo
public class JiraSudoFormDialog
- extends FormDialog
- implements JiraWebSudo
- Since:
- v5.0.1
Methods inherited from class com.atlassian.jira.pageobjects.dialogs.FormDialog |
assertDialogClosed, assertDialogOpen, close, escape, find, find, getAuiMessage, getDialogElement, getFormErrorList, getFormErrors, getTitle, hasFormErrors, initAbstractDialog, isOpen, isOpenTimed, ready, setElement, submit, submit, submit, waitForFormErrors, waitUntilClosed, waitUntilHidden, waitWhileSubmitting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID_SMART_WEBSUDO
public static final String ID_SMART_WEBSUDO
- See Also:
- Constant Field Values
JiraSudoFormDialog
public JiraSudoFormDialog(String id)
init
public void init()
waitForBind
public void waitForBind()
authenticate
public <T> T authenticate(String password,
Class<T> targetPage,
Object... args)
- Description copied from interface:
JiraWebSudo
- Submit the password for websudo and bind the passed page.
- Specified by:
authenticate
in interface JiraWebSudo
- Type Parameters:
T
- the type of the page to bind.- Parameters:
password
- the password to submit.targetPage
- the page to bind after the submit.args
- arguments for targetPage during the bind.
- Returns:
- a newly bound page after websudo.
authenticateFail
public JiraWebSudo authenticateFail(String password)
- Description copied from interface:
JiraWebSudo
- Submit the wrong password for websudo.
- Specified by:
authenticateFail
in interface JiraWebSudo
- Parameters:
password
- the password to submit.
- Returns:
- this websudo form.
cancel
public <T> T cancel(Class<T> expectedPage,
Object... args)
- Description copied from interface:
JiraWebSudo
- Cancel websudo and bind the passed page.
- Specified by:
cancel
in interface JiraWebSudo
- Type Parameters:
T
- the type of the page to bind.- Parameters:
expectedPage
- the page to bind after the cancel.args
- arguments for targetPage during the bind.
- Returns:
- a newly bound page after cancel.
Copyright © 2002-2012 Atlassian. All Rights Reserved.