org.alfresco.webdrone.share
Class UserSearchPage

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

public class UserSearchPage
extends SharePage

User Search page object, holds all element of the html page relating to share's Users page.

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
UserSearchPage(WebDrone drone)
          Constructor.
 
Method Summary
 String getResultsStatus()
          Checks the result message in the USER_SEARCH_RESULTS_STATUS.
 boolean hasResults()
          Checks if no result message is displayed.
protected  boolean isMessageDisplayed()
          Check if javascript message about successful user creation is displayed.
protected  boolean isSearchComplete()
          Checks if the search is complete by waiting for text 'Searching for' to dissapear.
protected  boolean isTitlePresent()
          Verify if Admin Console title is present on the page
 UserSearchPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 UserSearchPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 UserSearchPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 HtmlPage searchFor(String user)
          Completes the search form on the user finders page.
 NewUserPage selectNewUser()
          Clicks on New User button to invoke New User Page.
 UploadFilePage selectUploadUserCSVFile()
          Clicks on Upload User CSV File Button.
 
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

UserSearchPage

public UserSearchPage(WebDrone drone)
Constructor.

Parameters:
drone - WebDriver to access page
Method Detail

render

public UserSearchPage 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 UserSearchPage 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 UserSearchPage 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

searchFor

public HtmlPage searchFor(String user)
Completes the search form on the user finders page.

Parameters:
user - String name
Returns:
UserSearchPage page response

isSearchComplete

protected boolean isSearchComplete()
Checks if the search is complete by waiting for text 'Searching for' to dissapear.

Returns:
true if search is complete

getResultsStatus

public String getResultsStatus()
Checks the result message in the USER_SEARCH_RESULTS_STATUS.

Returns:
String message

hasResults

public boolean hasResults()
Checks if no result message is displayed.

Returns:
true if the no result message is not displayed

selectNewUser

public NewUserPage selectNewUser()
Clicks on New User button to invoke New User Page.

Returns:
NewUserPage

selectUploadUserCSVFile

public UploadFilePage selectUploadUserCSVFile()
Clicks on Upload User CSV File Button.

Returns:
NewUserPage

isMessageDisplayed

protected boolean isMessageDisplayed()
Check if javascript message about successful user creation is displayed.

Returns:
true if message displayed


Copyright © 2013. All Rights Reserved.