Class NeoGlobalSearch
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoContainer
com.onenetwork.platform.tools.test.ui.neo.components.NeoGlobalSearch
public class NeoGlobalSearch extends NeoContainer
This class represents the NeoGlobalSearch popup widget that is
used to perform Global Search
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
protected NeoButton
globalSearchButton
protected org.openqa.selenium.WebElement
saveDefaultCheckbox
protected org.openqa.selenium.WebElement
searchBy
protected NeoTextField
searchText
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoContainer
ACTIVE_PERSPECTIVE
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoGlobalSearch(NeoUIContext context)
NeoGlobalSearch(NeoUIContext context, org.openqa.selenium.WebElement el)
-
Method Summary
Modifier and Type Method Description NeoComboField
getSearchByComponent()
Gets the searchBy field and wraps that field under NeoComboFieldNeoTextField
getSearchTextField()
Used to get the Neo global search input text element to populate the value suppliedvoid
performGlobalSearch()
Performs the Global Search by clicking the search button on the global search Widgetvoid
setFilters(java.lang.String filterLabel, java.lang.String... filterValues)
Sets the filter values for the supplied filter labelvoid
setSaveDefault(boolean setSaveDefault)
To check/uncheck the save as default checkboxvoid
setSearchBy(java.lang.String searchByValue)
sets the searchBy value by selecting the element that has the same value as input searchByValue parametervoid
setSearchTextField(java.lang.String searchTextValue)
Sets the value of the search field to the supplied input paramter searchTextValueMethods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoContainer
getAdvancedTable, getButton, getDashboard, getFieldByLabel, getFieldByLabel, getGrid, getGrids, getLink, getNeoMessagePanel, getNeoPivotTable, getNeoTabbedPane, getReport, getReports, getSearchContext, getWindow, isRequired, openFilterPanel, switchDriver
Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getEl, getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues, setValue
-
Field Details
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
searchText
-
saveDefaultCheckbox
protected org.openqa.selenium.WebElement saveDefaultCheckbox -
searchBy
protected org.openqa.selenium.WebElement searchBy -
globalSearchButton
-
-
Constructor Details
-
Method Details
-
getSearchTextField
Used to get the Neo global search input text element to populate the value supplied- Returns:
NeoTextField
-
setFilters
public void setFilters(java.lang.String filterLabel, java.lang.String... filterValues)Sets the filter values for the supplied filter label- Parameters:
filterLabel
-filterValues
-
-
setSearchBy
public void setSearchBy(java.lang.String searchByValue)sets the searchBy value by selecting the element that has the same value as input searchByValue parameter- Parameters:
searchByValue
-
-
getSearchByComponent
Gets the searchBy field and wraps that field under NeoComboField- Returns:
- NeoComboField
-
setSearchTextField
public void setSearchTextField(java.lang.String searchTextValue)Sets the value of the search field to the supplied input paramter searchTextValue- Parameters:
searchTextValue
-
-
setSaveDefault
public void setSaveDefault(boolean setSaveDefault)To check/uncheck the save as default checkbox- Parameters:
setSaveDefault
-
-
performGlobalSearch
public void performGlobalSearch()Performs the Global Search by clicking the search button on the global search Widget
-