public class DocumentLibraryPage extends SitePage
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentLibraryPage.Optype |
| Modifier and Type | Field and Description |
|---|---|
static String |
FILES_AND_DOCUMENTS_TABLE_CSS |
alfrescoVersion, dojoSupport, elementWaitInSeconds, popupRendertime, PROMPT_PANEL_ID, WAIT_TIME_3000| Constructor and Description |
|---|
DocumentLibraryPage(org.alfresco.webdrone.WebDrone drone) |
DocumentLibraryPage(org.alfresco.webdrone.WebDrone drone,
String subfolderName)
Constructor.
|
DocumentLibraryPage(org.alfresco.webdrone.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.
|
org.alfresco.webdrone.HtmlPage |
deleteItem(int number)
Locates the file or folder and deletes it.
|
org.alfresco.webdrone.HtmlPage |
deleteItem(String name)
Locates the file or folder and deletes it.
|
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.
|
String |
getContentName()
Getter method
|
FileDirectoryInfo |
getContentRow(String name)
Deprecated.
use getFileDirectoryInfo
|
FileDirectoryInfo |
getFileDirectoryInfo(Integer number)
Select a particular file directory info row
based on the count, the accepted range is 1-50.
|
FileDirectoryInfo |
getFileDirectoryInfo(String title)
Select a particular file directory info row based on the title.
|
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 |
isContentUploadedSucessful(String contentName)
Check the uploaded content has uploaded successfully
|
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 |
isMessagePresent(DocumentLibraryPage.Optype optype) |
boolean |
isShouldHaveFiles() |
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() |
DocumentLibraryPage |
render(long time) |
DocumentLibraryPage |
render(org.alfresco.webdrone.RenderTime timer) |
DocumentLibraryPage |
selectDetailedView()
Selects the Detailed View of the Document Library.
|
protected org.openqa.selenium.WebElement |
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.
|
void |
setContentName(String contentName) |
void |
setShouldHaveFiles(boolean shouldHaveFiles) |
getSiteNav, isSite, isSitePagebasicRender, canResume, canResume, disbaleFileUploadFlash, elementRender, findButton, getCopyRight, getElementText, getLogin, getNav, getPageTitle, getPopupRendertime, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExists, setAlfrescoVersion, setElementWaitInSeconds, setPopupRendertime, submit, waitForFile, waitForFile, waitForFilepublic static final String FILES_AND_DOCUMENTS_TABLE_CSS
public DocumentLibraryPage(org.alfresco.webdrone.WebDrone drone,
String subfolderName)
public DocumentLibraryPage(org.alfresco.webdrone.WebDrone drone)
public String getContentName()
public void setContentName(String contentName)
public DocumentLibraryPage render(org.alfresco.webdrone.RenderTime timer)
public boolean paginatorRendered()
public boolean isSubFolderDocLib(String name)
public DocumentLibraryPage render()
public DocumentLibraryPage render(long time)
public 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 org.openqa.selenium.WebElement selectEntry(String title)
public 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 org.alfresco.webdrone.HtmlPage deleteItem(String name)
name - String identifierpublic org.alfresco.webdrone.HtmlPage deleteItem(int number)
name - String identifierpublic FileDirectoryInfo getContentRow(String name)
WebDrone - dronename - String content name identifierShareContentRowpublic DocumentLibraryPage clickOnTagNameUnderTagsTreeMenuOnDocumentLibrary(String tagName)
tagName - DocumentLibraryPagepublic List<String> getAllTagNames()
public DocumentLibraryPage selectDetailedView()
DocumentLibraryPagepublic boolean isContentUploadedSucessful(String contentName)
- - Stringpublic FileDirectoryInfo getFileDirectoryInfo(Integer number)
number - Integer item rowFileDirectoryInfo page responsepublic FileDirectoryInfo getFileDirectoryInfo(String title)
title - String item titleFileDirectoryInfo page responsepublic boolean isShouldHaveFiles()
public void setShouldHaveFiles(boolean shouldHaveFiles)
public boolean isMessagePresent(DocumentLibraryPage.Optype optype)
optype - Copyright © 2013. All Rights Reserved.