Package org.xwiki.extension.test.po
Class SimpleSearchPane
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.extension.test.po.SimpleSearchPane
-
public class SimpleSearchPane extends BaseElement
Represents the simple extension search form.- Since:
- 4.2M1
- Version:
- $Id: ac41531dfb75988b2f8cbe6da2cea35dac3a3027 $
-
-
Constructor Summary
Constructors Constructor Description SimpleSearchPane()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvancedSearchPane
clickAdvancedSearch()
Clicks on the 'Advanced search' link to open the advanced search pane.void
clickButton()
Click the simple search button.org.openqa.selenium.support.ui.Select
getRepositorySelect()
org.openqa.selenium.WebElement
getSearchInput()
void
hideMore()
Make sure advanced search options are hidden.SearchResultsPane
search(CharSequence keywords)
Searches for the extensions matching the given keywords.SearchResultsPane
selectRepository(String repositoryId)
Selects the specified extension repository and waits for the search results to update.void
setCompatible(boolean enabled)
void
setIndexed(boolean enabled)
void
setRecommended(boolean enabled)
void
showMore()
Make sure advanced search options are hidden.-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
getSearchInput
public org.openqa.selenium.WebElement getSearchInput()
- Returns:
- the text input used to specify the search keywords
-
getRepositorySelect
public org.openqa.selenium.support.ui.Select getRepositorySelect()
- Returns:
- the list box used to select the extension repository to search into
-
selectRepository
public SearchResultsPane selectRepository(String repositoryId)
Selects the specified extension repository and waits for the search results to update.- Parameters:
repositoryId
- the repository identifier- Returns:
- the search results pane
-
clickAdvancedSearch
public AdvancedSearchPane clickAdvancedSearch()
Clicks on the 'Advanced search' link to open the advanced search pane.- Returns:
- the advanced search form
-
showMore
public void showMore()
Make sure advanced search options are hidden.- Since:
- 13.3, 12.10.7
-
hideMore
public void hideMore()
Make sure advanced search options are hidden.- Since:
- 13.3, 12.10.7
-
search
public SearchResultsPane search(CharSequence keywords)
Searches for the extensions matching the given keywords.- Parameters:
keywords
- the keywords to search for- Returns:
- the search results pane
-
setRecommended
public void setRecommended(boolean enabled)
- Parameters:
enabled
- true if recommended extensions filter should be enabled- Since:
- 12.10
-
setIndexed
public void setIndexed(boolean enabled)
- Parameters:
enabled
- true if search should be based on the extensions index- Since:
- 12.10
-
setCompatible
public void setCompatible(boolean enabled)
- Parameters:
enabled
- true if compatible extensions filter should be enabled- Since:
- 12.10
-
clickButton
public void clickButton()
Click the simple search button.- Since:
- 12.10
-
-