com.atlassian.webdriver.jira.page
Class JiraLoginPage

java.lang.Object
  extended by com.atlassian.webdriver.jira.page.JiraAbstractPage
      extended by com.atlassian.webdriver.jira.page.JiraLoginPage
All Implemented Interfaces:
Page, LoginPage

public class JiraLoginPage
extends JiraAbstractPage
implements LoginPage

Page object implementation for the LoginPage in JIRA.


Field Summary
 
Fields inherited from class com.atlassian.webdriver.jira.page.JiraAbstractPage
driver, pageBinder
 
Constructor Summary
JiraLoginPage()
           
 
Method Summary
 String getUrl()
           
<M extends Page>
M
login(String username, String password, boolean rememberMe, Class<M> nextPage)
           
<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 class com.atlassian.webdriver.jira.page.JiraAbstractPage
doWait, getDashboardMenu, getHeader, isAdmin, isLoggedIn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraLoginPage

public JiraLoginPage()
Method Detail

getUrl

public String getUrl()
Specified by:
getUrl in interface Page
Returns:
The URI, including query string, relative to the base url

login

public <M extends Page> M login(String username,
                                String password,
                                Class<M> nextPage)
Description copied from interface: LoginPage
Logs in a user and sends the browser to the next page

Specified by:
login in interface LoginPage
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

public <M extends Page> M loginAsSysAdmin(Class<M> nextPage)
Description copied from interface: LoginPage
Logs in the default sysadmin user and sends the browser to the next page

Specified by:
loginAsSysAdmin in interface LoginPage
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.

login

public <M extends Page> M login(String username,
                                String password,
                                boolean rememberMe,
                                Class<M> nextPage)


Copyright © 2014 Atlassian. All rights reserved.