org.alfresco.webdrone.share.site.document
Class EditDocumentPropertiesPage

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

public class EditDocumentPropertiesPage
extends AbstractEditProperties

Edit document properties page object, holds all element of the HTML page relating to share's edit document properties page.

Since:
1.3.1
Author:
Michael Suzuki

Field Summary
 
Fields inherited from class org.alfresco.webdrone.share.site.document.AbstractEditProperties
BUTTON_SELECT_TAG, INPUT_AUTHOR_SELECTOR, INPUT_DESCRIPTION_SELECTOR, INPUT_NAME_SELECTOR, INPUT_ORIENTATION_SELECTOR, INPUT_RESOLUTION_UNIT_SELECTOR, INPUT_TITLE_SELECTOR, INPUT_VERTICAL_RESOLUTION_SELECTOR
 
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
  EditDocumentPropertiesPage(WebDrone drone)
           
protected EditDocumentPropertiesPage(WebDrone drone, String tagName)
           
 
Method Summary
 String getAuthor()
          Get value seen on the author input value.
protected  String getMimeType()
          Get the value of selected mime type
 String getOrientation()
          Get value seen on the orientation input value.
 String getResolutionUnit()
          Get value seen on the resolution unit input value.
 String getVerticalResolution()
          Get value seen on the vertical resolution unit input value.
 boolean hasTags()
          Check if tags are attached to the particular document value.
 boolean isEditPropertiesVisible()
          Verify if edit properties element, that contains the form is visible.
 EditDocumentPropertiesPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 EditDocumentPropertiesPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 EditDocumentPropertiesPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
protected  DocumentDetailsPage selectCancel()
          Select cancel button.
 void selectMimeType(String mimeType)
          Selects a mime type from the dropdown by matching the option displayed with the mimeType input.
 DocumentDetailsPage selectSave()
          Clicks on save button.
 void setAuthor(String author)
          Enters a value in to the properties form.
 void setOrientation(String orientation)
          Enters a value in to the properties form.
 void setResolutionUnit(String unit)
          Enters a value in to the properties form.
 void setVerticalResolution(String verticalResolution)
          Enters a value in to the properties form.
 
Methods inherited from class org.alfresco.webdrone.share.site.document.AbstractEditProperties
clickOnCancel, clickSave, getDescription, getDocumentTitle, getName, getTag, getValue, setDescription, setDocumentTitle, setInput, setName
 
Methods inherited from class org.alfresco.webdrone.share.site.SitePage
getSiteNav, isSite, isSitePage
 
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

EditDocumentPropertiesPage

protected EditDocumentPropertiesPage(WebDrone drone,
                                     String tagName)

EditDocumentPropertiesPage

public EditDocumentPropertiesPage(WebDrone drone)
Method Detail

render

public EditDocumentPropertiesPage 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 EditDocumentPropertiesPage 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

render

public EditDocumentPropertiesPage 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

isEditPropertiesVisible

public boolean isEditPropertiesVisible()
Verify if edit properties element, that contains the form is visible.

Returns:
true if displayed

getAuthor

public String getAuthor()
Get value seen on the author input value.


setAuthor

public void setAuthor(String author)
Enters a value in to the properties form.

Parameters:
author - String name input

hasTags

public boolean hasTags()
Check if tags are attached to the particular document value.

Returns:
true if tag elements are displayed

getResolutionUnit

public String getResolutionUnit()
Get value seen on the resolution unit input value.


setResolutionUnit

public void setResolutionUnit(String unit)
Enters a value in to the properties form.

Parameters:
unit - String name input

getVerticalResolution

public String getVerticalResolution()
Get value seen on the vertical resolution unit input value.


setVerticalResolution

public void setVerticalResolution(String verticalResolution)
Enters a value in to the properties form.

Parameters:
verticalResolution - String name input

getOrientation

public String getOrientation()
Get value seen on the orientation input value.


setOrientation

public void setOrientation(String orientation)
Enters a value in to the properties form.

Parameters:
orientation - String name input

getMimeType

protected String getMimeType()
Get the value of selected mime type

Returns:
String value of select mime type

selectMimeType

public void selectMimeType(String mimeType)
Selects a mime type from the dropdown by matching the option displayed with the mimeType input.

Parameters:
mimeType - String identifier as seen on the dropdown

selectSave

public DocumentDetailsPage selectSave()
Clicks on save button.

Returns:
DocumentDetailsPage page response

selectCancel

protected DocumentDetailsPage selectCancel()
Select cancel button.

Returns:
DocumentDetailsPage page response


Copyright © 2013. All Rights Reserved.