Class NeoGlobalSidebar
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.NeoGlobalSidebar
public class NeoGlobalSidebar extends NeoContainer
Represents an instance of the Global sidebar of the NEO UI
-
Field Summary
Fields Modifier and Type Field Description static org.openqa.selenium.By
ALERT_WIDGET_PATH
static java.lang.String
COMPONENT_NAME
static org.openqa.selenium.By
FAVORITES_PATH
static org.openqa.selenium.By
FREQUQNTLY_VISITED_PATH
static org.openqa.selenium.By
GLOBAL_SEARCH_CONTAINER
static org.openqa.selenium.By
GLOBAL_SEARCH_PATH
static org.openqa.selenium.By
MANAGE_FAVORITES
static org.openqa.selenium.By
MENU_FAV
static org.openqa.selenium.By
MENU_NAMES
protected NeoGlobalSearch
neoGlobalSearch
protected NeoMenuSearch
neoMenuSearch
static org.openqa.selenium.By
OPENED_SLIDEOUT
static org.openqa.selenium.By
PROBLEM_WIDGET_PATH
static org.openqa.selenium.By
QUICK_LINKS_PATH
static org.openqa.selenium.By
SEARCH_BAR_CONTAINER
static org.openqa.selenium.By
SIDEBAR_SWITCH
static org.openqa.selenium.By
SWITCH_TO_HOME
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 NeoGlobalSidebar(NeoUIContext context)
Default constructor to create an instance of NeoGlobalSidebar which can be used to perform different operations like openAlertWidget, perform global search etcNeoGlobalSidebar(NeoUIContext context, org.openqa.selenium.WebElement el)
Parameterized constructor to create an instance of NeoGlobalSidebar which can be used to perform different operations like openAlertWidget, perform global search etc -
Method Summary
Modifier and Type Method Description void
closeMenuSlideout()
Closes the Menu/Fav present on the Global Side barvoid
closePerpective(java.lang.String perspectiveName)
This method closes theNeoPerspective
from the list of opened perpective based on the name in the parametervoid
closeSlideout()
Closes currently opened Slideoutvoid
closeSlideoutUsingActions()
Closes currently opened Slideout using ActionsNeoAlertWidget
getNeoAlertWidget()
Opens the Alert widget present on the Global Side bar and returns the Alert Widget objectNeoProblemWidget
getNeoProblemWidget()
Opens the Problem widget present on the Global Side bar and returns the Alert Widget objectNeoGlobalSearch
globalSearch()
Returns an instance ofNeoGlobalSearch
component that can be used perform search tasks.void
manageFavorites()
Opens the Manage Favorites Screen and returns itsNeoPerspective
NeoMenuSearch
menuSearch()
Returns an instance ofNeoMenuSearch
component that can be used to perform menu search.void
openAlert(java.lang.String alertName, java.lang.String priority)
Opens the alert perspective based on the alert name and priority provided Please note the problem count must be non-zero.void
openFavorites(java.lang.String favoriteName)
Opens the favorite from a list of favorite menus based on the name of parameter passedvoid
openFrequentlyVisited(java.lang.String freqVisitedName)
Opens the Frequently visited Screens by the uservoid
openMenuSlideout()
Opens the Menu/Fav present on the Global Side barvoid
openPerspective(java.lang.String perspectiveName)
This method opens aNeoPerspective
from a list of open perspective based on the name passed in the parametervoid
openPerspectiveFromMenuUsingControl(java.lang.String... path)
void
openProblem(java.lang.String problemName, java.lang.String severity)
Opens the problem perspective based on the problem name and severity provided Please note the problem count must be non-zero.void
openQuickLinks(java.lang.String... quickLinkPath)
Opens the Quick Link from a list of Quick Links menus based on the name of parameter passedvoid
switchToHome()
Switches the active Perspective to the Home screen of the userMethods 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
-
MENU_FAV
public static final org.openqa.selenium.By MENU_FAV -
SIDEBAR_SWITCH
public static final org.openqa.selenium.By SIDEBAR_SWITCH -
FAVORITES_PATH
public static final org.openqa.selenium.By FAVORITES_PATH -
FREQUQNTLY_VISITED_PATH
public static final org.openqa.selenium.By FREQUQNTLY_VISITED_PATH -
QUICK_LINKS_PATH
public static final org.openqa.selenium.By QUICK_LINKS_PATH -
PROBLEM_WIDGET_PATH
public static final org.openqa.selenium.By PROBLEM_WIDGET_PATH -
ALERT_WIDGET_PATH
public static final org.openqa.selenium.By ALERT_WIDGET_PATH -
GLOBAL_SEARCH_PATH
public static final org.openqa.selenium.By GLOBAL_SEARCH_PATH -
MANAGE_FAVORITES
public static final org.openqa.selenium.By MANAGE_FAVORITES -
SWITCH_TO_HOME
public static final org.openqa.selenium.By SWITCH_TO_HOME -
MENU_NAMES
public static final org.openqa.selenium.By MENU_NAMES -
GLOBAL_SEARCH_CONTAINER
public static final org.openqa.selenium.By GLOBAL_SEARCH_CONTAINER -
SEARCH_BAR_CONTAINER
public static final org.openqa.selenium.By SEARCH_BAR_CONTAINER -
OPENED_SLIDEOUT
public static final org.openqa.selenium.By OPENED_SLIDEOUT -
neoGlobalSearch
-
neoMenuSearch
-
-
Constructor Details
-
NeoGlobalSidebar
Parameterized constructor to create an instance of NeoGlobalSidebar which can be used to perform different operations like openAlertWidget, perform global search etc- Parameters:
context
-el
-
-
NeoGlobalSidebar
Default constructor to create an instance of NeoGlobalSidebar which can be used to perform different operations like openAlertWidget, perform global search etc- Parameters:
context
-el
-
-
-
Method Details
-
switchToHome
public void switchToHome()Switches the active Perspective to the Home screen of the user -
manageFavorites
public void manageFavorites()Opens the Manage Favorites Screen and returns itsNeoPerspective
-
openFavorites
public void openFavorites(java.lang.String favoriteName)Opens the favorite from a list of favorite menus based on the name of parameter passed- Parameters:
favoriteName
-
-
openPerspective
public void openPerspective(java.lang.String perspectiveName)This method opens aNeoPerspective
from a list of open perspective based on the name passed in the parameter- Parameters:
perspectiveName
-
-
closePerpective
public void closePerpective(java.lang.String perspectiveName)This method closes theNeoPerspective
from the list of opened perpective based on the name in the parameter- Parameters:
perspectiveName
-
-
openFrequentlyVisited
public void openFrequentlyVisited(java.lang.String freqVisitedName)Opens the Frequently visited Screens by the user -
openQuickLinks
public void openQuickLinks(java.lang.String... quickLinkPath)Opens the Quick Link from a list of Quick Links menus based on the name of parameter passed- Parameters:
quickLinkPath
-
-
getNeoProblemWidget
Opens the Problem widget present on the Global Side bar and returns the Alert Widget object- Returns:
NeoProblemWidget
-
openProblem
public void openProblem(java.lang.String problemName, java.lang.String severity)Opens the problem perspective based on the problem name and severity provided Please note the problem count must be non-zero. zero valued elements are non-clickable- Parameters:
problemName
-severity
-
-
getNeoAlertWidget
Opens the Alert widget present on the Global Side bar and returns the Alert Widget object- Returns:
NeoAlertWidget
-
openAlert
public void openAlert(java.lang.String alertName, java.lang.String priority)Opens the alert perspective based on the alert name and priority provided Please note the problem count must be non-zero. zero valued elements are non-clickable- Parameters:
alertName
-priority
-
-
globalSearch
Returns an instance ofNeoGlobalSearch
component that can be used perform search tasks. Currently containsNeoTextField
TODO add combo fields and check boxes functionality- Returns:
-
openPerspectiveFromMenuUsingControl
public void openPerspectiveFromMenuUsingControl(java.lang.String... path) -
menuSearch
Returns an instance ofNeoMenuSearch
component that can be used to perform menu search.- Returns:
NeoMenuSearch
-
openMenuSlideout
public void openMenuSlideout()Opens the Menu/Fav present on the Global Side bar -
closeMenuSlideout
public void closeMenuSlideout()Closes the Menu/Fav present on the Global Side bar -
closeSlideout
public void closeSlideout()Closes currently opened Slideout -
closeSlideoutUsingActions
public void closeSlideoutUsingActions()Closes currently opened Slideout using Actions
-