org.alfresco.webdrone.share.site
Class SiteDashboardPage

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.site.SitePage
              extended by org.alfresco.webdrone.share.site.SiteDashboardPage
All Implemented Interfaces:
HtmlPage, Render, Dashboard

public class SiteDashboardPage
extends SitePage
implements Dashboard

Site dashboard page object, holds all element of the HTML page relating to share's site dashboard 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
SiteDashboardPage(WebDrone drone)
          Constructor
 
Method Summary
 Dashlet getDashlet(String name)
          Gets dashlets in the dashboard page.
 SiteDashboardPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 SiteDashboardPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 SiteDashboardPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 boolean siteProfileDisplayed()
          Verify if we are on site dashboard page and the site profile dashlet is displayed.
 
Methods inherited from class org.alfresco.webdrone.share.site.SitePage
getSiteNav, isSite, isSitePage
 
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

SiteDashboardPage

public SiteDashboardPage(WebDrone drone)
Constructor

Method Detail

render

public SiteDashboardPage 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.

Specified by:
render in interface Render
Parameters:
timer - RenderTime time to wait
Returns:
HtmlPage page object response

render

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

Specified by:
render in interface Render
Returns:
HtmlPage object response

render

public SiteDashboardPage 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.

Specified by:
render in interface Render
Parameters:
time - waiting time
Returns:
HtmlPage page object response

siteProfileDisplayed

public boolean siteProfileDisplayed()
Verify if we are on site dashboard page and the site profile dashlet is displayed.

Returns:
true if site profile is visible

getDashlet

public Dashlet getDashlet(String name)
Gets dashlets in the dashboard page.

Specified by:
getDashlet in interface Dashboard
Parameters:
name - String title of dashlet
Returns:
HtmlPage page object
Throws:
Exception


Copyright © 2013. All Rights Reserved.