org.alfresco.webdrone.share.site.document
Class DocumentLibraryPage

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.site.SitePage
              extended by org.alfresco.webdrone.share.site.document.DocumentLibraryPage
All Implemented Interfaces:
HtmlPage

public class DocumentLibraryPage
extends SitePage

Site document library page object, holds all element of the HTML page relating to share's site document library 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
DocumentLibraryPage(WebDrone drone)
          Constructor
 
Method Summary
 List<org.openqa.selenium.WebElement> getFiles(String filename)
          Extracts the results from result table that matches the file name.
 DocumentLibraryNavigation getNavigation()
          Get document library sub navigation.
 boolean isDocumentLibrary()
          Verify if the page viewed is the document library page.
 boolean isFileVisible(String fileName)
          Checks to see if file is on the page.
 DocumentLibraryPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 DocumentLibraryPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 DocumentLibraryPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 DocumentDetailsPage selectFile(String title)
          Selects the document details link.
 
Methods inherited from class org.alfresco.webdrone.share.site.SitePage
getSiteNav, isSitePage
 
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

DocumentLibraryPage

public DocumentLibraryPage(WebDrone drone)
Constructor

Method Detail

render

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

isDocumentLibrary

public boolean isDocumentLibrary()
Verify if the page viewed is the document library page.


getNavigation

public DocumentLibraryNavigation getNavigation()
Get document library sub navigation.

Returns:
DocumentLibraryNavigation object.

getFiles

public List<org.openqa.selenium.WebElement> getFiles(String filename)
Extracts the results from result table that matches the file name.

Parameters:
filename - String file name
Returns:
Collection of WebElement relating to result

selectFile

public DocumentDetailsPage selectFile(String title)
                               throws PageException
Selects the document details link.

Parameters:
title - String file title
Returns:
HtmlPage page response object
Throws:
Exception
PageException

isFileVisible

public boolean isFileVisible(String fileName)
Checks to see if file is on the page.

Parameters:
fileName - String title
Returns:
true if file exists on the page


Copyright © 2012. All Rights Reserved.