Class Dashboard
java.lang.Object
com.onenetwork.platform.tools.test.ui.components.Component
com.onenetwork.platform.tools.test.ui.components.Container
com.onenetwork.platform.tools.test.ui.components.Frame
com.onenetwork.platform.tools.test.ui.components.Dashboard
public class Dashboard extends Frame
Represents an instance of a Dashboard.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADD_PORTLET_OPTION
protected java.util.List<org.openqa.selenium.WebElement>
columns
static java.lang.String
CUSTOMIZE_LAYOUT_OPTION
static org.openqa.selenium.By
INNER_CLOUMN_CLASS
static org.openqa.selenium.By
LEFT_MOST_CLOUMN_CLASS
protected static PlatformLogger
LOG
protected Hyperlink
options
protected java.util.List<Portlet>
portlets
static java.lang.String
RESET_ALL_OPTION
static org.openqa.selenium.By
RIGHT_MOST_CLOUMN_CLASS
static int
THREE_COLUMNS_LAYOUT
static int
TWO_COLUMNS_FILL_LEFT_LAYOUT
static int
TWO_COLUMNS_FILL_RIGHT_LAYOUT
static int
TWO_COLUMNS_LAYOUT
Fields inherited from class com.onenetwork.platform.tools.test.ui.components.Frame
iframeEl, parentFrame
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addPortlet(java.lang.String... portletlist)
Adds multiple portlets at once to Dashboard.void
customizeLayout(int customizationType)
Layouts portlets on Dashboard as per customizationTypejava.util.List<org.openqa.selenium.WebElement>
getColumns()
Returns list of columns available on dashboardPortlet
getPortletByIndex(int index)
Returns Portlet by its position on Dashboard (left-to-right and top-down).Portlet
getPortletByName(java.lang.String portletName)
Returns portlet from Dashboard by nameint
getPortletIndex(java.lang.String portletName)
Returns position of portlet on Dashboard (left-to-right and top-down) if present otherwise -1.java.util.List<Portlet>
getPortlets()
Returns list of portlets currently present on Dashbaordboolean
removePortlet(Portlet portlet)
Removes portlet from dashboard's portlet list when its being deletedvoid
resetAll()
Removes all the existing portlets from dashboardWindow
selectOptionItem(java.lang.String itemOptionsMenu)
Select menu item from Options MenuMethods inherited from class com.onenetwork.platform.tools.test.ui.components.Frame
getDriver, getIFrameEl, getParentFrame, getSearchContext, getTLV, getUIContext, setParentFrame, switchDriver
Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Container
clickAction, clickAction, clickMenuItem, clickOneLogo, createFieldFromLabel, findXTypeFromInput, getActions, getActions, getButton, getCC1InnerTab, getComponent, getDashboard, getFieldByLabel, getFieldByLabelCC15, getFieldByLabelFlux, getFieldByLabelNew, getFieldByMultiLineLabel, getFieldByName, getFieldError, getFilterOverlayPanel, getFormPanel, getGrid, getGridByClass, getGrids, getLink, getMenu, getMessagePanel, getMessagePanelFlux, getNotificationCollaboration, getProbelmDetail, getProblemList, getReadOnlyFieldByLabelCC15, getReport, getReports, getSearchPageContext, getTabPanel, getTabPanelByClass, getTemplateDisplay, getTreePanel, getWindow, getWindows, getXTypeFromFormItem, getXTypeFromId, getXTypeFromLabel, isRequired, waitForSuccessMessage
Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Component
getEl, getId, isDisplayed, isRequired
-
Field Details
-
LOG
-
options
-
portlets
-
columns
protected java.util.List<org.openqa.selenium.WebElement> columns -
LEFT_MOST_CLOUMN_CLASS
public static org.openqa.selenium.By LEFT_MOST_CLOUMN_CLASS -
INNER_CLOUMN_CLASS
public static org.openqa.selenium.By INNER_CLOUMN_CLASS -
RIGHT_MOST_CLOUMN_CLASS
public static org.openqa.selenium.By RIGHT_MOST_CLOUMN_CLASS -
ADD_PORTLET_OPTION
public static final java.lang.String ADD_PORTLET_OPTION- See Also:
- Constant Field Values
-
RESET_ALL_OPTION
public static final java.lang.String RESET_ALL_OPTION- See Also:
- Constant Field Values
-
CUSTOMIZE_LAYOUT_OPTION
public static final java.lang.String CUSTOMIZE_LAYOUT_OPTION- See Also:
- Constant Field Values
-
TWO_COLUMNS_LAYOUT
public static final int TWO_COLUMNS_LAYOUT- See Also:
- Constant Field Values
-
TWO_COLUMNS_FILL_LEFT_LAYOUT
public static final int TWO_COLUMNS_FILL_LEFT_LAYOUT- See Also:
- Constant Field Values
-
TWO_COLUMNS_FILL_RIGHT_LAYOUT
public static final int TWO_COLUMNS_FILL_RIGHT_LAYOUT- See Also:
- Constant Field Values
-
THREE_COLUMNS_LAYOUT
public static final int THREE_COLUMNS_LAYOUT- See Also:
- Constant Field Values
-
-
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
Select menu item from Options Menu- Parameters:
itemOptionsMenu
- - ADD_PORTLET_OPTION, RESET_ALL_OPTION, CUSTOMIZE_LAYOUT_OPTION
-
getPortletByName
Returns portlet from Dashboard by name- Parameters:
portletName
- - Name of portlet- Returns:
- 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
Returns Portlet by its position on Dashboard (left-to-right and top-down).- Returns:
- Portlet
-
removePortlet
Removes portlet from dashboard's portlet list when its being deleted- Parameters:
portlet
- - Portlet being deleted- Returns:
-