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

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

public class DocumentLibraryNavigation
extends SharePage

Represent elements found on the HTML page relating to the document library sub navigation bar that appears on the document library site page.

Since:
1.0
Author:
Michael Suzuki

Field Summary
static String FILE_UPLOAD_BUTTON
           
 
Fields inherited from class org.alfresco.webdrone.Page
DEFAULT_PAGE_LOADING_TIME_WAIT, drone, version
 
Constructor Summary
DocumentLibraryNavigation(WebDrone drone)
          Constructor.
 
Method Summary
 DocumentLibraryNavigation render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 DocumentLibraryNavigation render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 DocumentLibraryNavigation render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 UploadFilePage selectFileUpload()
          Mimics the action of selecting the file upload button.
 
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
 

Field Detail

FILE_UPLOAD_BUTTON

public static final String FILE_UPLOAD_BUTTON
See Also:
Constant Field Values
Constructor Detail

DocumentLibraryNavigation

public DocumentLibraryNavigation(WebDrone drone)
Constructor.

Method Detail

render

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

selectFileUpload

public UploadFilePage selectFileUpload()
                                throws Exception
Mimics the action of selecting the file upload button.

Returns:
HtmlPage response page object
Throws:
Exception - if error


Copyright © 2012. All Rights Reserved.