public abstract class JiraLoginPage extends AbstractJiraPage implements com.atlassian.pageobjects.page.LoginPage
Modifier and Type | Field and Description |
---|---|
static String |
PASSWORD_ADMIN |
static String |
USER_ADMIN |
body, driver, elementFinder, metaElement, pageBinder, timeouts
Constructor and Description |
---|
JiraLoginPage() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.pageobjects.elements.PageElement |
getError()
Get first error in the form.
|
Iterable<com.atlassian.pageobjects.elements.PageElement> |
getErrors() |
protected abstract com.atlassian.pageobjects.elements.PageElement |
getLoginButton()
The button to submit the login form.
|
abstract com.atlassian.pageobjects.elements.PageElement |
getLoginForm()
The login form
|
abstract Iterable<com.atlassian.pageobjects.elements.PageElement> |
getMessages()
The aui messages in the login form
|
protected abstract com.atlassian.pageobjects.elements.PageElement |
getPasswordField()
The text field the password is put on login.
|
protected abstract com.atlassian.pageobjects.elements.PageElement |
getRedirect()
The element holding the redirect information.
|
protected abstract com.atlassian.pageobjects.elements.PageElement |
getRememberMeTickBox()
The tick box for remember me cookie.
|
abstract com.atlassian.pageobjects.elements.PageElement |
getSignUpHint()
The element containing the signup hint
|
protected abstract com.atlassian.pageobjects.elements.PageElement |
getUsernameField()
The text field the username is put on login.
|
boolean |
hasErrors() |
com.atlassian.pageobjects.elements.query.TimedCondition |
isAt()
Timed condition checking if we're at given page.
|
<M extends com.atlassian.pageobjects.Page> |
login(String username,
String password,
boolean rememberMe,
Class<M> nextPage,
Object... args) |
<M extends com.atlassian.pageobjects.Page> |
login(String username,
String password,
Class<M> nextPage)
Logs in a user and sends the browser to the next page
|
<M extends com.atlassian.pageobjects.Page> |
login(String username,
String password,
Class<M> nextPage,
Object... args) |
<M extends com.atlassian.pageobjects.Page> |
login(User user,
Class<M> nextPage,
Object... args) |
<M extends com.atlassian.pageobjects.Page> |
loginAndFollowRedirect(String username,
String password,
Class<M> redirectPage,
Object... args) |
<M extends com.atlassian.pageobjects.Page> |
loginAndFollowRedirect(User user,
Class<M> redirectPage,
Object... args) |
DashboardPage |
loginAndGoToHome(String username,
String password) |
<M extends com.atlassian.pageobjects.Page> |
loginAsSysAdmin(Class<M> nextPage)
Logs in the default sysadmin user and sends the browser to the next page
|
abstract <M extends com.atlassian.pageobjects.Page> |
loginAsSysAdmin(Class<M> nextPage,
Object... args) |
DashboardPage |
loginAsSysadminAndGoToHome() |
abstract <M extends com.atlassian.pageobjects.Page> |
loginAsSystemAdminAndFollowRedirect(Class<M> redirectPage,
Object... args) |
<M extends com.atlassian.pageobjects.Page> |
loginWithRedirect(String username,
String password,
boolean rememberMe,
boolean followRedirect,
Class<M> nextPage,
Object... args) |
void |
performLoginSteps(String username,
String password,
boolean rememberMe) |
back, doWait, execKeyboardShortcut, getHeader, getPageTitle, getXsrfToken, isAdmin, isLoggedIn
public static final String USER_ADMIN
public static final String PASSWORD_ADMIN
protected abstract com.atlassian.pageobjects.elements.PageElement getUsernameField()
protected abstract com.atlassian.pageobjects.elements.PageElement getPasswordField()
protected abstract com.atlassian.pageobjects.elements.PageElement getRememberMeTickBox()
protected abstract com.atlassian.pageobjects.elements.PageElement getLoginButton()
protected abstract com.atlassian.pageobjects.elements.PageElement getRedirect()
public abstract com.atlassian.pageobjects.elements.PageElement getSignUpHint()
public abstract com.atlassian.pageobjects.elements.PageElement getLoginForm()
public abstract Iterable<com.atlassian.pageobjects.elements.PageElement> getMessages()
public abstract <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(Class<M> nextPage, Object... args)
public abstract <M extends com.atlassian.pageobjects.Page> M loginAsSystemAdminAndFollowRedirect(Class<M> redirectPage, Object... args)
public void performLoginSteps(String username, String password, boolean rememberMe)
public com.atlassian.pageobjects.elements.query.TimedCondition isAt()
AbstractJiraPage
isAt
in class AbstractJiraPage
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, Class<M> nextPage, Object... args)
public <M extends com.atlassian.pageobjects.Page> M login(User user, Class<M> nextPage, Object... args)
public <M extends com.atlassian.pageobjects.Page> M loginAndFollowRedirect(User user, Class<M> redirectPage, Object... args)
public <M extends com.atlassian.pageobjects.Page> M loginAndFollowRedirect(String username, String password, Class<M> redirectPage, Object... args)
public DashboardPage loginAndGoToHome(String username, String password)
public DashboardPage loginAsSysadminAndGoToHome()
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, boolean rememberMe, Class<M> nextPage, Object... args)
public <M extends com.atlassian.pageobjects.Page> M login(String username, String password, Class<M> nextPage)
login
in interface com.atlassian.pageobjects.page.LoginPage
M
- The page typeusername
- The username to loginpassword
- The password to login withnextPage
- The next page to visit, which may involve changing the URL. Cannot be null.public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(Class<M> nextPage)
loginAsSysAdmin
in interface com.atlassian.pageobjects.page.LoginPage
M
- The page typenextPage
- The next page to visit, which may involve changing the URL. Cannot be null.public <M extends com.atlassian.pageobjects.Page> M loginWithRedirect(String username, String password, boolean rememberMe, boolean followRedirect, Class<M> nextPage, Object... args)
public com.atlassian.pageobjects.elements.PageElement getError()
PageElement.isPresent()
method will return false
.public Iterable<com.atlassian.pageobjects.elements.PageElement> getErrors()
public boolean hasErrors()
Copyright © 2002-2019 Atlassian. All Rights Reserved.