com.atlassian.confluence.pageobjects.page
Class ConfluenceLoginPage

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
      extended by com.atlassian.confluence.pageobjects.page.ConfluenceLoginPage
All Implemented Interfaces:
com.atlassian.pageobjects.Page, com.atlassian.pageobjects.page.LoginPage
Direct Known Subclasses:
DefaultLogoutPage

public class ConfluenceLoginPage
extends ConfluenceAbstractPage
implements com.atlassian.pageobjects.page.LoginPage

Page object implementation for the LoginPage in Confluence.


Field Summary
static java.lang.String CAPTCHA_RESPONSE_ID
           
protected  java.lang.String language
           
static java.lang.String PASSWORD_ERROR_ID
           
static java.lang.String URI
           
static java.lang.String USERNAME_ERROR_ID
           
 
Fields inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
driver, jsQueryFactory, pageBinder, pageElementFinder, timeouts, waiter
 
Constructor Summary
ConfluenceLoginPage()
           
ConfluenceLoginPage(java.lang.String language)
           
 
Method Summary
 boolean captchaResponseIsDisplayed()
           
 java.lang.String getUrl()
           
 void login(java.lang.String username, java.lang.String password, boolean rememberMe)
           
<M extends com.atlassian.pageobjects.Page>
M
login(java.lang.String username, java.lang.String password, java.lang.Class<M> nextPage)
           
<M extends com.atlassian.pageobjects.Page>
M
login(User user, java.lang.Class<M> destinationClass, java.lang.Object... args)
           
<M extends com.atlassian.pageobjects.Page>
M
loginAsSysAdmin(java.lang.Class<M> nextPage)
           
 boolean passwordRequiredErrorIsDisplayed()
           
 boolean usernameRequiredErrorIsDisplayed()
           
 void waitForLoginJs()
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.page.ConfluenceAbstractPage
back, doWait, getAlert, getComponent, getHeader, getInlineDialog, getMainHeader, getMetadata, getMetadataLong, getPageHeadingColor, isDarkFeatureEnabled, isLoggedIn, openAddMenu, openBrowseMenu, openHelpMenu, openToolsMenu, openUserMenu, sendKeyboardShortcut, sendKeyboardShortcutAndWaitForCondition, setSetupComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI

public static final java.lang.String URI
See Also:
Constant Field Values

USERNAME_ERROR_ID

public static final java.lang.String USERNAME_ERROR_ID
See Also:
Constant Field Values

PASSWORD_ERROR_ID

public static final java.lang.String PASSWORD_ERROR_ID
See Also:
Constant Field Values

CAPTCHA_RESPONSE_ID

public static final java.lang.String CAPTCHA_RESPONSE_ID
See Also:
Constant Field Values

language

protected java.lang.String language
Constructor Detail

ConfluenceLoginPage

public ConfluenceLoginPage()

ConfluenceLoginPage

public ConfluenceLoginPage(java.lang.String language)
Method Detail

getUrl

public java.lang.String getUrl()
Specified by:
getUrl in interface com.atlassian.pageobjects.Page

waitForLoginJs

public void waitForLoginJs()

login

public <M extends com.atlassian.pageobjects.Page> M login(java.lang.String username,
                                                          java.lang.String password,
                                                          java.lang.Class<M> nextPage)
Specified by:
login in interface com.atlassian.pageobjects.page.LoginPage

loginAsSysAdmin

public <M extends com.atlassian.pageobjects.Page> M loginAsSysAdmin(java.lang.Class<M> nextPage)
Specified by:
loginAsSysAdmin in interface com.atlassian.pageobjects.page.LoginPage

login

public void login(java.lang.String username,
                  java.lang.String password,
                  boolean rememberMe)

login

public <M extends com.atlassian.pageobjects.Page> M login(User user,
                                                          java.lang.Class<M> destinationClass,
                                                          java.lang.Object... args)

usernameRequiredErrorIsDisplayed

public boolean usernameRequiredErrorIsDisplayed()

passwordRequiredErrorIsDisplayed

public boolean passwordRequiredErrorIsDisplayed()

captchaResponseIsDisplayed

public boolean captchaResponseIsDisplayed()


Copyright © 2003-2013 Atlassian. All Rights Reserved.