org.alfresco.webdrone
Class WebDroneUtil

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

public class WebDroneUtil
extends Object

Utility to handle operations and actions relating to share sites.

Since:
1.0
Author:
Michael Suzuki

Constructor Summary
WebDroneUtil()
           
 
Method Summary
static HtmlPage loginAs(IWebDrone drone, String url, String... userInfo)
           
static void logout(IWebDrone drone)
          Logs user out, by using a restful approach.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDroneUtil

public WebDroneUtil()
Method Detail

logout

public static void logout(IWebDrone drone)
                   throws Exception
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(IWebDrone drone,
                               String url,
                               String... userInfo)
                        throws PageException
Throws:
PageException


Copyright © 2012. All Rights Reserved.