Package org.apache.wiki.pages.haddock
Class SearchResultsPage
java.lang.Object
org.apache.wiki.pages.haddock.SearchResultsPage
- All Implemented Interfaces:
HaddockPage,Page
Actions available on the Search Results page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnavigateTo(String result) Navigates to a view page from the search results.static SearchResultsPageOpen the search results page with a given query text to search for.Returns the search result page names.shouldContain(String... pageNames) Ensures that the given page names are present on the search results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.wiki.pages.haddock.HaddockPage
wikiPageContent, wikiTitle
-
Constructor Details
-
SearchResultsPage
public SearchResultsPage()
-
-
Method Details
-
open
Open the search results page with a given query text to search for.- Parameters:
pageName- Wiki page name to View.- Returns:
ViewWikiPageinstance, to allow chaining of actions.
-
pagesFound
Returns the search result page names.- Returns:
- the list of page names returned by the search query.
-
shouldContain
Ensures that the given page names are present on the search results.- Parameters:
pageNames- page names to look for.- Returns:
SearchResultsPageinstance, to allow chaining of actions.
-