org.alfresco.webdrone
Class Page
java.lang.Object
org.alfresco.webdrone.Page
- All Implemented Interfaces:
- HtmlPage
- Direct Known Subclasses:
- SharePage
public abstract class Page
- extends Object
- implements HtmlPage
Abstract HTML page.
- Author:
- Michael Suzuki
maxPageLoadingTime
protected long maxPageLoadingTime
version
protected AlfrescoVersion version
drone
protected WebDrone drone
Page
protected Page(WebDrone drone)
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.