com.atlassian.jira.pageobjects.pages
Class JiraLoginPage
java.lang.Object
com.atlassian.jira.pageobjects.pages.AbstractJiraPage
com.atlassian.jira.pageobjects.pages.JiraLoginPage
- All Implemented Interfaces:
- com.atlassian.pageobjects.Page, com.atlassian.pageobjects.page.LoginPage
public class JiraLoginPage
- extends AbstractJiraPage
- implements com.atlassian.pageobjects.page.LoginPage
Page object implementation for the LoginPage in JIRA.
- Since:
- 4.4
Method Summary |
com.atlassian.pageobjects.elements.PageElement |
getError()
Get first error in the form. |
Iterable<com.atlassian.pageobjects.elements.PageElement> |
getErrors()
|
com.atlassian.pageobjects.elements.PageElement |
getLoginForm()
|
com.atlassian.pageobjects.elements.PageElement |
getSignUpHint()
|
String |
getUrl()
|
boolean |
hasErrors()
|
com.atlassian.pageobjects.elements.query.TimedCondition |
isAt()
Timed condition checking if we're at given page. |
<M extends com.atlassian.pageobjects.Page>
M |
|
login(String username,
String password,
boolean rememberMe,
boolean followRedirect,
Class<M> nextPage,
Object... args)
|
<M extends com.atlassian.pageobjects.Page>
M |
|
login(String username,
String password,
Class<M> mClass)
|
<M extends com.atlassian.pageobjects.Page>
M |
|
login(String username,
String password,
Class<M> nextPage,
Object... args)
|
<M extends com.atlassian.pageobjects.Page>
M |
|
login(User user,
Class<M> nextPage,
Object... args)
|
<M extends com.atlassian.pageobjects.Page>
M |
|
loginAndFollowRedirect(String username,
String password,
Class<M> redirectPage,
Object... args)
|
DashboardPage |
loginAndGoToHome(String username,
String password)
|
<M extends com.atlassian.pageobjects.Page>
M |
|
loginAsSysAdmin(Class<M> mClass)
|
<M extends com.atlassian.pageobjects.Page>
M |
|
loginAsSysAdmin(Class<M> nextPage,
Object... args)
|
DashboardPage |
loginAsSysadminAndGoToHome()
|
<M extends com.atlassian.pageobjects.Page>
M |
|
loginAsSystemAdminAndFollowRedirect(Class<M> redirectPage,
Object... args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USER_ADMIN
public static final String USER_ADMIN
- See Also:
- Constant Field Values
PASSWORD_ADMIN
public static final String PASSWORD_ADMIN
- See Also:
- Constant Field Values
loginForm
protected com.atlassian.pageobjects.elements.PageElement loginForm
messages
protected Iterable<com.atlassian.pageobjects.elements.PageElement> messages
usernameField
protected com.atlassian.pageobjects.elements.PageElement usernameField
passwordField
protected com.atlassian.pageobjects.elements.PageElement passwordField
rememberMeTickBox
protected com.atlassian.pageobjects.elements.PageElement rememberMeTickBox
loginButton
protected com.atlassian.pageobjects.elements.PageElement loginButton
redirect
protected com.atlassian.pageobjects.elements.PageElement redirect
signUpHint
protected com.atlassian.pageobjects.elements.PageElement signUpHint
JiraLoginPage
public JiraLoginPage()
getUrl
public String getUrl()
- Specified by:
getUrl
in interface com.atlassian.pageobjects.Page
isAt
public com.atlassian.pageobjects.elements.query.TimedCondition isAt()
- Description copied from class:
AbstractJiraPage
- Timed condition checking if we're at given page.
- Specified by:
isAt
in class AbstractJiraPage
- Returns:
- timed condition checking, if the test is at given page
login
public <M extends com.atlassian.pageobjects.Page> M login(String username,
String password,
Class<M> nextPage,
Object... args)
login
public <M extends com.atlassian.pageobjects.Page> M login(User user,
Class<M> nextPage,
Object... args)
loginAsSysAdmin
public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(Class<M> nextPage,
Object... args)
loginAndFollowRedirect
public <M extends com.atlassian.pageobjects.Page> M loginAndFollowRedirect(String username,
String password,
Class<M> redirectPage,
Object... args)
loginAsSystemAdminAndFollowRedirect
public <M extends com.atlassian.pageobjects.Page> M loginAsSystemAdminAndFollowRedirect(Class<M> redirectPage,
Object... args)
login
public <M extends com.atlassian.pageobjects.Page> M login(String username,
String password,
boolean rememberMe,
boolean followRedirect,
Class<M> nextPage,
Object... args)
loginAndGoToHome
public DashboardPage loginAndGoToHome(String username,
String password)
loginAsSysadminAndGoToHome
public DashboardPage loginAsSysadminAndGoToHome()
login
public <M extends com.atlassian.pageobjects.Page> M login(String username,
String password,
Class<M> mClass)
- Specified by:
login
in interface com.atlassian.pageobjects.page.LoginPage
loginAsSysAdmin
public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(Class<M> mClass)
- Specified by:
loginAsSysAdmin
in interface com.atlassian.pageobjects.page.LoginPage
getSignUpHint
public com.atlassian.pageobjects.elements.PageElement getSignUpHint()
getLoginForm
public com.atlassian.pageobjects.elements.PageElement getLoginForm()
getError
public com.atlassian.pageobjects.elements.PageElement getError()
- Get first error in the form. If there is no errors, this element's
PageElement.isPresent()
method will return false
.
- Returns:
- element representing the first error on the page
getErrors
public Iterable<com.atlassian.pageobjects.elements.PageElement> getErrors()
hasErrors
public boolean hasErrors()
Copyright © 2002-2013 Atlassian. All Rights Reserved.