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, Render
Direct Known Subclasses:
EditDocumentPropertiesPage, EditDocumentPropertiesPopup, TagPage

public abstract class AbstractEditProperties
extends SitePage

Abstract of edit properties

Since:
1.4
Author:
Michael Suzuki

Field Summary
protected static org.openqa.selenium.By BUTTON_SELECT_TAG
           
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
 void clickOnCancel()
          Select cancel button.
 void clickSave()
          Selects the save button that triggers the form submition.
 String getDescription()
          Get value seen on the description input value.
 String getDocumentTitle()
          Get value seen on the title input value.
 String getName()
          Get the String value of name input value.
 TagPage getTag()
          Click on Select button to go to Tag page
protected  String getValue(org.openqa.selenium.By by)
          Gets the value of the input field
 void setDescription(String description)
          Enters a value in to the properties form.
 void setDocumentTitle(String title)
          Enters a value in to the properties form.
 void setInput(org.openqa.selenium.WebElement input, String value)
          Clear the input field and inserts the new value.
 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, 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
 
Methods inherited from interface org.alfresco.webdrone.Render
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

BUTTON_SELECT_TAG

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

AbstractEditProperties

protected AbstractEditProperties(WebDrone drone)
Method Detail

setInput

public 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

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


setName

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

Parameters:
name - String name input

getDocumentTitle

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


setDocumentTitle

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

Parameters:
title - String name input

getDescription

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


setDescription

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

Parameters:
description - String name input

getTag

public TagPage getTag()
Click on Select button to go to Tag page

Returns:
TagPage

clickOnCancel

public void clickOnCancel()
Select cancel button.


clickSave

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



Copyright © 2013. All Rights Reserved.