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, Render

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 CREATE_NEW_FOLDER_BUTTON
           
static String FILE_UPLOAD_BUTTON
           
 
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
DocumentLibraryNavigation(WebDrone drone, String fileUploadButtonId, String createNewFolderButtonId)
          Constructor.
 
Method Summary
 boolean hasFileUploadLink()
           
 boolean hasNewFolderLink()
           
 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.
 NewFolderPage selectCreateNewFolder()
          Mimics the action of selecting the create new folder button.
 CreateContentPage selectCreatePlainText()
          Mimics the action of selecting Create Plain Text.
 UploadFilePage selectFileUpload()
          Mimics the action of selecting the file upload button.
 
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

FILE_UPLOAD_BUTTON

public static final String FILE_UPLOAD_BUTTON
See Also:
Constant Field Values

CREATE_NEW_FOLDER_BUTTON

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

DocumentLibraryNavigation

public DocumentLibraryNavigation(WebDrone drone,
                                 String fileUploadButtonId,
                                 String createNewFolderButtonId)
Constructor.

Method Detail

render

public DocumentLibraryNavigation render(RenderTime timer)
Description copied from interface: Render
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

render

public DocumentLibraryNavigation render()
Description copied from interface: Render
Page renderer verifies the page has rendered by checking java script page loaded status is complete.

Returns:
HtmlPage object response

render

public DocumentLibraryNavigation render(long time)
Description copied from interface: Render
Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.

Parameters:
time - waiting time
Returns:
HtmlPage page object response

hasFileUploadLink

public boolean hasFileUploadLink()
Returns:
true if the Upload link is available
Since:
1.5.1

selectFileUpload

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

Returns:
HtmlPage response page object

hasNewFolderLink

public boolean hasNewFolderLink()
Returns:
true if the New Folder link is available
Since:
1.5.1

selectCreateNewFolder

public NewFolderPage selectCreateNewFolder()
Mimics the action of selecting the create new folder button.

Returns:
NewFolderPage page response

selectCreatePlainText

public CreateContentPage selectCreatePlainText()
Mimics the action of selecting Create Plain Text.

Returns:
CreateContentPage


Copyright © 2013. All Rights Reserved.