org.alfresco.webdrone.share.dashlet
Class MyDocumentsDashlet

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.dashlet.MyDocumentsDashlet
All Implemented Interfaces:
HtmlPage, Dashlet

public class MyDocumentsDashlet
extends SharePage
implements Dashlet

My documents dashlet object, holds all element of the HTML page relating to share's my documents dashlet on dashboard page.

Since:
1.0
Author:
Michael Suzuki

Field Summary
protected  org.openqa.selenium.WebElement dashlet
           
 
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
protected MyDocumentsDashlet(WebDrone drone)
          Constructor.
 
Method Summary
 String getDashletTitle()
          Gets the title on the dashlet panel.
 List<ShareLink> getDocuments()
          The collection of documents displayed on my documents dashlet.
protected  List<ShareLink> getList(String csslocator)
          Populates the data seen in dashlet.
protected  boolean isEmpty(String css)
          Checks if dashlet is empty by verifying that dashlet div class empty is not displayed.
protected  boolean isVisibleResults()
          Check if results table is populated.
 MyDocumentsDashlet render()
          Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.
 MyDocumentsDashlet render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 MyDocumentsDashlet render(RenderTime timer)
          Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.
 ShareLink selectDocument(String title)
          Selects a document that appears on my documents dashlet by the matching name and clicks on the link.
 
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
 

Field Detail

dashlet

protected org.openqa.selenium.WebElement dashlet
Constructor Detail

MyDocumentsDashlet

protected MyDocumentsDashlet(WebDrone drone)
Constructor.

Method Detail

render

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

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

render

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

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

getDocuments

public List<ShareLink> getDocuments()
The collection of documents displayed on my documents dashlet.

Returns:
List links

selectDocument

public ShareLink selectDocument(String title)
Selects a document that appears on my documents dashlet by the matching name and clicks on the link.


render

public MyDocumentsDashlet render(RenderTime timer)
Description copied from interface: Dashlet
Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.

Specified by:
render in interface HtmlPage
Specified by:
render in interface Dashlet
Parameters:
timer - RenderTime
Returns:
Dashlet object response

getDashletTitle

public final String getDashletTitle()
Gets the title on the dashlet panel.

Returns:
String dashlet title

isEmpty

protected boolean isEmpty(String css)
Checks if dashlet is empty by verifying that dashlet div class empty is not displayed.

Parameters:
dashlet - css locator
Returns:
true if empty

isVisibleResults

protected boolean isVisibleResults()
Check if results table is populated.

Returns:
true when results are displayed

getList

protected List<ShareLink> getList(String csslocator)
Populates the data seen in dashlet.



Copyright © 2013. All Rights Reserved.