public class

JiraWebSudoPage

extends AbstractJiraPage
implements JiraWebSudo WebSudoPage
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.pages.AbstractJiraPage
     ↳ com.atlassian.jira.pageobjects.websudo.JiraWebSudoPage

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
Public Constructors
JiraWebSudoPage()
JiraWebSudoPage(String destination)
Public Methods
<T> T authenticate(String password, Class<T> targetPage, Object... args)
Submit the password for websudo and bind the passed page.
<T> T authenticate(Class<T> targetPage)
void authenticate(String password)
Submit a password.
JiraWebSudoPage authenticateFail(String password)
Submit the wrong password for 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.
void cancel()
Cancel websudo.
<T extends Page> T confirm(Class<T> targetPage)
<T extends Page> T confirm(String password, Class<T> targetPage)
String getUrl()
TimedCondition isAt()
Timed condition checking if we're at given page.
[Expand]
Inherited Methods
From class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
From class java.lang.Object
From interface com.atlassian.jira.pageobjects.websudo.JiraWebSudo
From interface com.atlassian.pageobjects.Page
From interface com.atlassian.pageobjects.page.WebSudoPage

Public Constructors

public JiraWebSudoPage ()

public JiraWebSudoPage (String destination)

Public Methods

public T authenticate (String password, Class<T> targetPage, Object... args)

Submit the password for websudo and bind the passed page.

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.

public T authenticate (Class<T> targetPage)

public void authenticate (String password)

Submit a password.

Parameters
password the password to submit.

public JiraWebSudoPage authenticateFail (String password)

Submit the wrong password for websudo.

Parameters
password the password to submit.
Returns
  • this websudo form.

public 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.

Parameters
expectedPage The expected page to navigate to after cancelling.
args optional arguments to be passed to PageBinder#bind(Class, Object...)
Returns
  • The page object that is expected to navigate to after cancelling.

public void cancel ()

Cancel websudo.

public T confirm (Class<T> targetPage)

public T confirm (String password, Class<T> targetPage)

public String getUrl ()

public TimedCondition isAt ()

Timed condition checking if we're at given page.

Returns
  • timed condition checking, if the test is at given page