org.alfresco.webdrone.share
Class NewUserPage

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.NewUserPage
All Implemented Interfaces:
HtmlPage, Render

public class NewUserPage
extends SharePage

New User page object, holds all element of the html page relating to share's New User page. Enterprise only feature for the time being

Since:
1.6.1
Author:
Meenal Bhave

Field Summary
 
Fields inherited from class org.alfresco.webdrone.share.SharePage
dojoSupport, WAIT_TIME_3000
 
Fields inherited from class org.alfresco.webdrone.Page
drone, maxPageLoadingTime, version
 
Constructor Summary
NewUserPage(WebDrone drone)
          Constructor.
 
Method Summary
 UserSearchPage cancelCreateUser()
          Clicks on Cancel button to cancel Create User.
 void inputEmail(String text)
          Enter Email.
 void inputFirstName(String text)
          Enter FirstName.
 void inputLastName(String text)
          Enter LastName.
 void inputPassword(String text)
          Enter Password.
 void inputQuota(String text)
          Enter Quota.
 void inputUsername(String text)
          Enter Username into username input field.
 void inputVerifyPassword(String text)
          Enter VerifyPassword.
protected  boolean isPageLoaded()
          Checks if the group search button is displayed.
protected  boolean isTitlePresent()
          Verify if admin Console title is present on the page
 NewUserPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 NewUserPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 NewUserPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 NewUserPage searchGroup(String user)
          Enter the search text is group finder text box and clicks Search on the new user page.
 NewUserPage selectCreateAnotherUser()
          Clicks on Create and Create Another User button to invoke New User Page.
 UserSearchPage selectCreateUser()
          Clicks on Create User Button.
 void selectDisableAccount()
          Selects the Disable Account checkbox.
 
Methods inherited from class org.alfresco.webdrone.share.SharePage
basicRender, canResume, canResume, disbaleFileUploadFlash, elementRender, findButton, getCopyRight, getLogin, getNav, getPageTitle, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExists
 
Methods inherited from class org.alfresco.webdrone.Page
close, getDrone, getScreenShot, getTitle, isBrowserTitle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewUserPage

public NewUserPage(WebDrone drone)
Constructor.

Parameters:
drone - WebDriver to access page
Method Detail

render

public NewUserPage render(RenderTime timer)
Description copied from interface: Render
Page renderer verifies the page has rendered by checking all elements are visible and loaded. To verify this assertion every page object that implements the method will contain logic to determine if the page has loaded completely in the given time set by the RenderTime.

Parameters:
timer - RenderTime time to wait
Returns:
HtmlPage page object response

render

public NewUserPage render()
Description copied from interface: Render
Page renderer verifies the page has rendered by checking java script page loaded status is complete.

Returns:
HtmlPage object response

render

public NewUserPage render(long time)
Description copied from interface: Render
Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.

Parameters:
time - waiting time
Returns:
HtmlPage page object response

isTitlePresent

protected boolean isTitlePresent()
Verify if admin Console title is present on the page

Returns:
true if exists

inputFirstName

public void inputFirstName(String text)
Enter FirstName.


inputLastName

public void inputLastName(String text)
Enter LastName.


inputEmail

public void inputEmail(String text)
Enter Email.


inputUsername

public void inputUsername(String text)
Enter Username into username input field.


inputPassword

public void inputPassword(String text)
Enter Password.


inputVerifyPassword

public void inputVerifyPassword(String text)
Enter VerifyPassword.


inputQuota

public void inputQuota(String text)
Enter Quota.


searchGroup

public NewUserPage searchGroup(String user)
Enter the search text is group finder text box and clicks Search on the new user page.

Parameters:
user - String name
Returns:
UserSearchPage page response

isPageLoaded

protected boolean isPageLoaded()
Checks if the group search button is displayed.

Returns:
true if button is displayed

selectCreateUser

public UserSearchPage selectCreateUser()
Clicks on Create User Button.

Returns:
NewUserPage

selectCreateAnotherUser

public NewUserPage selectCreateAnotherUser()
Clicks on Create and Create Another User button to invoke New User Page.

Returns:
NewUserPage

cancelCreateUser

public UserSearchPage cancelCreateUser()
Clicks on Cancel button to cancel Create User.

Returns:
UserSearchPage

selectDisableAccount

public void selectDisableAccount()
Selects the Disable Account checkbox.



Copyright © 2013. All Rights Reserved.