public class DocumentDetailsPage extends SitePage
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTION_SET_ID |
protected static String |
CHECKEDOUT_MESSAGE_PLACEHOLDER |
static String |
DOCUMENT_VERSION_PLACEHOLDER |
dojoSupport, WAIT_TIME_3000drone, maxPageLoadingTime, version| Constructor and Description |
|---|
DocumentDetailsPage(WebDrone drone)
Constructor
|
DocumentDetailsPage(WebDrone drone,
String previousVersion)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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 |
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 |
selectLike()
Mimics the action of selecting the thumbs up icon on the document page.
|
UpdateFilePage |
selectUploadNewVersion()
Mimics the action of clicking on the upload new version button.
|
getSiteNav, isSite, isSitePagebasicRender, canResume, canResume, disbaleFileUploadFlash, findButton, getCopyRight, getLogin, getNav, getPageTitle, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExistsclose, getDrone, getScreenShot, getTitle, isBrowserTitle, toStringprotected static final String CHECKEDOUT_MESSAGE_PLACEHOLDER
protected static final String ACTION_SET_ID
public static final String DOCUMENT_VERSION_PLACEHOLDER
public DocumentDetailsPage(WebDrone drone)
public DocumentDetailsPage render(RenderTime timer)
timer - Max time to waitDocumentDetailsPagepublic String getDocumentVersion()
public boolean isUploadNewVersionDisplayed()
public boolean isEditOfflineLinkDisplayed()
public boolean isEditOfflineDisplayed()
public DocumentDetailsPage render()
HtmlPageHtmlPage object responsepublic DocumentDetailsPage render(long time)
HtmlPagetime - waiting timeHtmlPage 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 commentHtmlPage 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 removepublic boolean isCheckedOut()
public HtmlPage selectEditOffLine(File file)
HtmlPage edit off line page.public 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()
Copyright © 2013. All Rights Reserved.