org.alfresco.webdrone.share
Class RepositoryPage

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
                  extended by org.alfresco.webdrone.share.RepositoryPage
All Implemented Interfaces:
HtmlPage, Render

public class RepositoryPage
extends DocumentLibraryPage

Repository page object, holds all element of the HTML page relating to share's repository page.

Since:
1.0
Author:
Michael Suzuki

Field Summary
 
Fields inherited from class org.alfresco.webdrone.share.site.document.DocumentLibraryPage
FILES_AND_DOCUMENTS_TABLE_CSS
 
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
RepositoryPage(WebDrone drone)
          Constructor.
RepositoryPage(WebDrone drone, String subfolderName)
          Constructor.
 
Method Summary
 DocumentLibraryNavigation getNavigation()
          Get document library sub navigation.
 RepositoryPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 RepositoryPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 RepositoryPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 DocumentLibraryPage selectFolder(String title)
          Selects the title of the folder link.
 boolean titlePresent()
          Verify if people finder title is present on the page
 
Methods inherited from class org.alfresco.webdrone.share.site.document.DocumentLibraryPage
deleteItem, findFileOrFolder, getCommentCount, getFiles, getShareContentRow, hasFiles, hasNextPage, hasPreviousPage, isDocumentLibrary, isFilesVisible, isFileVisible, isSubFolderDocLib, selectEntry, selectFile, selectNextPage, selectPreviousPage
 
Methods inherited from class org.alfresco.webdrone.share.site.SitePage
getSiteNav, isSite, isSitePage
 
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
 

Constructor Detail

RepositoryPage

public RepositoryPage(WebDrone drone)
Constructor.

Parameters:
drone - WebDriver to access page

RepositoryPage

public RepositoryPage(WebDrone drone,
                      String subfolderName)
Constructor.

Parameters:
drone - WebDriver to access page
subfolderName - a subfolder name when drilling down
Method Detail

render

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

Specified by:
render in interface Render
Overrides:
render in class DocumentLibraryPage
Parameters:
timer - RenderTime time to wait
Returns:
HtmlPage page object response

render

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

Specified by:
render in interface Render
Overrides:
render in class DocumentLibraryPage
Returns:
HtmlPage object response

render

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

Specified by:
render in interface Render
Overrides:
render in class DocumentLibraryPage
Parameters:
time - waiting time
Returns:
HtmlPage page object response

getNavigation

public DocumentLibraryNavigation getNavigation()
Description copied from class: DocumentLibraryPage
Get document library sub navigation.

Overrides:
getNavigation in class DocumentLibraryPage
Returns:
DocumentLibraryNavigation object.

titlePresent

public boolean titlePresent()
Verify if people finder title is present on the page

Returns:
true if exists

selectFolder

public DocumentLibraryPage selectFolder(String title)
Selects the title of the folder link.

Overrides:
selectFolder in class DocumentLibraryPage
Parameters:
title - folder title
Returns:
page response object (same type as this)


Copyright © 2013. All Rights Reserved.