public class DocumentLibraryPage extends SitePage
| Modifier and Type | Field and Description |
|---|---|
static String |
FILES_AND_DOCUMENTS_TABLE_CSS |
dojoSupport, WAIT_TIME_3000drone, maxPageLoadingTime, version| Constructor and Description |
|---|
DocumentLibraryPage(WebDrone drone) |
DocumentLibraryPage(WebDrone drone,
boolean shouldHaveFiles) |
DocumentLibraryPage(WebDrone drone,
String subfolderName)
Constructor.
|
DocumentLibraryPage(WebDrone drone,
String contentName,
String hasTag) |
| Modifier and Type | Method and Description |
|---|---|
DocumentLibraryPage |
clickOnTagNameUnderTagsTreeMenuOnDocumentLibrary(String tagName)
This method does the clicking on given tag name, which presents under the Tags Tree menu on Document Library page.
|
SharePage |
deleteItem(String name)
Locates the file or folder and deletes it.
|
FileDirectoryInfo |
findFileOrFolder(String name)
Selects file or folder from page.
|
List<String> |
getAllTagNames()
This method gets the list of tag names present on document library Tags tree menu.
|
Integer |
getCommentCount()
The number of comments value displayed
on the span comment count.
|
FileDirectoryInfo |
getContentRow(String name)
Returns the ShareContentRow for the selected contentName.
|
List<FileDirectoryInfo> |
getFiles()
Extracts the results from result table that matches the file name.
|
DocumentLibraryNavigation |
getNavigation()
Get document library sub navigation.
|
boolean |
hasFiles()
Checks document list is populated by injecting
a javascript in to an alfresco component that
renders the document list.
|
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 |
isFileUploadInstructionDisplayed()
Check is instruction message is displayed.
|
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.
|
boolean |
paginatorRendered()
Checks to see if document list bottom
paginator is displayed
|
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.
|
void |
selectDetailedView()
Selects the Detailed View of the Document Library.
|
protected void |
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.
|
getSiteNav, isSite, isSitePagebasicRender, canResume, canResume, disbaleFileUploadFlash, elementRender, findButton, getCopyRight, getLogin, getNav, getPageTitle, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExistsclose, getDrone, getScreenShot, getTitle, isBrowserTitle, toStringpublic static final String FILES_AND_DOCUMENTS_TABLE_CSS
public DocumentLibraryPage(WebDrone drone)
public DocumentLibraryPage(WebDrone drone, boolean shouldHaveFiles)
public DocumentLibraryPage render(RenderTime timer)
RenderRenderTime.timer - RenderTime time to waitHtmlPage page object responsepublic boolean paginatorRendered()
public boolean isSubFolderDocLib(String name)
public DocumentLibraryPage render()
RenderHtmlPage object responsepublic DocumentLibraryPage render(long time)
Rendertime - waiting timeHtmlPage page object responsepublic boolean isDocumentLibrary()
public DocumentLibraryNavigation getNavigation()
DocumentLibraryNavigation object.public boolean isFileUploadInstructionDisplayed()
public boolean hasFiles()
public List<FileDirectoryInfo> getFiles()
FileDirectoryInfo relating to resultpublic DocumentDetailsPage selectFile(String title)
title - String file titlepublic DocumentLibraryPage selectFolder(String title)
title - String folder titleprotected void selectEntry(String title)
public FileDirectoryInfo findFileOrFolder(String name)
name - identifierpublic boolean isFileVisible(String fileName)
fileName - String titlepublic boolean isFilesVisible()
public Integer getCommentCount()
Integer total number of commentspublic boolean hasNextPage()
public boolean hasPreviousPage()
public void selectNextPage()
public void selectPreviousPage()
public SharePage deleteItem(String name)
name - String identifierpublic FileDirectoryInfo getContentRow(String name)
WebDrone - dronename - String content name identifierShareContentRowpublic DocumentLibraryPage clickOnTagNameUnderTagsTreeMenuOnDocumentLibrary(String tagName)
tagName - DocumentLibraryPagepublic List<String> getAllTagNames()
public void selectDetailedView()
Copyright © 2013. All Rights Reserved.