org.alfresco.webdrone.share.site
Class UpdateFilePage

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.site.UpdateFilePage
All Implemented Interfaces:
HtmlPage, Render

public class UpdateFilePage
extends SharePage

Upload file page object, holds all element of the html page relating to share's upload file page in site.

Since:
1.0
Author:
Michael Suzuki

Field Summary
 
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
UpdateFilePage(WebDrone drone, String documentVersion, boolean editOffline)
          Constructor.
 
Method Summary
 UpdateFilePage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 UpdateFilePage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 UpdateFilePage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 void selectMajorVersionChange()
          Select the major version tick box.
 void selectMinorVersionChange()
          Select the minor version tick box.
 void setComment(String comment)
          Sets the comment in the comments field
 DocumentDetailsPage submit()
          Clicks on the submit upload button.
 void uploadFile(String filePath)
          Uploads a file by entering the file location into the input field and submitting the form.
 
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
 

Constructor Detail

UpdateFilePage

public UpdateFilePage(WebDrone drone,
                      String documentVersion,
                      boolean editOffline)
Constructor.

Method Detail

render

public UpdateFilePage render(RenderTime timer)
Description copied from interface: Render
Page renderer verifies the page has rendered by checking all elements are visible and loaded. To verify this assertion every page object that implements the method will contain logic to determine if the page has loaded completely in the given time set by the RenderTime.

Parameters:
timer - RenderTime time to wait
Returns:
HtmlPage page object response

render

public UpdateFilePage render()
Description copied from interface: Render
Page renderer verifies the page has rendered by checking java script page loaded status is complete.

Returns:
HtmlPage object response

render

public UpdateFilePage render(long time)
Description copied from interface: Render
Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.

Parameters:
time - waiting time
Returns:
HtmlPage page object response

selectMinorVersionChange

public void selectMinorVersionChange()
Select the minor version tick box.


selectMajorVersionChange

public void selectMajorVersionChange()
Select the major version tick box.


submit

public DocumentDetailsPage submit()
Clicks on the submit upload button.


uploadFile

public void uploadFile(String filePath)
Uploads a file by entering the file location into the input field and submitting the form.

Parameters:
filePath - String file location to upload

setComment

public void setComment(String comment)
Sets the comment in the comments field

Parameters:
comment - String of user comment.


Copyright © 2013. All Rights Reserved.