DEFAULT_PAGE_LOADING_TIME_WAIT, drone, version| Constructor and Description |
|---|
DocumentDetailsPage(WebDrone drone)
Constructor
|
DocumentDetailsPage(WebDrone drone,
Double documentVersion)
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 |
getDocumentTitle()
Gets the document detail title.
|
String |
getDocumentVersion()
Gets the version number of the document.
|
Double |
getDocumentVersion(RenderTime timer)
Gets document version value from top of the details page using a time and
a loop to ensure the value is found since it is expected to appear on the
page, if not it will throw time out error.
|
String |
getLikeCount()
Checks for the number of positive votes.
|
org.openqa.selenium.WebElement |
getRevisionPanel()
Locates the revision history DIV.
|
boolean |
isDocumentDetailsPage()
Verify if the page viewed is the document details 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.
|
DocumentDetailsPage |
selectLike()
Mimics the action of selecting the thumbs up icon on the document page.
|
UpdateFilePage |
uploadNewVersion()
Mimics the action of clicking on the upload a new version button.
|
getSiteNav, isSite, isSitePagebasicRender, disbaleFileUploadFlash, findButton, getCopyRight, getLogin, getNav, getPageTitle, getSearch, isLoggedIn, isLogoPresent, isTitlePresent, panelExistsclose, getDrone, getScreenShot, getTitle, isBrowserTitlepublic DocumentDetailsPage(WebDrone drone)
public DocumentDetailsPage render(RenderTime timer) throws PageException, PageRenderTimeException
timer - Max time to waitDocumentDetailsPagePageException - if page has not renderedPageRenderTimeExceptionpublic Double getDocumentVersion(RenderTime timer)
timer - RenderTimepublic boolean isUploadNewVersionDisplayed()
public DocumentDetailsPage render() throws PageException
HtmlPageHtmlPage object responsePageExceptionpublic DocumentDetailsPage render(long time) throws PageException
HtmlPagetime - waiting timeHtmlPage page object responsePageExceptionpublic boolean isDocumentDetailsPage()
public DocumentLibraryPage delete()
public String getDocumentTitle()
public String getDocumentVersion()
public UpdateFilePage uploadNewVersion() throws PageException
Exception - if errorPageExceptionpublic 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 removeCopyright © 2012. All Rights Reserved.