|
||||||||||
| 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 |
|---|
| Fields inherited from class org.alfresco.webdrone.Page |
|---|
DEFAULT_PAGE_LOADING_TIME_WAIT, drone, version |
| Constructor Summary | |
|---|---|
DocumentDetailsPage(WebDrone drone)
Constructor |
|
DocumentDetailsPage(WebDrone drone,
Double documentVersion)
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. |
DocumentLibraryPage |
delete()
Mimics the action of deleting a document detail. |
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. |
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. |
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. |
| Methods inherited from class org.alfresco.webdrone.share.site.SitePage |
|---|
getSiteNav, isSitePage |
| Methods inherited from class org.alfresco.webdrone.share.SharePage |
|---|
basicRender, disbaleFileUploadFlash, findButton, getLogin, getNav, getPageTitle, getSearch, isLogoPresent, isTitlePresent, panelExists |
| Methods inherited from class org.alfresco.webdrone.Page |
|---|
close, getScreenShot, getTitle, isBrowserTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentDetailsPage(WebDrone drone)
public DocumentDetailsPage(WebDrone drone,
Double documentVersion)
| Method Detail |
|---|
public DocumentDetailsPage render(RenderTime timer)
throws PageException,
PageRenderTimeException
timer - Max time to wait
DocumentDetailsPage
PageException - if page has not rendered
PageRenderTimeException
public DocumentDetailsPage render()
throws PageException
HtmlPage
HtmlPage object response
PageException
public DocumentDetailsPage render(long time)
throws PageException
HtmlPage
HtmlPage page object response
PageExceptionpublic boolean isDocumentDetailsPage()
public DocumentLibraryPage delete()
public String getDocumentTitle()
public String getDocumentVersion()
public UpdateFilePage uploadNewVersion()
throws Exception
Exception - if errorpublic org.openqa.selenium.WebElement getRevisionPanel()
WebElement represent revision historypublic String getCommentsOfLastCommit()
name - String the file namerevision - String version number
public DocumentDetailsPage addComment(String comment)
comment - String user comment
HtmlPage page responsepublic List<String> getComments()
public DocumentDetailsPage selectLike()
public String getLikeCount()
public DocumentDetailsPage removeComment(String comment)
string - comment to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||