org.xwiki.extension.test.po
Class SimpleSearchPane

java.lang.Object
  extended by org.xwiki.test.ui.po.BaseElement
      extended by org.xwiki.extension.test.po.SimpleSearchPane

public class SimpleSearchPane
extends BaseElement

Represents the simple extension search form.

Since:
4.2M1
Version:
$Id: f74107d5de2ddc75bcd1ac57f2767d4de1b3fc66 $

Constructor Summary
SimpleSearchPane()
           
 
Method Summary
 AdvancedSearchPane clickAdvancedSearch()
          Clicks on the 'Advanced search' link to open the advanced search pane.
 org.openqa.selenium.support.ui.Select getRepositorySelect()
           
 org.openqa.selenium.WebElement getSearchInput()
           
 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.
 
Methods inherited from class org.xwiki.test.ui.po.BaseElement
executeJavascript, getDriver, getUtil, makeAlertDialogSilent, makeConfirmDialogSilent, makeElementVisible, makeElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilElementDisappears, waitUntilElementEndsWithAttributeValue, waitUntilElementHasAttributeValue, waitUntilElementHasTextContent, waitUntilElementIsVisible, waitUntilElementsAreVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSearchPane

public SimpleSearchPane()
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

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


Copyright © 2004-2012 XWiki. All Rights Reserved.