org.alfresco.webdrone.share.dashlet
Class MyTasksDashlet

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

public class MyTasksDashlet
extends SharePage
implements Dashlet

My tasks dashlet object, holds all element of the HTML page relating to share's my tasks 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 MyTasksDashlet(WebDrone drone)
          Constructor.
 
Method Summary
 MyTasksDashlet acceptInvitaton()
          Selects the accept button on Invitation page.
 MyTasksDashlet clickOnTask(String task)
          This method clicks on specific task which appears on my-tasks dashlet.
 String getDashletTitle()
          Gets the title on the dashlet panel.
protected  ShareLink getLink(String cssLocation, String title)
          Retries the ShareLink object that matches the title.
protected  List<ShareLink> getList(String csslocator)
          Populates the data seen in dashlet.
 List<ShareLink> getTasks()
          The collection of tasks displayed on my tasks 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.
 MyTasksDashlet render()
          Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.
 MyTasksDashlet render(long time)
          Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.
 MyTasksDashlet render(RenderTime timer)
          Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.
protected  boolean renderBasic(RenderTime timer, String css)
           
 ShareLink selectTask(String title)
          Selects a task that appears on my tasks dashlet by the matching name and clicks on the link.
 
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
 

Field Detail

dashlet

protected org.openqa.selenium.WebElement dashlet
Constructor Detail

MyTasksDashlet

protected MyTasksDashlet(WebDrone drone)
Constructor.

Method Detail

render

public MyTasksDashlet 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 Render
Specified by:
render in interface Dashlet
Returns:
Dashlet object response

render

public MyTasksDashlet render(long time)
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 Render
Specified by:
render in interface Dashlet
Parameters:
time - long
Returns:
Dashlet object response

getTasks

public List<ShareLink> getTasks()
The collection of tasks displayed on my tasks dashlet.

Returns:
List links

selectTask

public ShareLink selectTask(String title)
Selects a task that appears on my tasks dashlet by the matching name and clicks on the link.


render

public MyTasksDashlet 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 Render
Specified by:
render in interface Dashlet
Parameters:
timer - RenderTime
Returns:
Dashlet object response

acceptInvitaton

public MyTasksDashlet acceptInvitaton()
Selects the accept button on Invitation page.

Returns:
MyTasksDashlet

clickOnTask

public MyTasksDashlet clickOnTask(String task)
This method clicks on specific task which appears on my-tasks dashlet.

Parameters:
task -
Returns:
MyTasksDashlet

getDashletTitle

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


renderBasic

protected boolean renderBasic(RenderTime timer,
                              String css)

getLink

protected ShareLink getLink(String cssLocation,
                            String title)
Retries the ShareLink object that matches the title.

Parameters:
cssLocation - String css selector description
title - String identifier to match
Returns:
ShareLink link that matches the title


Copyright © 2013. All Rights Reserved.