org.alfresco.webdrone.share
Class PeopleFinderPage

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.PeopleFinderPage
All Implemented Interfaces:
HtmlPage
Direct Known Subclasses:
PeopleFinderResultPage

public class PeopleFinderPage
extends SharePage

People finder page object, holds all element of the html page relating to share's people finder page.

Since:
1.0
Author:
Michael Suzuki

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
PeopleFinderPage(WebDrone drone)
          Constructor.
 
Method Summary
protected  boolean isHelpScreenDisplayed()
          Checks for people finder help screen on the page.
protected  boolean isTitlePresent()
          Verify if people finder title is present on the page
 PeopleFinderPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 PeopleFinderPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 PeopleFinderPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 HtmlPage searchFor(String person)
          Completes the search form on the people finders page.
 
Methods inherited from class org.alfresco.webdrone.share.SharePage
basicRender, canResume, canResume, disbaleFileUploadFlash, 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

PeopleFinderPage

public PeopleFinderPage(WebDrone drone)
Constructor.

Parameters:
drone - WebDriver to access page
Method Detail

render

public PeopleFinderPage render(RenderTime timer)
Description copied from interface: HtmlPage
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 PeopleFinderPage render()
Description copied from interface: HtmlPage
Page renderer verifies the page has rendered by checking java script page loaded status is complete.

Returns:
HtmlPage object response

render

public PeopleFinderPage render(long time)
Description copied from interface: HtmlPage
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 people finder title is present on the page

Returns:
true if exists

searchFor

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

Parameters:
person - String name
Returns:
PeopleFinderPage page response

isHelpScreenDisplayed

protected boolean isHelpScreenDisplayed()
Checks for people finder help screen on the page.

Returns:
true is splash screen is displayed


Copyright © 2013. All Rights Reserved.