org.alfresco.webdrone.share.dashlet
Class MyActivitiesDashlet

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

public class MyActivitiesDashlet
extends SharePage
implements Dashlet

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

Since:
1.3
Author:
Michael Suzuki

Nested Class Summary
static class MyActivitiesDashlet.LinkType
           
 
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 MyActivitiesDashlet(WebDrone drone)
          Constructor.
 
Method Summary
 List<ShareLink> getActivities(MyActivitiesDashlet.LinkType linktype)
          Get Activities based on the link type.
 String getDashletTitle()
          Gets the title on the dashlet panel.
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.
 MyActivitiesDashlet render()
          Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.
 MyActivitiesDashlet render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 MyActivitiesDashlet render(RenderTime timer)
          Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.
 HtmlPage selectActivityDocument(String name)
          Selects the document link on the activity that appears on my activities dashlet by matching the name to the link.
 HtmlPage selectActivitySite(String name)
          Selects a the site link on an activity that appears on my activities dashlet by matching the name to the link.
 HtmlPage selectActivityUser(String name)
          Selects the user link on an activity that appears on my activities dashlet by matching the name to the link.
 ShareLink selectLink(String name)
          Select a link from activity list by a given name with a default of document type, as there are additional links such as user or site in the same web element.
 
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

MyActivitiesDashlet

protected MyActivitiesDashlet(WebDrone drone)
Constructor.

Method Detail

render

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

render

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

selectLink

public ShareLink selectLink(String name)
Select a link from activity list by a given name with a default of document type, as there are additional links such as user or site in the same web element.

Parameters:
name - identifier to match against link title

selectActivityDocument

public HtmlPage selectActivityDocument(String name)
Selects the document link on the activity that appears on my activities dashlet by matching the name to the link.

Parameters:
name - identifier

selectActivityUser

public HtmlPage selectActivityUser(String name)
Selects the user link on an activity that appears on my activities dashlet by matching the name to the link.

Parameters:
name - identifier

selectActivitySite

public HtmlPage selectActivitySite(String name)
Selects a the site link on an activity that appears on my activities dashlet by matching the name to the link.

Parameters:
name - identifier

getActivities

public List<ShareLink> getActivities(MyActivitiesDashlet.LinkType linktype)
Get Activities based on the link type.

Parameters:
linktype - Document, User or Site
Returns:
ShareLink collection

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.