|
||||||||||
| 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.DocumentDetailsPage
public class DocumentDetailsPage
Site document library page object, holds all element of the HTML page relating to share's site document library page.
| Field Summary | |
|---|---|
protected static String |
ACTION_SET_ID
|
protected static String |
CHECKEDOUT_MESSAGE_PLACEHOLDER
|
static String |
DOCUMENT_VERSION_PLACEHOLDER
|
| 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 | |
|---|---|
DocumentDetailsPage(WebDrone drone)
Constructor |
|
DocumentDetailsPage(WebDrone drone,
String previousVersion)
Constructor |
|
| Method Summary | |
|---|---|
DocumentDetailsPage |
addComment(String comment)
Adding a comment to a document by selecting add to prompt the input field, as this is based on a rich editor JavaScript was used to enter the comment. |
DocumentDetailsPage |
clickOnDownloadLinkForUnsupportedDocument()
Clicks on download link when no preview message is displayed for unsupported document. |
DocumentLibraryPage |
delete()
Mimics the action of deleting a document detail. |
Integer |
getCommentCount()
The number of comments value displayed on the span comment count. |
List<String> |
getComments()
Get all the comments that are displayed on the page. |
String |
getCommentsOfLastCommit()
Get the comments of the last commit from the revision history panel |
String |
getDocumentSize()
Get the file size from the properties section of the document details page. |
String |
getDocumentTitle()
Gets the document detail title. |
String |
getDocumentVersion()
Gets document version value from top of the details page |
String |
getLikeCount()
Checks for the number of positive votes. |
Map<String,String> |
getProperties()
Get the document properties from view. |
org.openqa.selenium.WebElement |
getRevisionPanel()
Locates the revision history DIV. |
List<String> |
getTagList()
Get the tags displayed on the tags section on the document details page. |
String |
getToolTipForFavourite()
Gets the Tool Tip for Favourites action on the document page. |
String |
getToolTipForLike()
Gets the Tool Tip Like action on the document page. |
boolean |
isCheckedOut()
Verifies if document is locked for offline editing. |
boolean |
isDocumentDetailsPage()
Verify if the page viewed is the document details page. |
boolean |
isEditOfflineDisplayed()
Check for edit offline banner that appears on the top of the page when document is locked by edit off line. |
boolean |
isEditOfflineLinkDisplayed()
Verify if the action to edit offline is available |
boolean |
isFavourite()
Gets the Favourites status on the document page. |
boolean |
isLiked()
Gets the Like status on the document page. |
boolean |
isNoPreviewMessageDisplayed()
Gets the No Preview Message on the document page. |
boolean |
isUploadNewVersionDisplayed()
Verify if button on version history view is displayed |
DocumentDetailsPage |
removeComment(String comment)
Removes the comment on document detail page. |
DocumentDetailsPage |
render()
Page renderer verifies the page has rendered by checking java script page loaded status is complete. |
DocumentDetailsPage |
render(long time)
Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set. |
DocumentDetailsPage |
render(RenderTime timer)
Verifies if the page has rendered completely by checking the page load is complete and in addition it will observe key HTML elements have rendered. |
HtmlPage |
selectDownload(File file)
Downloads the document shown by the current page, optionally doing it by clicking the link in the browser (no control) or by doing a URL-based download. |
HtmlPage |
selectEditOffLine(File file)
Select the edit off line link. |
EditDocumentPropertiesPage |
selectEditProperties()
Mimics the action of selecting edit properties on the document details page. |
DocumentDetailsPage |
selectFavourite()
Mimics the action of selecting the Favourite icon on the document page. |
InlineEditPage |
selectInlineEdit()
Mimics the action of selecting In Line Edit. |
DocumentDetailsPage |
selectLike()
Mimics the action of selecting the thumbs up icon on the document page. |
SelectAspectsPage |
selectManageAspects()
Mimics the action of select the manage aspects. |
UpdateFilePage |
selectUploadNewVersion()
Mimics the action of clicking on the upload new version button. |
| 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 |
|---|
protected static final String CHECKEDOUT_MESSAGE_PLACEHOLDER
protected static final String ACTION_SET_ID
public static final String DOCUMENT_VERSION_PLACEHOLDER
| Constructor Detail |
|---|
public DocumentDetailsPage(WebDrone drone)
public DocumentDetailsPage(WebDrone drone,
String previousVersion)
| Method Detail |
|---|
public DocumentDetailsPage render(RenderTime timer)
timer - Max time to wait
DocumentDetailsPagepublic String getDocumentVersion()
public boolean isUploadNewVersionDisplayed()
public boolean isEditOfflineLinkDisplayed()
public boolean isEditOfflineDisplayed()
public DocumentDetailsPage render()
Render
HtmlPage object responsepublic DocumentDetailsPage render(long time)
Render
time - waiting time
HtmlPage page object responsepublic boolean isDocumentDetailsPage()
public DocumentLibraryPage delete()
public String getDocumentTitle()
public UpdateFilePage selectUploadNewVersion()
public org.openqa.selenium.WebElement getRevisionPanel()
WebElement represent revision historypublic String getCommentsOfLastCommit()
public DocumentDetailsPage addComment(String comment)
comment - String user comment
HtmlPage page responsepublic Integer getCommentCount()
Integer total number of commentspublic List<String> getComments()
public DocumentDetailsPage selectLike()
public String getLikeCount()
public DocumentDetailsPage removeComment(String comment)
comment - to remove
public boolean isCheckedOut()
public HtmlPage selectEditOffLine(File file)
HtmlPage edit off line page.public SelectAspectsPage selectManageAspects()
SelectAspectsPagepublic InlineEditPage selectInlineEdit()
InlineEditPagepublic HtmlPage selectDownload(File file)
file - optional file to download to. When given
the link will not be clicked but the
file will be downloaded directly from the server.
HtmlPage page responsepublic String getDocumentSize()
public Map<String,String> getProperties()
DocumentProperties valuepublic EditDocumentPropertiesPage selectEditProperties()
public List<String> getTagList()
public DocumentDetailsPage selectFavourite()
DocumentDetailsPagepublic boolean isFavourite()
public boolean isLiked()
public String getToolTipForFavourite()
public String getToolTipForLike()
public boolean isNoPreviewMessageDisplayed()
public DocumentDetailsPage clickOnDownloadLinkForUnsupportedDocument()
DocumentDetailsPage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||