|
||||||||||
| 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.SearchResultsPage
public abstract 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.share.SharePage |
|---|
dojoSupport, WAIT_TIME_3000 |
| Fields inherited from class org.alfresco.webdrone.Page |
|---|
drone, maxPageLoadingTime, version |
| Constructor Summary | |
|---|---|
SearchResultsPage(WebDrone drone)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
completedSearch()
Resolves if searching message is displayed. |
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. |
int |
getPaginationPosition()
Displays the position the page is in the pagination, if there is only one page then it will return the value 1 |
List<SearchResultItem> |
getResults()
Gets the search results as a collection of SearResultItems. |
boolean |
hasNextPage()
Checks for next page button on the pagination bar. |
boolean |
hasPrevioudPage()
Checks for previous page button on the pagination bar. |
boolean |
hasResults()
Verify search yielded results. |
int |
paginationCount()
The total number of pages in pagination bar. |
boolean |
paginationDisplayed()
Verify pagination is displayed. |
HtmlPage |
paginationSelect(int position)
Selects and opens the paginated page based on the required position. |
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. |
protected void |
searchFor(String term)
Performs the search by entering the term into search field and submitting the search form on the result page. |
String |
searchType()
Gets the search type description on the search that has been performed. |
HtmlPage |
selectFirstResult()
Selects the first result from page. |
HtmlPage |
selectItem(Integer number)
Select a particular search result item link based on the count. |
HtmlPage |
selectItem(String title)
Select a particular search result item link based on the match of the title. |
HtmlPage |
selectNextPage()
Action of selecting next page on pagination bar. |
HtmlPage |
selectOnAllSites(String text)
Selects All sites option and searches against all sites in alfresco share. |
HtmlPage |
selectOnlyOnSite(String text)
Selects search within a specific site and performs the search, |
HtmlPage |
selectPreviousPage()
Action of selecting previous page on pagination bar. |
HtmlPage |
selectRepository()
Select repository option search and performs search against repository. |
| Methods inherited from class org.alfresco.webdrone.share.SharePage |
|---|
basicRender, canResume, canResume, disbaleFileUploadFlash, 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 |
|---|
public SearchResultsPage(WebDrone drone)
| Method Detail |
|---|
public SearchResultsPage render(RenderTime timer)
HtmlPageRenderTime.
timer - RenderTime time to wait
HtmlPage page object responsepublic SearchResultsPage render()
HtmlPage
HtmlPage object responsepublic SearchResultsPage render(long time)
HtmlPage
time - waiting time
HtmlPage page object responseprotected boolean completedSearch()
public boolean hasResults()
public boolean paginationDisplayed()
public int count()
public HtmlPage selectFirstResult()
public HtmlPage selectOnlyOnSite(String text)
text - String to search
public HtmlPage selectOnAllSites(String text)
text - String search text
public HtmlPage selectRepository()
text - String search text
protected HtmlPage doSearch(String text)
text - String search text
public String searchType()
public int getPaginationPosition()
public boolean hasNextPage()
public boolean hasPrevioudPage()
public HtmlPage selectNextPage()
public HtmlPage selectPreviousPage()
public int paginationCount()
public HtmlPage paginationSelect(int position)
int - pagination page position
public List<SearchResultItem> getResults()
public HtmlPage selectItem(String title)
title - String Search result item title
HtmlPage page responsepublic HtmlPage selectItem(Integer number)
number - Integer Search result item title
HtmlPage page responseprotected void searchFor(String term)
term - String term to search
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||