org.alfresco.webdrone.share
Class FactorySharePage

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

public class FactorySharePage
extends Object

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

Author:
Michael Suzuki

Constructor Summary
FactorySharePage()
           
 
Method Summary
static CreateSitePage createSite(WebDrone drone)
          Create site pop up page object.
static UpdateFilePage getFileUpdate(WebDrone drone, String version)
          File upload page pop up object.
static UploadFilePage getFileUpload(WebDrone drone)
          File upload page pop up object.
static SharePage getPage(WebDrone drone)
          Creates the appropriate page object based on the current page the WebDriver browser is viewing.
static String getPageName(String url)
          Extracts the String value from the last occurrence of slash in the url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactorySharePage

public FactorySharePage()
Method Detail

getPage

public static SharePage getPage(WebDrone drone)
                         throws PageException
Creates the appropriate page object based on the current page the WebDriver browser is viewing.

Parameters:
driver - WebDrone Alfresco browser client
Returns:
SharePage the page object response
Throws:
Exception
PageException

getFileUpload

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

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

getFileUpdate

public static final UpdateFilePage getFileUpdate(WebDrone drone,
                                                 String version)
                                          throws PageException
File upload page pop up object.

Parameters:
drone - WebDrone browser client
String - version number of the original document
Returns:
SharePage page object response
Throws:
PageException

createSite

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

Parameters:
driver - WebDriver browser client
Returns:
SharePage page object response
Throws:
PageException

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


Copyright © 2012. All Rights Reserved.