org.alfresco.webdrone.share.search
Class RepositoryResultsPage

java.lang.Object
  extended by org.alfresco.webdrone.Page
      extended by org.alfresco.webdrone.share.SharePage
          extended by org.alfresco.webdrone.share.search.SearchResultsPage
              extended by org.alfresco.webdrone.share.search.RepositoryResultsPage
All Implemented Interfaces:
HtmlPage, Render

public class RepositoryResultsPage
extends SearchResultsPage

Repository search results page object, holds all element of the html page relating to search results. This is the same as the other search result page but has then specific render logic.

Since:
1.0
Author:
Michael Suzuki

Field Summary
 
Fields inherited from class org.alfresco.webdrone.share.SharePage
dojoSupport, WAIT_TIME_3000
 
Fields inherited from class org.alfresco.webdrone.Page
drone, maxPageLoadingTime, version
 
Constructor Summary
RepositoryResultsPage(WebDrone drone)
          Constructor.
 
Method Summary
 int getResultCount()
          Gets numeric string value indicating the number of search results found from the search query.
 RepositoryResultsPage render()
          Page renderer verifies the page has rendered by checking java script page loaded status is complete.
 RepositoryResultsPage render(long time)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.
 RepositoryResultsPage render(RenderTime timer)
          Page renderer verifies the page has rendered by checking all elements are visible and loaded.
 RepositoryResultsPage search(String term)
          Performs the search by entering the term into search field and submitting the search.
 
Methods inherited from class org.alfresco.webdrone.share.search.SearchResultsPage
completedSearch, count, doSearch, getPaginationPosition, getResults, goBackToAdvanceSearch, hasNextPage, hasPrevioudPage, hasResults, paginationCount, paginationDisplayed, paginationSelect, searchFor, searchType, selectFirstResult, selectItem, selectItem, selectNextPage, selectOnAllSites, selectOnlyOnSite, selectPreviousPage, selectRepository
 
Methods inherited from class org.alfresco.webdrone.share.SharePage
basicRender, canResume, canResume, disbaleFileUploadFlash, elementRender, findButton, getCopyRight, getLogin, getNav, getPageTitle, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExists
 
Methods inherited from class org.alfresco.webdrone.Page
close, getDrone, getScreenShot, getTitle, isBrowserTitle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositoryResultsPage

public RepositoryResultsPage(WebDrone drone)
Constructor.

Method Detail

render

public RepositoryResultsPage render(RenderTime timer)
Description copied from interface: Render
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.

Specified by:
render in interface Render
Overrides:
render in class SearchResultsPage
Parameters:
timer - RenderTime time to wait
Returns:
HtmlPage page object response

render

public RepositoryResultsPage render()
Description copied from interface: Render
Page renderer verifies the page has rendered by checking java script page loaded status is complete.

Specified by:
render in interface Render
Overrides:
render in class SearchResultsPage
Returns:
HtmlPage object response

render

public RepositoryResultsPage render(long time)
Description copied from interface: Render
Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set.

Specified by:
render in interface Render
Overrides:
render in class SearchResultsPage
Parameters:
time - waiting time
Returns:
HtmlPage page object response

search

public RepositoryResultsPage search(String term)
Performs the search by entering the term into search field and submitting the search.

Parameters:
term - String term to search
Returns:
RepositoryResultsPage page response

getResultCount

public int getResultCount()
Gets numeric string value indicating the number of search results found from the search query.

Returns:
numeric value of String displaying total result count


Copyright © 2013. All Rights Reserved.