org.alfresco.webdrone.share.dashlet
Class MySitesDashlet

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

public class MySitesDashlet
extends Page
implements Dashlet

My site dashlet object, holds all element of the HTML page relating to share's my site 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.Page
DEFAULT_PAGE_LOADING_TIME_WAIT, drone, version
 
Constructor Summary
protected MySitesDashlet(WebDrone drone)
          Constructor.
 
Method Summary
 HtmlPage deleteSite(String siteName)
          Selects a site that appears on my site dashlet by the matching name and clicks on the delete link.
 String getDashletTitle()
          Gets the title on the dashlet panel.
 List<String> getSites()
          The active sites displayed on my site dashlet.
 MySitesDashlet render()
          Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.
 MySitesDashlet render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 MySitesDashlet render(RenderTime timer)
          Dashlet renderer verifies the page has rendered by checking java script page loaded status is complete.
 void selectFirstSite()
          Selects the first site that appears on my site dashlet and click on the link.
 HtmlPage selectSite(String siteName)
          Selects a site that appears on my site dashlet by the matching name and clicks on the link.
 
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
 

Field Detail

dashlet

protected final org.openqa.selenium.WebElement dashlet
Constructor Detail

MySitesDashlet

protected MySitesDashlet(WebDrone drone)
Constructor.

Method Detail

render

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

Specified by:
render in interface HtmlPage
Returns:
HtmlPage page object response
Throws:
PageException

getSites

public List<String> getSites()
The active sites displayed on my site dashlet.

Returns:
List site titles

selectFirstSite

public void selectFirstSite()
Selects the first site that appears on my site dashlet and click on the link.


selectSite

public HtmlPage selectSite(String siteName)
                    throws PageException
Selects a site that appears on my site dashlet by the matching name and clicks on the link.

Throws:
Exception - if no site found
PageException

deleteSite

public HtmlPage deleteSite(String siteName)
                    throws Exception
Selects a site that appears on my site dashlet by the matching name and clicks on the delete link.

Throws:
Exception - if no site found

render

public MySitesDashlet 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 time to wait
Returns:
Dashlet object response

getDashletTitle

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

Returns:
String dashlet title


Copyright © 2012. All Rights Reserved.