org.alfresco.webdrone
Interface IWebDrone

All Known Implementing Classes:
WebDrone

public interface IWebDrone


Method Summary
 AlfrescoVersion getAlfrescoVersion()
          Gets the AlfrescoVersion that is used.
 HtmlPage getCurrentPage()
          Gets the current page in the form of a page object based on the Alfresco site type.
 String getCurrentUrl()
          Get the URL displayed on the browser.
 String getElement(String key)
          Gets the HTML element id value for the given key.
 String getTitle()
          Title of the page.
 void navigateTo(String url)
          Navigate the browser to given URL.
 void quit()
          End Browser session.
 

Method Detail

quit

void quit()
End Browser session.


navigateTo

void navigateTo(String url)
Navigate the browser to given URL.

Parameters:
url - String URL

getCurrentPage

HtmlPage getCurrentPage()
                        throws PageException
Gets the current page in the form of a page object based on the Alfresco site type. If site type is of Share then the page returned will be a SharePage object.

Returns:
HtmlPage page object of current view
Throws:
{@link - PageException}
PageException

getElement

String getElement(String key)
Gets the HTML element id value for the given key.

Parameters:
key - String HTML element id
Returns:
String value of key

getCurrentUrl

String getCurrentUrl()
Get the URL displayed on the browser.

Returns:
String URL

getTitle

String getTitle()
Title of the page.


getAlfrescoVersion

AlfrescoVersion getAlfrescoVersion()
Gets the AlfrescoVersion that is used.

Returns:
AlfrescoVersion


Copyright © 2012. All Rights Reserved.