public class SearchResultsPage extends SearchPage
WAIT_TIME_3000drone, maxPageLoadingTime, version| Constructor and Description |
|---|
SearchResultsPage(WebDrone drone)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
searchbasicRender, canResume, canResume, disbaleFileUploadFlash, findButton, getCopyRight, getLogin, getNav, getPageTitle, getSearch, isLoggedIn, isLogoPresent, isTitlePresent, panelExistsclose, getDrone, getScreenShot, getTitle, isBrowserTitle, toStringpublic SearchResultsPage(WebDrone drone)
public SearchResultsPage render(RenderTime timer)
HtmlPageRenderTime.render in interface HtmlPagerender in class SearchPagetimer - RenderTime time to waitHtmlPage page object responsepublic SearchResultsPage render()
HtmlPagerender in interface HtmlPagerender in class SearchPageHtmlPage object responsepublic SearchResultsPage render(long time)
HtmlPagerender in interface HtmlPagerender in class SearchPagetime - waiting timeHtmlPage page object responsepublic boolean hasResults()
public boolean paginationDisplayed()
public int count()
public HtmlPage selectFirstResult()
public HtmlPage selectOnlyOnSite(String text)
text - String to searchpublic HtmlPage selectOnAllSites(String text)
text - String search textpublic HtmlPage selectRepository()
text - String search textprotected HtmlPage doSearch(String text)
text - String search textpublic 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 positionpublic List<SearchResultItem> getResults()
public HtmlPage selectItem(String title)
title - String Search result item titleHtmlPage page responseCopyright © 2013. All Rights Reserved.