Class NeoDashboard


public class NeoDashboard
extends NeoFrame
This class represents the Dashboard container for the Neo UI.
  • Field Details

  • Constructor Details

    • NeoDashboard

      public NeoDashboard​(NeoUIContext context, org.openqa.selenium.WebElement iframeEl)
      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

      public NeoWidget getNeoWidgetByName​(java.lang.String widgetName)
      Takes in the widget name as an input parameter, constructs an instance of that widget NeoWidget and returns this instance
      Parameters:
      widgetName -
      Returns:
    • getNeoWidgets

      public java.util.List<NeoWidget> getNeoWidgets()
      Returns a list of all the NeoWidget currently present in the dashboard
      Returns: