@Component @Lazy public class LoginPage extends Renderable
renderableParent, webDriver| Constructor and Description |
|---|
LoginPage() |
| Modifier and Type | Method and Description |
|---|---|
UserDashboardPage |
clickOnLoginButton()
click login button
|
String |
getCurrentUser()
Get the currently logged in user
|
String |
getErrorMessage()
get error message
|
String |
getUsername()
get user name
|
boolean |
isLoginFailed()
has login failed
|
boolean |
isShown()
Indicates whether the login page is being shown
|
boolean |
isUserLoggedIn()
Is a user currently logged in
|
UserDashboardPage |
login(String userName,
String password)
Try to login.
|
<T extends Renderable> |
login(String userName,
String password,
T renderable)
Try to login.
|
<T extends Renderable> |
render()
Clear current user when login page is rendered
|
LoginPage |
setPassword(String password)
set password
|
LoginPage |
setUsername(String username)
set user name
|
as, getAllFields, getLastRendered, renderChildrenpublic <T extends Renderable> T render()
render in class RenderableRenderable.render()public String getUsername()
public UserDashboardPage clickOnLoginButton()
public boolean isLoginFailed()
public String getErrorMessage()
public boolean isShown()
public UserDashboardPage login(String userName, String password)
userName - The user to log in as.password - The password to use.UserDashboardPage user dashboard pagepublic <T extends Renderable> T login(String userName, String password, T renderable)
userName - The user to log in as.password - The password to use.renderable - The renderable item which will be the destination of the log-in processpublic boolean isUserLoggedIn()
public String getCurrentUser()
Copyright © 2005–2016 Alfresco Software. All rights reserved.