public abstract class SearchResultsPage extends SharePage
dojoSupport, PROMPT_PANEL_ID, WAIT_TIME_3000drone, elementWaitInSeconds, maxPageLoadingTime, popupRendertime, version| Constructor and Description |
|---|
SearchResultsPage(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.
|
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.
|
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.
|
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(int number)
Select a particular search result item link
based on the count, the accepted range is 1 onwards.
|
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.
|
List<String> |
sortListItemsDescription()
Function to get the description of All the sort items
|
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, getSearch, isJSMessageDisplayed, isLoggedIn, isLogoPresent, isTitlePresent, panelExists, submit, waitForFile, waitForFile, waitForFileclose, getDrone, getScreenShot, getTitle, isBrowserTitle, toStringpublic SearchResultsPage(WebDrone drone)
public SearchResultsPage render(RenderTime timer)
RenderRenderTime.timer - RenderTime time to waitHtmlPage page object responsepublic SearchResultsPage render()
RenderHtmlPage object responsepublic SearchResultsPage render(long time)
Rendertime - waiting timeHtmlPage 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 searchpublic HtmlPage selectOnAllSites(String text)
text - String search textpublic HtmlPage selectRepository()
text - String search textpublic 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 responsepublic HtmlPage selectItem(int number)
number - int Search result item indexHtmlPage page responseprotected void searchFor(String term)
term - String term to searchpublic HtmlPage goBackToAdvanceSearch()
public List<String> sortListItemsDescription()
Copyright © 2014. All rights reserved.