|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.alfresco.webdrone.Page
org.alfresco.webdrone.share.SharePage
org.alfresco.webdrone.share.site.SitePage
org.alfresco.webdrone.share.site.document.DocumentLibraryPage
public class DocumentLibraryPage
Site document library page object, holds all element of the HTML page relating to share's site document library page.
| Field Summary |
|---|
| 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 | |
|---|---|
DocumentLibraryPage(WebDrone drone)
Constructor |
|
DocumentLibraryPage(WebDrone drone,
boolean shouldHaveFiles)
|
|
DocumentLibraryPage(WebDrone drone,
String subfolderName)
Constructor |
|
| Method Summary | |
|---|---|
DocumentLibraryPage |
deleteItem(String name)
|
FileDirectoryInfo |
findFileOrFolder(String name)
Selects file or folder from page. |
Integer |
getCommentCount()
The number of comments value displayed on the span comment count. |
List<FileDirectoryInfo> |
getFiles()
Extracts the results from result table that matches the file name. |
DocumentLibraryNavigation |
getNavigation()
Get document library sub navigation. |
boolean |
hasFiles()
Check to see if files exists based on a span that displays the current page result on the paginator. |
boolean |
hasNextPage()
Checks if pagination next button is active. |
boolean |
hasPreviousPage()
Checks if pagination previous button is active. |
boolean |
isDocumentLibrary()
Verify if the page viewed is the document library page. |
boolean |
isFilesVisible()
Checks to see if files is on the page. |
boolean |
isFileVisible(String fileName)
Checks to see if file is on the page. |
boolean |
isSubFolderDocLib(String name)
Checks to verify if we are in the correct sub folder document library 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 title of the document link. |
DocumentLibraryPage |
selectFolder(String title)
Selects the title of the folder link. |
void |
selectNextPage()
Selects the button next on the pagination bar. |
void |
selectPreviousPage()
Selects the button previous on the pagination bar. |
| 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, 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 |
|---|
public DocumentLibraryPage(WebDrone drone,
String subfolderName)
public DocumentLibraryPage(WebDrone drone)
public DocumentLibraryPage(WebDrone drone,
boolean shouldHaveFiles)
| Method Detail |
|---|
public DocumentLibraryPage render(RenderTime timer)
HtmlPageRenderTime.
timer - RenderTime time to wait
HtmlPage page object responsepublic boolean isSubFolderDocLib(String name)
public DocumentLibraryPage render()
HtmlPage
HtmlPage object responsepublic DocumentLibraryPage render(long time)
HtmlPage
time - waiting time
HtmlPage page object responsepublic boolean isDocumentLibrary()
public DocumentLibraryNavigation getNavigation()
DocumentLibraryNavigation object.public List<FileDirectoryInfo> getFiles()
FileDirectoryInfo relating to resultpublic DocumentDetailsPage selectFile(String title)
title - String file title
public DocumentLibraryPage selectFolder(String title)
title - String folder title
public FileDirectoryInfo findFileOrFolder(String name)
name - identifier
public boolean isFileVisible(String fileName)
fileName - String title
public boolean isFilesVisible()
public Integer getCommentCount()
Integer total number of commentspublic boolean hasNextPage()
public boolean hasPreviousPage()
public void selectNextPage()
public void selectPreviousPage()
public boolean hasFiles()
public DocumentLibraryPage deleteItem(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||