Class NeoMenuSearch
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.NeoMenuSearch
public class NeoMenuSearch extends NeoContainer
This class represents the NeoMenuSearch component
used to perform Menu Search
-
Field Summary
Fields Modifier and Type Field Description static org.openqa.selenium.By
CLEAR_ICON
static java.lang.String
COMPONENT_NAME
static org.openqa.selenium.By
MENU_SLIDEOUT
protected NeoDesktop
neoDesktop
static org.openqa.selenium.By
SEARCH_BAR_TEXT_FIELD
protected org.openqa.selenium.WebElement
searchBarField
protected NeoTextField
searchBarTextField
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 NeoMenuSearch(NeoUIContext context)
NeoMenuSearch(NeoUIContext context, org.openqa.selenium.WebElement el)
-
Method Summary
Modifier and Type Method Description void
clearValueSearchBarField()
Used to clear the value of the search bar fieldorg.openqa.selenium.WebElement
getSearchBarField()
Returns search bar container elementNeoTextField
getSearchBarTextField()
Used to get the Neo menu search input text element to populate the value suppliedjava.util.ArrayList<java.lang.String>
getSearchedMenuList()
Used to get the result based on search input and return ArrayListjava.lang.String
getvalueSearchBarField()
Used to get the input value of the search bar fieldvoid
openPerspectiveUsingControls(java.lang.String menuName)
Performs the search on menu search bar and clicks on the expected resultvoid
setValueSearchBarField(java.lang.String inputValue)
Used to set the value of the search bar field input parameter inputValueMethods 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
-
searchBarTextField
-
searchBarField
protected org.openqa.selenium.WebElement searchBarField -
neoDesktop
-
SEARCH_BAR_TEXT_FIELD
public static final org.openqa.selenium.By SEARCH_BAR_TEXT_FIELD -
CLEAR_ICON
public static final org.openqa.selenium.By CLEAR_ICON -
MENU_SLIDEOUT
public static final org.openqa.selenium.By MENU_SLIDEOUT
-
-
Constructor Details
-
NeoMenuSearch
- Parameters:
context
-element
-
-
NeoMenuSearch
-
-
Method Details
-
getSearchBarField
public org.openqa.selenium.WebElement getSearchBarField()Returns search bar container element -
getSearchBarTextField
Used to get the Neo menu search input text element to populate the value supplied- Returns:
NeoTextField
-
setValueSearchBarField
public void setValueSearchBarField(java.lang.String inputValue)Used to set the value of the search bar field input parameter inputValue- Parameters:
inputValue
-
-
getvalueSearchBarField
public java.lang.String getvalueSearchBarField()Used to get the input value of the search bar field -
clearValueSearchBarField
public void clearValueSearchBarField()Used to clear the value of the search bar field -
getSearchedMenuList
public java.util.ArrayList<java.lang.String> getSearchedMenuList()Used to get the result based on search input and return ArrayList -
openPerspectiveUsingControls
public void openPerspectiveUsingControls(java.lang.String menuName)Performs the search on menu search bar and clicks on the expected result- Parameters:
menuName
-
-