org.alfresco.webdrone
Interface HtmlPage

All Known Implementing Classes:
AdvanceSearchPage, ChangePasswordPage, CreateSitePage, DashBoardPage, DocumentDetailsPage, DocumentLibraryNavigation, DocumentLibraryPage, LoginPage, MyProfilePage, MySitesDashlet, MyTasksPage, Navigation, Page, PeopleFinderPage, RepositoryPage, Search, SearchResultsPage, SharePage, SiteDashboardPage, SiteFinderPage, SiteNavigation, SitePage, UpdateFilePage, UploadFilePage

public interface HtmlPage

An HTML page interface, the basic shell of an HTML page. Every page object renders itself by calling the render method which defines what Page object it is, up to that point it is treated as a generic page. The render signifies a response is required and will force the object to wait until all HTML elements specified in the render method are found and displayed.

Since:
1.0
Author:
Michael Suzuki

Method Summary
 void close()
          Close browser action.
 String getTitle()
          Page title.
<T extends HtmlPage>
T
render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
<T extends HtmlPage>
T
render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
<T extends HtmlPage>
T
render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 

Method Detail

getTitle

String getTitle()
Page title.

Returns:
String page title

close

void close()
Close browser action.


render

<T extends HtmlPage> T render(RenderTime timer)
                          throws PageException
Page renderer verifies the page has rendered by checking all elements are visible and loaded. To verify this assertion every page object that implements the method will contain logic to determine if the page has loaded completely in the given time set by the RenderTime.

Parameters:
timer - RenderTime time to wait
Returns:
HtmlPage page object response
Throws:
{@link - PageException} if error
PageException

render

<T extends HtmlPage> T render(long time)
                          throws PageException
Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.

Parameters:
timer - RenderTime time to wait
Returns:
HtmlPage page object response
Throws:
{@link - PageException} if error
PageException

render

<T extends HtmlPage> T render()
                          throws PageException
Page renderer verifies the page has rendered by checking java script page loaded status is complete.

Returns:
HtmlPage object response
Throws:
{@link - PageException} if error
PageException


Copyright © 2012. All Rights Reserved.