org.alfresco.webdrone.share
Class DashBoardPage

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

public class DashBoardPage
extends SharePage

Dashboard page object, holds all element of the HTML page relating to share's dashboard 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
DashBoardPage(WebDrone drone)
          Constructor.
 
Method Summary
 Dashlet getDashlet(String name)
          Gets dashlets in the dashboard page.
 DashBoardPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 DashBoardPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 DashBoardPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 boolean titlePresent()
          Verify if home page banner web element is present
 
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

DashBoardPage

public DashBoardPage(WebDrone drone)
Constructor.

Method Detail

render

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

titlePresent

public boolean titlePresent()
Verify if home page banner web element is present

Returns:
true if exists

getDashlet

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

Parameters:
name - String title of dashlet
Returns:
HtmlPage page object
Throws:
Exception
PageException


Copyright © 2012. All Rights Reserved.