public class JiraWebSudoPage extends AbstractJiraPage implements JiraWebSudo, com.atlassian.pageobjects.page.WebSudoPage
body, driver, elementFinder, metaElement, timeouts| Constructor and Description |
|---|
JiraWebSudoPage() |
JiraWebSudoPage(String destination) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
authenticate(Class<T> targetPage) |
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.
|
JiraWebSudoPage |
authenticateFail(String password)
Submit the wrong password for websudo.
|
void |
cancel()
Cancel websudo.
|
<T> T |
cancel(Class<T> expectedPage,
Object... args)
This handles cancelling the web sudo authentication and binding to the expected page
that cancel should navigate to.
|
<T extends com.atlassian.pageobjects.Page> |
confirm(Class<T> targetPage) |
<T extends com.atlassian.pageobjects.Page> |
confirm(String password,
Class<T> targetPage) |
String |
getUrl() |
com.atlassian.pageobjects.elements.query.TimedCondition |
isAt()
Timed condition checking if we're at given page.
|
back, doWait, execKeyboardShortcut, getHeader, getPageTitle, getXsrfToken, isAdmin, isLoggedInpublic JiraWebSudoPage()
public JiraWebSudoPage(String destination)
public com.atlassian.pageobjects.elements.query.TimedCondition isAt()
AbstractJiraPageisAt in class AbstractJiraPagepublic String getUrl()
getUrl in interface com.atlassian.pageobjects.Pagepublic <T extends com.atlassian.pageobjects.Page> T confirm(Class<T> targetPage)
confirm in interface com.atlassian.pageobjects.page.WebSudoPagepublic <T extends com.atlassian.pageobjects.Page> T confirm(String password, Class<T> targetPage)
confirm in interface com.atlassian.pageobjects.page.WebSudoPagepublic <T> T authenticate(Class<T> targetPage)
public <T> T authenticate(String password, Class<T> targetPage, Object... args)
JiraWebSudoauthenticate in interface JiraWebSudoT - 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)
JiraWebSudoauthenticate in interface JiraWebSudopassword - the password to submit.public JiraWebSudoPage authenticateFail(String password)
JiraWebSudoauthenticateFail in interface JiraWebSudopassword - the password to submit.public <T> T cancel(Class<T> expectedPage, Object... args)
cancel in interface JiraWebSudoT - The page class type.expectedPage - The expected page to navigate to after cancelling.args - optional arguments to be passed to PageBinder.bind(Class, Object...)public void cancel()
JiraWebSudocancel in interface JiraWebSudoCopyright © 2002-2019 Atlassian. All Rights Reserved.