org.alfresco.webdrone.share
Class FactorySharePage

java.lang.Object
  extended by org.alfresco.webdrone.share.FactorySharePage

public final class FactorySharePage
extends Object

Alfresco Share factory, creates the appropriate page object that corresponds to the browser view.

Author:
Michael Suzuki

Field Summary
static String DOCUMENTLIBRARY
           
 
Method Summary
static CreateSitePage createSite(WebDrone drone)
          Create site pop up page object.
static UpdateFilePage getFileUpdate(WebDrone drone, String version, boolean editOffLine)
          File upload page pop up object.
static UploadFilePage getFileUpload(WebDrone drone)
          File upload page pop up object.
static NewFolderPage getNewFolderPage(WebDrone drone)
          New folder page pop up object.
static SharePage getPage(WebDrone drone)
          Creates the appropriate page object based on the current page the WebDrone is on.
static String getPageName(String url)
          Extracts the String value from the last occurrence of slash in the url.
static boolean isDocumentLibraryPage(String pageName)
          Checks if pageName is document library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENTLIBRARY

public static final String DOCUMENTLIBRARY
See Also:
Constant Field Values
Method Detail

getPage

public static SharePage getPage(WebDrone drone)
Creates the appropriate page object based on the current page the WebDrone is on.

Parameters:
drone - WebDrone Alfresco unmanned web browser client
Returns:
SharePage the page object response

getFileUpload

public static UploadFilePage getFileUpload(WebDrone drone)
File upload page pop up object.

Parameters:
drone - WebDrone browser client
Returns:
SharePage page object response

getFileUpdate

public static UpdateFilePage getFileUpdate(WebDrone drone,
                                           String version,
                                           boolean editOffLine)
File upload page pop up object.

Parameters:
drone - WebDrone browser client
version - the number of the original document
editOffLine - mode status
Returns:
UpdateFilePage page object response

createSite

public static CreateSitePage createSite(WebDrone drone)
Create site pop up page object.

Parameters:
drone - WebDrone
Returns:
SharePage page object response

isDocumentLibraryPage

public static boolean isDocumentLibraryPage(String pageName)
Checks if pageName is document library.

Parameters:
pageName - current page name
Returns:
true if match document library page id

getPageName

public static final String getPageName(String url)
Extracts the String value from the last occurrence of slash in the url.

Parameters:
url - String url.
Returns:
String page title

getNewFolderPage

public static NewFolderPage getNewFolderPage(WebDrone drone)
New folder page pop up object.

Parameters:
drone - WebDrone browser client
Returns:
NewFolderPage page object response


Copyright © 2013. All Rights Reserved.