Class JiraSudoFormDialog
java.lang.Object
com.atlassian.jira.pageobjects.dialogs.JiraDialog
com.atlassian.jira.pageobjects.dialogs.FormDialog
com.atlassian.jira.pageobjects.websudo.JiraSudoFormDialog
- All Implemented Interfaces:
JiraWebSudo
- Since:
- v5.0.1
-
Field Summary
FieldsFields inherited from class com.atlassian.jira.pageobjects.dialogs.FormDialog
auiBlanket, form, FORM_SUBMITTING_CLASS, header, loading, messages
Fields inherited from class com.atlassian.jira.pageobjects.dialogs.JiraDialog
binder, CONTENT_AREA_CLASS, CONTENT_READY_CLASS, DIALOG_CLASS, DIALOG_OPEN_CLASS, driver, extendedFinder, HEADING_AREA_CLASS, id, javascriptExecutor, locator, queryFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.authenticateFail
(String password) Submit the wrong password for websudo.void
cancel()
Cancel websudo.<T> T
Cancel websudo and bind the passed page.void
init()
void
Methods inherited from class com.atlassian.jira.pageobjects.dialogs.FormDialog
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
Methods inherited from class com.atlassian.jira.pageobjects.dialogs.JiraDialog
find, find, findAll, findAll, getDialogElement, isClosed, isInDOM, isOpen, waitUntilFinishedLoading
-
Field Details
-
ID_SMART_WEBSUDO
- See Also:
-
-
Constructor Details
-
JiraSudoFormDialog
public JiraSudoFormDialog() -
JiraSudoFormDialog
-
-
Method Details
-
init
public void init() -
waitForBind
public void waitForBind() -
authenticate
Description copied from interface:JiraWebSudo
Submit the password for websudo and bind the passed page.- Specified by:
authenticate
in interfaceJiraWebSudo
- 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.
-
authenticate
Description copied from interface:JiraWebSudo
Submit a password.- Specified by:
authenticate
in interfaceJiraWebSudo
- Parameters:
password
- the password to submit.
-
authenticateFail
Description copied from interface:JiraWebSudo
Submit the wrong password for websudo.- Specified by:
authenticateFail
in interfaceJiraWebSudo
- Parameters:
password
- the password to submit.- Returns:
- this websudo form.
-
cancel
Description copied from interface:JiraWebSudo
Cancel websudo and bind the passed page.- Specified by:
cancel
in interfaceJiraWebSudo
- 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.
-
cancel
public void cancel()Description copied from interface:JiraWebSudo
Cancel websudo.- Specified by:
cancel
in interfaceJiraWebSudo
-