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

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.CreateContentPage
All Implemented Interfaces:
HtmlPage, Render
Direct Known Subclasses:
InlineEditPage

public class CreateContentPage
extends SitePage

Create content page object, Where user can create content.

Since:
1.6.1
Author:
Shan Nagarajan

Field Summary
protected static org.openqa.selenium.By CONTENT
           
protected static org.openqa.selenium.By DESCRIPTION
           
protected static org.openqa.selenium.By NAME
           
protected static org.openqa.selenium.By SUBMIT_BUTTON
           
protected static org.openqa.selenium.By TITLE
           
 
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
CreateContentPage(WebDrone drone)
           
 
Method Summary
 DocumentDetailsPage create(ContentDetails details)
          Create the content with name, title and description.
 CreateContentPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 CreateContentPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 CreateContentPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 
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
 

Field Detail

NAME

protected static final org.openqa.selenium.By NAME

TITLE

protected static final org.openqa.selenium.By TITLE

DESCRIPTION

protected static final org.openqa.selenium.By DESCRIPTION

CONTENT

protected static final org.openqa.selenium.By CONTENT

SUBMIT_BUTTON

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

CreateContentPage

public CreateContentPage(WebDrone drone)
Method Detail

render

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

create

public DocumentDetailsPage create(ContentDetails details)
Create the content with name, title and description.

Parameters:
name - - The Name of the Document
title - - The Title of the Document
description - - Description
details - - Document Content
Returns:
DocumentDetailsPage


Copyright © 2013. All Rights Reserved.