public class JiraLoginPage extends JiraAbstractPage implements LoginPage
driver, pageBinder| Constructor and Description |
|---|
JiraLoginPage() |
| Modifier and Type | Method and Description |
|---|---|
String |
getUrl() |
<M extends Page> |
login(String username,
String password,
boolean rememberMe,
Class<M> nextPage) |
<M extends Page> |
login(String username,
String password,
Class<M> nextPage)
Logs in a user and sends the browser to the next page
|
<M extends Page> |
loginAsSysAdmin(Class<M> nextPage)
Logs in the default sysadmin user and sends the browser to the next page
|
doWait, getDashboardMenu, getHeader, isAdmin, isLoggedInpublic String getUrl()
public <M extends Page> M login(String username, String password, Class<M> nextPage)
LoginPagelogin in interface LoginPageM - 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 Page> M loginAsSysAdmin(Class<M> nextPage)
LoginPageloginAsSysAdmin in interface LoginPageM - The page typenextPage - The next page to visit, which may involve changing the URL. Cannot be null.Copyright © 2015 Atlassian. All rights reserved.