com.atlassian.webdriver.confluence.page
Class ConfluenceLoginPage
java.lang.Object
com.atlassian.webdriver.confluence.page.ConfluenceAbstractPage
com.atlassian.webdriver.confluence.page.ConfluenceLoginPage
- All Implemented Interfaces:
- Page, LoginPage, UserDiscoverable
- Direct Known Subclasses:
- LogoutPage
public class ConfluenceLoginPage
- extends ConfluenceAbstractPage
- implements LoginPage
Page object implementation for the LoginPage in Confluence.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URI
public static final String URI
- See Also:
- Constant Field Values
ConfluenceLoginPage
public ConfluenceLoginPage()
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 loginpassword - The password to login withnextPage - 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.