org.alfresco.webdrone
Class Page

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

public abstract class Page
extends Object
implements HtmlPage

Abstract HTML page.

Author:
Michael Suzuki

Field Summary
protected  WebDrone drone
           
protected  long maxPageLoadingTime
           
protected  AlfrescoVersion version
           
 
Constructor Summary
protected Page(WebDrone drone)
           
 
Method Summary
 void close()
          Closes the browser.
 WebDrone getDrone()
           
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.alfresco.webdrone.Render
render, render, render
 

Field Detail

maxPageLoadingTime

protected long maxPageLoadingTime

version

protected AlfrescoVersion version

drone

protected WebDrone drone
Constructor Detail

Page

protected Page(WebDrone drone)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

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

getDrone

public WebDrone getDrone()

getScreenShot

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

Returns:
File png image view of the page


Copyright © 2013. All Rights Reserved.