public class JiraSudoFormDialog extends FormDialog implements JiraWebSudo
Modifier and Type | Field and Description |
---|---|
static String |
ID_SMART_WEBSUDO |
auiBlanket, form, FORM_SUBMITTING_CLASS, header, loading, messages
binder, CONTENT_AREA_CLASS, CONTENT_READY_CLASS, DIALOG_CLASS, DIALOG_OPEN_CLASS, driver, extendedFinder, HEADING_AREA_CLASS, id, javascriptExecutor, locator, queryFactory
Constructor and Description |
---|
JiraSudoFormDialog() |
JiraSudoFormDialog(String id) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(String password)
Submit a password.
|
<T> T |
authenticate(String password,
Class<T> targetPage,
Object... args)
Submit the password for websudo and bind the passed page.
|
JiraWebSudo |
authenticateFail(String password)
Submit the wrong password for websudo.
|
void |
cancel()
Cancel websudo.
|
<T> T |
cancel(Class<T> expectedPage,
Object... args)
Cancel websudo and bind the passed page.
|
void |
init() |
void |
waitForBind() |
acceptDirtyFormWarning, assertDialogClosed, assertDialogOpen, close, closeNoWait, escape, getAuiMessage, getFields, getFormErrorElements, getFormErrorList, getFormErrors, getTimedTitle, getTitle, hasFormErrors, initAbstractDialog, messages, ready, setElement, setField, submit, submit, submit, waitForFormErrors, waitUntilClosed, waitUntilHidden, waitWhileSubmitting
find, find, findAll, findAll, getDialogElement, isClosed, isInDOM, isOpen, waitUntilFinishedLoading
public static final String ID_SMART_WEBSUDO
public JiraSudoFormDialog()
public JiraSudoFormDialog(String id)
public void init()
public void waitForBind()
public <T> T authenticate(String password, Class<T> targetPage, Object... args)
JiraWebSudo
authenticate
in interface JiraWebSudo
T
- the type of the page to bind.password
- the password to submit.targetPage
- the page to bind after the submit.args
- arguments for targetPage during the bind.public void authenticate(String password)
JiraWebSudo
authenticate
in interface JiraWebSudo
password
- the password to submit.public JiraWebSudo authenticateFail(String password)
JiraWebSudo
authenticateFail
in interface JiraWebSudo
password
- the password to submit.public <T> T cancel(Class<T> expectedPage, Object... args)
JiraWebSudo
cancel
in interface JiraWebSudo
T
- the type of the page to bind.expectedPage
- the page to bind after the cancel.args
- arguments for targetPage during the bind.public void cancel()
JiraWebSudo
cancel
in interface JiraWebSudo
Copyright © 2002-2022 Atlassian. All Rights Reserved.