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

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
All Implemented Interfaces:
HtmlPage
Direct Known Subclasses:
EditDocumentPropertiesPage, EditDocumentPropertiesPopup

public abstract class AbstractEditProperties
extends SitePage

Abstract of edit properties

Since:
1.4
Author:
Michael Suzuki

Field Summary
protected static org.openqa.selenium.By INPUT_AUTHOR_SELECTOR
           
protected static org.openqa.selenium.By INPUT_DESCRIPTION_SELECTOR
           
protected static org.openqa.selenium.By INPUT_NAME_SELECTOR
           
protected static org.openqa.selenium.By INPUT_ORIENTATION_SELECTOR
           
protected static org.openqa.selenium.By INPUT_RESOLUTION_UNIT_SELECTOR
           
protected static org.openqa.selenium.By INPUT_TITLE_SELECTOR
           
protected static org.openqa.selenium.By 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
protected AbstractEditProperties(WebDrone drone)
           
 
Method Summary
protected  void clickOnCancel()
          Select cancel button.
protected  void clickSave()
          Selects the save button that triggers the form submition.
protected  String getDescription()
          Get value seen on the description input value.
protected  String getDocumentTitle()
          Get value seen on the title input value.
protected  String getName()
          Get the String value of name input value.
protected  String getValue(org.openqa.selenium.By by)
          Gets the value of the input field
protected  void setDescription(String description)
          Enters a value in to the properties form.
protected  void setDocumentTitle(String title)
          Enters a value in to the properties form.
protected  void setInput(org.openqa.selenium.WebElement input, String value)
          Clear the input field and inserts the new value.
protected  void setName(String name)
          Enters a value in to the properties form.
 
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, 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
 
Methods inherited from interface org.alfresco.webdrone.HtmlPage
render, render, render
 

Field Detail

INPUT_NAME_SELECTOR

protected static final org.openqa.selenium.By INPUT_NAME_SELECTOR

INPUT_TITLE_SELECTOR

protected static final org.openqa.selenium.By INPUT_TITLE_SELECTOR

INPUT_DESCRIPTION_SELECTOR

protected static final org.openqa.selenium.By INPUT_DESCRIPTION_SELECTOR

INPUT_AUTHOR_SELECTOR

protected static final org.openqa.selenium.By INPUT_AUTHOR_SELECTOR

INPUT_RESOLUTION_UNIT_SELECTOR

protected static final org.openqa.selenium.By INPUT_RESOLUTION_UNIT_SELECTOR

INPUT_VERTICAL_RESOLUTION_SELECTOR

protected static final org.openqa.selenium.By INPUT_VERTICAL_RESOLUTION_SELECTOR

INPUT_ORIENTATION_SELECTOR

protected static final org.openqa.selenium.By INPUT_ORIENTATION_SELECTOR
Constructor Detail

AbstractEditProperties

protected AbstractEditProperties(WebDrone drone)
Method Detail

setInput

protected void setInput(org.openqa.selenium.WebElement input,
                        String value)
Clear the input field and inserts the new value.

Parameters:
input - WebElement represents the form input
value - String input value to enter

getValue

protected String getValue(org.openqa.selenium.By by)
Gets the value of the input field

Parameters:
by - input field descriptor
Returns:
String input value

getName

protected String getName()
Get the String value of name input value.


setName

protected void setName(String name)
Enters a value in to the properties form.

Parameters:
name - String name input

getDocumentTitle

protected String getDocumentTitle()
Get value seen on the title input value.


setDocumentTitle

protected void setDocumentTitle(String title)
Enters a value in to the properties form.

Parameters:
title - String name input

getDescription

protected String getDescription()
Get value seen on the description input value.


setDescription

protected void setDescription(String description)
Enters a value in to the properties form.

Parameters:
description - String name input

clickOnCancel

protected void clickOnCancel()
Select cancel button.


clickSave

protected void clickSave()
Selects the save button that triggers the form submition.



Copyright © 2013. All Rights Reserved.