public abstract class SearchResultsPage extends SharePage
alfrescoVersion, dojoSupport, elementWaitInSeconds, popupRendertime, PROMPT_PANEL_ID, WAIT_TIME_3000| Constructor and Description |
|---|
SearchResultsPage(org.alfresco.webdrone.WebDrone drone)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
completedSearch()
Resolves if searching message is displayed.
|
int |
count()
Gets number of results displayed on the page.
|
org.alfresco.webdrone.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.
|
org.alfresco.webdrone.HtmlPage |
goBackToAdvanceSearch()
Click on go to Advanced Search link.
|
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.
|
org.alfresco.webdrone.HtmlPage |
paginationSelect(int position)
Selects and opens the paginated page based on the
required position.
|
SearchResultsPage |
render() |
SearchResultsPage |
render(long time) |
SearchResultsPage |
render(org.alfresco.webdrone.RenderTime timer) |
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.
|
org.alfresco.webdrone.HtmlPage |
selectFirstResult()
Selects the first result from page.
|
org.alfresco.webdrone.HtmlPage |
selectItem(int number)
Select a particular search result item link
based on the count, the accepted range is 1 onwards.
|
org.alfresco.webdrone.HtmlPage |
selectItem(String title)
Select a particular search result item link
based on the match of the title.
|
org.alfresco.webdrone.HtmlPage |
selectNextPage()
Action of selecting next page on pagination bar.
|
org.alfresco.webdrone.HtmlPage |
selectOnAllSites(String text)
Selects All sites option and searches against all sites in alfresco
share.
|
org.alfresco.webdrone.HtmlPage |
selectOnlyOnSite(String text)
Selects search within a specific site and performs the search,
|
org.alfresco.webdrone.HtmlPage |
selectPreviousPage()
Action of selecting previous page on pagination bar.
|
org.alfresco.webdrone.HtmlPage |
selectRepository()
Select repository option search and performs search against repository.
|
List<String> |
sortListItemsDescription()
Function to get the description of All the sort items
|
org.alfresco.webdrone.HtmlPage |
sortPage(SortType sortType)
Sort the content and returning searchResults based on sort type passed.
|
basicRender, canResume, canResume, disbaleFileUploadFlash, elementRender, findButton, getCopyRight, getElementText, getLogin, getNav, getPageTitle, getPopupRendertime, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExists, setAlfrescoVersion, setElementWaitInSeconds, setPopupRendertime, submit, waitForFile, waitForFile, waitForFilepublic SearchResultsPage(org.alfresco.webdrone.WebDrone drone)
public SearchResultsPage render(org.alfresco.webdrone.RenderTime timer)
public SearchResultsPage render()
public SearchResultsPage render(long time)
protected boolean completedSearch()
public boolean hasResults()
public boolean paginationDisplayed()
public int count()
public org.alfresco.webdrone.HtmlPage selectFirstResult()
public org.alfresco.webdrone.HtmlPage selectOnlyOnSite(String text)
text - String to searchpublic org.alfresco.webdrone.HtmlPage selectOnAllSites(String text)
text - String search textpublic org.alfresco.webdrone.HtmlPage selectRepository()
text - String search textpublic org.alfresco.webdrone.HtmlPage doSearch(String text)
text - String search textpublic String searchType()
public int getPaginationPosition()
public boolean hasNextPage()
public boolean hasPrevioudPage()
public org.alfresco.webdrone.HtmlPage selectNextPage()
public org.alfresco.webdrone.HtmlPage selectPreviousPage()
public int paginationCount()
public org.alfresco.webdrone.HtmlPage paginationSelect(int position)
int - pagination page positionpublic List<SearchResultItem> getResults()
public org.alfresco.webdrone.HtmlPage selectItem(String title)
title - String Search result item titleHtmlPage page responsepublic org.alfresco.webdrone.HtmlPage selectItem(int number)
number - int Search result item indexHtmlPage page responseprotected void searchFor(String term)
term - String term to searchpublic org.alfresco.webdrone.HtmlPage goBackToAdvanceSearch()
public List<String> sortListItemsDescription()
Copyright © 2013. All Rights Reserved.