|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.pageobjects.pages.AbstractJiraPage com.atlassian.jira.pageobjects.websudo.JiraWebSudoPage
public class JiraWebSudoPage
Field Summary |
---|
Fields inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage |
---|
body, driver, elementFinder, footerElement, metaElement, timeouts |
Constructor Summary | |
---|---|
JiraWebSudoPage()
|
|
JiraWebSudoPage(String destination)
|
Method Summary | ||
---|---|---|
|
authenticate(Class<T> targetPage)
|
|
void |
authenticate(String password)
Submit a password. |
|
|
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. |
|
|
cancel(Class<T> expectedPage,
Object... args)
This handles cancelling the web sudo authentication and binding to the expected page that cancel should navigate to. |
|
|
confirm(Class<T> targetPage)
|
|
|
confirm(String password,
Class<T> targetPage)
|
|
String |
getUrl()
|
|
com.atlassian.pageobjects.elements.query.TimedCondition |
isAt()
Timed condition checking if we're at given page. |
Methods inherited from class com.atlassian.jira.pageobjects.pages.AbstractJiraPage |
---|
back, createXsrfUrl, doWait, execKeyboardShortcut, getHeader, getPageTitle, getXsrfToken, isAdmin, isLoggedIn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JiraWebSudoPage()
public JiraWebSudoPage(String destination)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |