|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.alfresco.webdrone.Page
org.alfresco.webdrone.share.SharePage
org.alfresco.webdrone.share.search.Search
org.alfresco.webdrone.share.search.SearchResultsPage
public class SearchResultsPage
Search results page object, holds all element of the html page relating to share's search results.
| Field Summary |
|---|
| Fields inherited from class org.alfresco.webdrone.Page |
|---|
DEFAULT_PAGE_LOADING_TIME_WAIT, drone, version |
| Constructor Summary | |
|---|---|
SearchResultsPage(WebDrone drone)
Constructor. |
|
| Method Summary | |
|---|---|
int |
count()
Gets number of results displayed on the page. |
protected HtmlPage |
doSearch(String text)
Enters the search text and submits the from on basic search page form. |
boolean |
hasResults()
Verify search yielded results. |
HtmlPage |
onlyOnSite(String text)
Selects search within a specific site and performs the search, |
HtmlPage |
onRepository(String text)
Select repository option search and performs search against repository. |
SearchResultsPage |
render()
Page renderer verifies the page has rendered by checking java script page loaded status is complete. |
SearchResultsPage |
render(long time)
Page renderer verifies the page has rendered by checking all elements are visible and loaded by the max limit time set. |
SearchResultsPage |
render(RenderTime timer)
Page renderer verifies the page has rendered by checking all elements are visible and loaded. |
HtmlPage |
searchOnAllSites(String text)
Selects All sites option and searches against all sites in alfresco share. |
String |
searchType()
Gets the search type description on the search that has been performed. |
HtmlPage |
selectFirstResult()
Selects the first result from page. |
| Methods inherited from class org.alfresco.webdrone.share.search.Search |
|---|
search |
| Methods inherited from class org.alfresco.webdrone.share.SharePage |
|---|
basicRender, disbaleFileUploadFlash, findButton, getLogin, getNav, getPageTitle, getSearch, isLogoPresent, isTitlePresent, panelExists |
| Methods inherited from class org.alfresco.webdrone.Page |
|---|
close, getScreenShot, getTitle, isBrowserTitle |
| 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 |
|---|
close, getTitle |
| Constructor Detail |
|---|
public SearchResultsPage(WebDrone drone)
| Method Detail |
|---|
public SearchResultsPage render(RenderTime timer)
throws PageException
HtmlPageRenderTime.
render in interface HtmlPagerender in class Searchtimer - RenderTime time to wait
HtmlPage page object response
PageException
public SearchResultsPage render()
throws PageException
HtmlPage
render in interface HtmlPagerender in class SearchHtmlPage object response
PageException
public SearchResultsPage render(long time)
throws PageException
HtmlPage
render in interface HtmlPagerender in class SearchHtmlPage page object response
PageExceptionpublic boolean hasResults()
InterruptedExceptionpublic int count()
InterruptedException
public HtmlPage selectFirstResult()
throws Exception
Exception
public HtmlPage onlyOnSite(String text)
throws Exception
siteId - String site name
Exception - if error
public HtmlPage searchOnAllSites(String text)
throws Exception
text - String search text
Exception - if error
public HtmlPage onRepository(String text)
throws Exception
text - String search text
Exception - if error
protected HtmlPage doSearch(String text)
throws Exception
text - String search text
Exception - if errorpublic String searchType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||