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 |
dojoSupport, PROMPT_PANEL_ID, WAIT_TIME_3000drone, elementWaitInSeconds, maxPageLoadingTime, popupRendertime, version| Constructor and Description |
|---|
DocumentLibraryPage(WebDrone drone) |
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.
|
HtmlPage |
deleteItem(int number)
Locates the file or folder and deletes it.
|
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()
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.
|
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, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExists, submit, waitForFile, waitForFile, waitForFileclose, getDrone, getScreenShot, getTitle, isBrowserTitle, toStringpublic static final String FILES_AND_DOCUMENTS_TABLE_CSS
public DocumentLibraryPage(WebDrone drone)
public String getContentName()
public void setContentName(String contentName)
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 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 HtmlPage deleteItem(String name)
name - String identifierpublic 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 © 2014. All rights reserved.