|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.alfresco.webdrone.Page
org.alfresco.webdrone.share.SharePage
org.alfresco.webdrone.share.LoginPage
public class LoginPage
Login Page object that holds all information and methods that can be found on the login page.
| Field Summary |
|---|
| Fields inherited from class org.alfresco.webdrone.Page |
|---|
DEFAULT_PAGE_LOADING_TIME_WAIT, drone, version |
| Constructor Summary | |
|---|---|
LoginPage(IWebDrone drone)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
exists()
Verify if login html element div is displayed. |
boolean |
isLoggedIn()
Verifies if a user is currently logged in |
void |
loginAs(String username,
String password)
Logs user into the site by first finding the login panel,populating the fields and submitting the form. |
LoginPage |
render()
Page renderer verifies the page has rendered by checking java script page loaded status is complete. |
LoginPage |
render(long time)
Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set. |
LoginPage |
render(RenderTime timer)
Page renderer verifies the page has rendered by checking all elements are visible and loaded. |
| Methods inherited from class org.alfresco.webdrone.share.SharePage |
|---|
basicRender, disbaleFileUploadFlash, findButton, getLogin, getNav, getPageTitle, getSearch, isLogoPresent, isTitlePresent, panelExists |
| Methods inherited from class org.alfresco.webdrone.Page |
|---|
close, getScreenShot, getTitle, isBrowserTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.alfresco.webdrone.HtmlPage |
|---|
close, getTitle |
| Constructor Detail |
|---|
public LoginPage(IWebDrone drone)
| Method Detail |
|---|
public LoginPage render(RenderTime timer)
throws PageException
HtmlPageRenderTime.
render in interface HtmlPagetimer - RenderTime time to wait
HtmlPage page object response
PageException
public LoginPage render()
throws PageException
HtmlPage
render in interface HtmlPageHtmlPage object response
PageException
public LoginPage render(long time)
throws PageException
HtmlPage
render in interface HtmlPageHtmlPage page object response
PageExceptionpublic boolean exists()
public void loginAs(String username,
String password)
username - String username valuepassword - String password valuepublic boolean isLoggedIn()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||