Package org.xwiki.extension.test.po
Class SearchResultsPane
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.extension.test.po.SearchResultsPane
-
public class SearchResultsPane extends BaseElement
Represents the extension search results.- Since:
- 4.2M1
- Version:
- $Id: 7d39a605febaadefcbd6295f1fd58764870e19b7 $
-
-
Constructor Summary
Constructors Constructor Description SearchResultsPane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDisplayedResultsCount()
ExtensionPane
getExtension(int index)
Looks for the extension with the specified index in the search results.ExtensionPane
getExtension(String name, String version)
Looks for the specified extension on the current results page.ExtensionPane
getExtension(org.xwiki.extension.ExtensionId extensionId)
Looks for the specified extension on the current results page.String
getNoResultsMessage()
PaginationFilterPane
getPagination()
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
getPagination
public PaginationFilterPane getPagination()
- Returns:
- the search results pagination
-
getDisplayedResultsCount
public int getDisplayedResultsCount()
- Returns:
- the number of extensions displayed
-
getNoResultsMessage
public String getNoResultsMessage()
- Returns:
- the message displayed if there are no search results
-
getExtension
public ExtensionPane getExtension(String name, String version)
Looks for the specified extension on the current results page.- Parameters:
name
- the extension pretty nameversion
- the extension version- Returns:
- the pane displaying the specified extension,
null
if not found
-
getExtension
public ExtensionPane getExtension(org.xwiki.extension.ExtensionId extensionId)
Looks for the specified extension on the current results page.- Parameters:
extensionId
- the extension identifier- Returns:
- the pane displaying the specified extension,
null
if not found
-
getExtension
public ExtensionPane getExtension(int index)
Looks for the extension with the specified index in the search results.- Parameters:
index
- the 0-based index of the extension in the results- Returns:
- the pane displaying the specified extension
-
-