|
||||||||||
| 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 | |
|---|---|
static String |
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 | |
|---|---|
DocumentLibraryPage(WebDrone drone)
|
|
DocumentLibraryPage(WebDrone drone,
boolean shouldHaveFiles)
|
|
DocumentLibraryPage(WebDrone drone,
String subfolderName)
Constructor. |
|
DocumentLibraryPage(WebDrone drone,
String contentName,
String hasTag)
|
|
| Method Summary | |
|---|---|
SharePage |
deleteItem(String name)
Locates the file or folder and deletes it. |
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. |
ShareContentRow |
getShareContentRow(String name)
Returns the ShareContentRow for the selected contentName. |
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 visible 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. |
protected SharePage |
selectEntry(String title)
Selects an entry regardless of type (file or folder) |
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, 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 |
|---|
public static final String FILES_AND_DOCUMENTS_TABLE_CSS
| Constructor Detail |
|---|
public DocumentLibraryPage(WebDrone drone,
String subfolderName)
public DocumentLibraryPage(WebDrone drone)
public DocumentLibraryPage(WebDrone drone,
boolean shouldHaveFiles)
public DocumentLibraryPage(WebDrone drone,
String contentName,
String hasTag)
| Method Detail |
|---|
public DocumentLibraryPage render(RenderTime timer)
RenderRenderTime.
timer - RenderTime time to wait
HtmlPage page object responsepublic boolean isSubFolderDocLib(String name)
public DocumentLibraryPage render()
Render
HtmlPage object responsepublic DocumentLibraryPage render(long time)
Render
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
protected SharePage selectEntry(String 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 SharePage deleteItem(String name)
name - String identifier
public ShareContentRow getShareContentRow(String name)
WebDrone - dronename - String content name identifier
ShareContentRow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||