public class JiraWebSudoPage extends AbstractJiraPage implements JiraWebSudo, com.atlassian.pageobjects.page.WebSudoPage
body, driver, elementFinder, javascriptExecutor, metaElement, timeouts, webDriverPoller
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, isLoggedIn
public JiraWebSudoPage()
public JiraWebSudoPage(String destination)
public com.atlassian.pageobjects.elements.query.TimedCondition isAt()
AbstractJiraPage
isAt
in class AbstractJiraPage
public String getUrl()
getUrl
in interface com.atlassian.pageobjects.Page
public <T extends com.atlassian.pageobjects.Page> T confirm(Class<T> targetPage)
confirm
in interface com.atlassian.pageobjects.page.WebSudoPage
public <T extends com.atlassian.pageobjects.Page> T confirm(String password, Class<T> targetPage)
confirm
in interface com.atlassian.pageobjects.page.WebSudoPage
public <T> T authenticate(Class<T> targetPage)
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 JiraWebSudoPage authenticateFail(String password)
JiraWebSudo
authenticateFail
in interface JiraWebSudo
password
- the password to submit.public <T> T cancel(Class<T> expectedPage, Object... args)
cancel
in interface JiraWebSudo
T
- 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()
JiraWebSudo
cancel
in interface JiraWebSudo
Copyright © 2002-2024 Atlassian. All Rights Reserved.