org.alfresco.webdrone
Class WebDroneUtil

java.lang.Object
  extended by org.alfresco.webdrone.WebDroneUtil

public final class WebDroneUtil
extends Object

Utility to handle operations and actions relating to share sites.

Since:
1.0
Author:
Michael Suzuki

Method Summary
static HtmlPage loginAs(WebDrone drone, String url, String... userInfo)
          Logs user into share.
static void logout(WebDrone drone)
          Logs user out, by using a restful approach.
static void saveScreenShot(WebDrone drone, String methodName)
          Grabs and stores screen shot that is currently on view by the WebDrone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

logout

public static void logout(WebDrone drone)
Logs user out, by using a restful approach. This has been done as the UI has not labelled the logout with an id or css element to indicate a logout link.

Throws:
Exception

loginAs

public static HtmlPage loginAs(WebDrone drone,
                               String url,
                               String... userInfo)
                        throws PageException
Logs user into share.

Parameters:
drone - WebDrone
url - Share url
userInfo - username and password
Returns:
HtmlPage page response
Throws:
PageException - if error

saveScreenShot

public static void saveScreenShot(WebDrone drone,
                                  String methodName)
Grabs and stores screen shot that is currently on view by the WebDrone.

Parameters:
drone - WebDrone
methodName - file name identifier


Copyright © 2013. All Rights Reserved.