com.atlassian.pageobjects.page
Interface LoginPage

All Superinterfaces:
Page
All Known Implementing Classes:
ConfluenceLoginPage, JiraLoginPage, LogoutPage

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(String username, String password, Class<M> nextPage)
          Logs in a user and sends the browser to the next page
<M extends Page>
M
loginAsSysAdmin(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(String username,
                         String password,
                         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(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 © 2014 Atlassian. All rights reserved.