com.atlassian.pageobjects.page
Interface LoginPage

All Superinterfaces:
Page

public interface LoginPage
extends Page

A login page that logs in a user and sends the browser to the next page


Method Summary
<M extends Page>
M
login(java.lang.String username, java.lang.String password, java.lang.Class<M> nextPage)
          Logs in a user and sends the browser to the next page
<M extends Page>
M
loginAsSysAdmin(java.lang.Class<M> nextPage)
          Logs in the default sysadmin user and sends the browser to the next page
 
Methods inherited from interface com.atlassian.pageobjects.Page
getUrl
 

Method Detail

login

<M extends Page> M login(java.lang.String username,
                         java.lang.String password,
                         java.lang.Class<M> nextPage)
Logs in a user and sends the browser to the next page

Type Parameters:
M - The page type
Parameters:
username - The username to login
password - The password to login with
nextPage - The next page to visit, which may involve changing the URL. Cannot be null.
Returns:
The next page, fully loaded and initialized.

loginAsSysAdmin

<M extends Page> M loginAsSysAdmin(java.lang.Class<M> nextPage)
Logs in the default sysadmin user and sends the browser to the next page

Type Parameters:
M - The page type
Parameters:
nextPage - The next page to visit, which may involve changing the URL. Cannot be null.
Returns:
The next page, fully loaded and initialized.


Copyright © 2013 Atlassian. All Rights Reserved.