Class Dashboard


public class Dashboard
extends Frame
Represents an instance of a Dashboard.
  • Field Details

  • Constructor Details

  • Method Details

    • getColumns

      public java.util.List<org.openqa.selenium.WebElement> getColumns()
      Returns list of columns available on dashboard
      Returns:
      the columns
    • addPortlet

      public void addPortlet​(java.lang.String... portletlist)
      Adds multiple portlets at once to Dashboard.
      Parameters:
      portletlist - - Comma separated list of portlet names
    • resetAll

      public void resetAll()
      Removes all the existing portlets from dashboard
    • customizeLayout

      public void customizeLayout​(int customizationType)
      Layouts portlets on Dashboard as per customizationType
      Parameters:
      customizationType - - TWO_COLUMNS_LAYOUT = 0, TWO_COLUMNS_FILL_LEFT_LAYOUT = 1, TWO_COLUMNS_FILL_RIGHT_LAYOUT = 2, THREE_COLUMNS_LAYOUT = 3
    • selectOptionItem

      public Window selectOptionItem​(java.lang.String itemOptionsMenu)
      Select menu item from Options Menu
      Parameters:
      itemOptionsMenu - - ADD_PORTLET_OPTION, RESET_ALL_OPTION, CUSTOMIZE_LAYOUT_OPTION
    • getPortletByName

      public Portlet getPortletByName​(java.lang.String portletName)
      Returns portlet from Dashboard by name
      Parameters:
      portletName - - Name of portlet
      Returns:
      Portlet
    • getPortlets

      public java.util.List<Portlet> getPortlets()
      Returns list of portlets currently present on Dashbaord
      Returns:
      the portlets
    • getPortletIndex

      public int getPortletIndex​(java.lang.String portletName)
      Returns position of portlet on Dashboard (left-to-right and top-down) if present otherwise -1.
      Parameters:
      portletName - - Name of portlet
      Returns:
      index
    • getPortletByIndex

      public Portlet getPortletByIndex​(int index)
      Returns Portlet by its position on Dashboard (left-to-right and top-down).
      Returns:
      Portlet
    • removePortlet

      public boolean removePortlet​(Portlet portlet)
      Removes portlet from dashboard's portlet list when its being deleted
      Parameters:
      portlet - - Portlet being deleted
      Returns: