org.alfresco.webdrone.share.site
Class SiteFinderPage

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.site.SiteFinderPage
All Implemented Interfaces:
HtmlPage

public class SiteFinderPage
extends SharePage

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

Since:
1.0
Author:
Michael Suzuki

Field Summary
 
Fields inherited from class org.alfresco.webdrone.Page
DEFAULT_PAGE_LOADING_TIME_WAIT, drone, version
 
Constructor Summary
SiteFinderPage(WebDrone drone)
          Constructor.
 
Method Summary
 HtmlPage deleteSite(String siteName)
          Deletes a site based on the result of the site finder search which should only yield one result.
 boolean hasResults()
          Verify if results are displayed on the page.
 SiteFinderPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 SiteFinderPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 SiteFinderPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 HtmlPage searchForSite(String title)
          Search for a site form action.
 
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
 

Constructor Detail

SiteFinderPage

public SiteFinderPage(WebDrone drone)
Constructor.

Method Detail

render

public SiteFinderPage render(RenderTime timer)
                      throws PageException
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
Throws:
PageException

render

public SiteFinderPage render()
                      throws PageException
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
Throws:
PageException

render

public SiteFinderPage render(long time)
                      throws PageException
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.

Returns:
HtmlPage page object response
Throws:
PageException

searchForSite

public HtmlPage searchForSite(String title)
                       throws Exception
Search for a site form action.

Parameters:
title - String name of site
Returns:
HtmlPage page object response
Throws:
Exception - if error

hasResults

public boolean hasResults()
Verify if results are displayed on the page.

Returns:
true if results are present

deleteSite

public HtmlPage deleteSite(String siteName)
Deletes a site based on the result of the site finder search which should only yield one result. The single result will have a collection of buttons which one is delete. Once the delete is button is found the action of clicking the button takes place.

Parameters:
siteName - String site name
Returns:
HtmlPage page response object


Copyright © 2012. All Rights Reserved.