org.alfresco.webdrone
Class Page

java.lang.Object
  extended by org.alfresco.webdrone.Page
All Implemented Interfaces:
HtmlPage
Direct Known Subclasses:
MySitesDashlet, SharePage

public abstract class Page
extends Object
implements HtmlPage

Abstract HTML page.

Author:
Michael Suzuki

Field Summary
protected static long DEFAULT_PAGE_LOADING_TIME_WAIT
           
protected  WebDrone drone
           
protected  AlfrescoVersion version
           
 
Constructor Summary
protected Page(IWebDrone drone)
           
 
Method Summary
 void close()
          Closes the browser.
 File getScreenShot()
          Grabs a screen shot of currently displayed page.
 String getTitle()
          Gets the title of the html page as it appears on the browser header.
 boolean isBrowserTitle(String titleName)
          Helper method to verify if the current Browser page title contains the title name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.webdrone.HtmlPage
render, render, render
 

Field Detail

DEFAULT_PAGE_LOADING_TIME_WAIT

protected static final long DEFAULT_PAGE_LOADING_TIME_WAIT
See Also:
Constant Field Values

version

protected final AlfrescoVersion version

drone

protected final WebDrone drone
Constructor Detail

Page

protected Page(IWebDrone drone)
Method Detail

close

public void close()
Closes the browser.

Specified by:
close in interface HtmlPage

getTitle

public String getTitle()
Gets the title of the html page as it appears on the browser header.

Specified by:
getTitle in interface HtmlPage
Returns:
String page title

isBrowserTitle

public boolean isBrowserTitle(String titleName)
Helper method to verify if the current Browser page title contains the title name.

Parameters:
titleName - String partial title value
Returns:
true if page title contains title

getScreenShot

public File getScreenShot()
Grabs a screen shot of currently displayed page.

Returns:
File png image view of the page


Copyright © 2012. All Rights Reserved.