Class NeoDashboard
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.NeoFrame
com.onenetwork.platform.tools.test.ui.neo.components.NeoDashboard
public class NeoDashboard extends NeoFrame
This class represents the Dashboard container for
the Neo UI.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoFrame
iframeEl, parentFrame
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 NeoDashboard(NeoUIContext context, org.openqa.selenium.WebElement iframeEl)
Constructor to create the instance for the NeoDashboard. -
Method Summary
Modifier and Type Method Description void
cancelDashboardChanges()
This method cancels the changes made in the dashboard while dashboard is in edit modevoid
editDashboard()
This method clicks the edit button present on top of the Neo Dashboard UI, and waits for all the Loading masks to disappear.NeoWidget
getNeoWidgetByName(java.lang.String widgetName)
Takes in the widget name as an input parameter, constructs an instance of that widgetNeoWidget
and returns this instancejava.util.List<NeoWidget>
getNeoWidgets()
Returns a list of all theNeoWidget
currently present in the dashboardvoid
initWidgets()
Initializes all the widgets on the screenboolean
isEditMode()
void
revertDashboardChanges()
This method clicks the revert changes button present on top of the Neo Dashboard UI, and waits for all the Loading masks to disappear.void
saveDashboard()
This method clicks the save button present on top of the Neo Dashboard UI, and waits for all the Loading masks to disappear.void
setEditMode(boolean isEditMode)
Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoFrame
getDriver, getIFrameEl, getSearchContext, getUIContext, switchDriver
Methods 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, getWindow, isRequired, openFilterPanel
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
-
-
Constructor Details
-
NeoDashboard
Constructor to create the instance for the NeoDashboard. Initializes all the widgets on the screen after a substantial wait- Parameters:
context
-iframeEl
-
-
-
Method Details
-
isEditMode
public boolean isEditMode()- Returns:
- the isEditMode
-
setEditMode
public void setEditMode(boolean isEditMode)- Parameters:
isEditMode
- the isEditMode to set
-
initWidgets
public void initWidgets()Initializes all the widgets on the screen -
editDashboard
public void editDashboard()This method clicks the edit button present on top of the Neo Dashboard UI, and waits for all the Loading masks to disappear. This method also switches the driver to the current dashboard and sets the edit mode as true -
saveDashboard
public void saveDashboard()This method clicks the save button present on top of the Neo Dashboard UI, and waits for all the Loading masks to disappear. This method also switches the driver to the current dashboard and sets the edit mode as false -
revertDashboardChanges
public void revertDashboardChanges()This method clicks the revert changes button present on top of the Neo Dashboard UI, and waits for all the Loading masks to disappear. This method also switches the driver to the current dashboard and sets the edit mode as false -
cancelDashboardChanges
public void cancelDashboardChanges()This method cancels the changes made in the dashboard while dashboard is in edit mode -
getNeoWidgetByName
Takes in the widget name as an input parameter, constructs an instance of that widgetNeoWidget
and returns this instance- Parameters:
widgetName
-- Returns:
-
getNeoWidgets
Returns a list of all theNeoWidget
currently present in the dashboard- Returns:
-