public class DocumentDetailsPage extends DetailsPage
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTION_SET_ID |
protected static String |
CHECKEDOUT_MESSAGE_PLACEHOLDER |
static String |
DOCUMENT_VERSION_PLACEHOLDER |
alfrescoVersion, dojoSupport, elementWaitInSeconds, popupRendertime, WAIT_TIME_3000| Constructor and Description |
|---|
DocumentDetailsPage(org.alfresco.webdrone.WebDrone drone)
Constructor
|
DocumentDetailsPage(org.alfresco.webdrone.WebDrone drone,
String previousVersion)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
DocumentDetailsPage |
clickOnDownloadLinkForUnsupportedDocument()
Clicks on download link when no preview message is displayed for
unsupported details.
|
DocumentLibraryPage |
delete()
Mimics the action of deleting a document detail.
|
org.alfresco.webdrone.HtmlPage |
editInGoogleDocs()
Public method to transfer control based to google docs based on how the
session gets initiated.
|
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
|
UpdateFilePage |
getFileUpdatePage(org.alfresco.webdrone.WebDrone drone,
String version,
boolean editOffLine)
File upload page pop up object.
|
String |
getLocationInCloud()
Method to get location in cloud
|
org.openqa.selenium.WebElement |
getRevisionPanel()
Locates the revision history DIV.
|
String |
getSyncStatus()
Method to get Sync Status
|
boolean |
isAddRecordMetaDataVisible()
Checked if add record metadata link is visibile.
|
boolean |
isCheckedOut()
Verifies if document is locked for off line editing.
|
boolean |
isDeclareRecordVisible()
Checked if declare record link is visibile.
|
boolean |
isDestAndAssigneeVisible()
Checks whether the cloud destination folder to sync page is displayed.
|
boolean |
isDocumentDetailsPage()
Verify if the page viewed is the document details page.
|
boolean |
isEditInGoogleDocsLinkVisible()
Verify if Link Edit in Google docs is visible.
|
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 |
isFileSyncSetUp()
Method to check if the file synced to the Cloud
|
boolean |
isHideRecordLinkDisplayed()
Checks if hide record link is displayed.
|
boolean |
isInlineEditLinkDisplayed()
Verify if the action to edit offline is available
|
boolean |
isNoPreviewMessageDisplayed()
Gets the No Preview Message on the document page.
|
boolean |
isPreviewDisplayed()
This test case needs flash player installed on linux box and till that it will be disabled.
|
boolean |
isRequestSyncIconDisplayed()
Method to check if "Request To Sync" icon is displayed in DocumentDetails page
|
boolean |
isResumeEditingInGoogleDocsLinkVisible()
Verify if Link Resume Editing in Google docs is visible.
|
boolean |
isSignUpDialogVisible()
Gets the No Preview Message on the document page.
|
boolean |
isSyncToCloudOptionDisplayed()
Checks weather the "Sync to Cloud" option is displayed
|
boolean |
isUploadNewVersionDisplayed()
Verify if button on version history view is displayed
|
DocumentDetailsPage |
render() |
DocumentDetailsPage |
render(long time) |
DocumentDetailsPage |
render(org.alfresco.webdrone.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.
|
org.alfresco.webdrone.HtmlPage |
resumeEditInGoogleDocs()
Public method to transfer control based to google docs based on how the
session gets initiated.
|
FilePlanPage |
selectDeclareRecod()
Mimics the action of selecting declare record.
|
org.alfresco.webdrone.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.
|
org.alfresco.webdrone.HtmlPage |
selectEditOffLine(File file)
Select the edit off line link.
|
EditTextDocumentPage |
selectInlineEdit()
Mimics the action of selecting In Line Edit.
|
RevertToVersionPage |
selectRevertToVersion(String versionNumber)
Method to revert the document to the specified version.
|
StartWorkFlowPage |
selectStartWorkFlowPage()
Mimics the action of clicking on the assign workflow link.
|
org.alfresco.webdrone.HtmlPage |
selectSyncToCloud()
Mimics the action of selecting the Sync to Cloud icon on the document
page.
|
org.alfresco.webdrone.HtmlPage |
selectSyncToCloud(boolean isCloudSyncSetUp)
Mimics the action of selecting the Sync to Cloud icon on the document page.
|
DocumentDetailsPage |
selectUnSyncFromCloud()
Mimics the action of selecting the UnSync from Cloud icon on the document
page.
|
UpdateFilePage |
selectUploadNewVersion()
Mimics the action of clicking on the upload new version button.
|
addComment, confirmDelete, getCommentCount, getComments, getContentPage, getContentTitle, getLikeCount, getPermissionsOfDetailsPage, getProperties, getSyncInfoPage, getTagList, getToolTipForFavourite, getToolTipForLike, isCommentLinkPresent, isDetailsPage, isFavourite, isLiked, isModifiedByDetailsPresent, isSharePanePresent, removeComment, selectEditProperties, selectFavourite, selectLike, selectManageAspects, selectManagePermissionsgetSiteNav, 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, waitForFileprotected static final String CHECKEDOUT_MESSAGE_PLACEHOLDER
protected static final String ACTION_SET_ID
public static final String DOCUMENT_VERSION_PLACEHOLDER
public DocumentDetailsPage(org.alfresco.webdrone.WebDrone drone)
public DocumentDetailsPage(org.alfresco.webdrone.WebDrone drone,
String previousVersion)
public DocumentDetailsPage render(org.alfresco.webdrone.RenderTime timer)
timer - Max time to waitDocumentDetailsPagepublic String getDocumentVersion()
public boolean isUploadNewVersionDisplayed()
public boolean isEditOfflineLinkDisplayed()
public boolean isEditOfflineDisplayed()
public DocumentDetailsPage render()
public DocumentDetailsPage render(long time)
public boolean isDocumentDetailsPage()
public DocumentLibraryPage delete()
public String getDocumentTitle()
public UpdateFilePage selectUploadNewVersion()
public UpdateFilePage getFileUpdatePage(org.alfresco.webdrone.WebDrone drone, String version, boolean editOffLine)
drone - WebDrone browser clientversion - the number of the original documenteditOffLine - mode statusUpdateFilePage page object responsepublic org.openqa.selenium.WebElement getRevisionPanel()
WebElement represent revision historypublic String getCommentsOfLastCommit()
public boolean isCheckedOut()
public org.alfresco.webdrone.HtmlPage selectEditOffLine(File file)
HtmlPage edit off line page.public EditTextDocumentPage selectInlineEdit()
InlineEditPagepublic org.alfresco.webdrone.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 boolean isPreviewDisplayed()
public boolean isNoPreviewMessageDisplayed()
public DocumentDetailsPage clickOnDownloadLinkForUnsupportedDocument()
DocumentDetailsPagepublic org.alfresco.webdrone.HtmlPage selectSyncToCloud()
DocumentDetailsPage else it returns DestinationAndAssigneePagepublic org.alfresco.webdrone.HtmlPage selectSyncToCloud(boolean isCloudSyncSetUp)
isCloudSyncSetUp - DocumentDetailsPage else it returns DestinationAndAssigneePagepublic boolean isSignUpDialogVisible()
public boolean isDestAndAssigneeVisible()
public DocumentDetailsPage selectUnSyncFromCloud()
DocumentDetailsPagepublic boolean isFileSyncSetUp()
public StartWorkFlowPage selectStartWorkFlowPage()
public boolean isSyncToCloudOptionDisplayed()
public org.alfresco.webdrone.HtmlPage editInGoogleDocs()
HtmlPage page responsepublic org.alfresco.webdrone.HtmlPage resumeEditInGoogleDocs()
HtmlPage page responsepublic boolean isEditInGoogleDocsLinkVisible()
public boolean isResumeEditingInGoogleDocsLinkVisible()
public boolean isInlineEditLinkDisplayed()
public boolean isDeclareRecordVisible()
public boolean isAddRecordMetaDataVisible()
public FilePlanPage selectDeclareRecod()
public boolean isHideRecordLinkDisplayed()
public String getSyncStatus()
public String getLocationInCloud()
public boolean isRequestSyncIconDisplayed()
public RevertToVersionPage selectRevertToVersion(String versionNumber)
versionNumber - Copyright © 2013. All Rights Reserved.