Class Portlet
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.Portlet
public class Portlet extends Frame
Represents intance of Portlet within a dashboard
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DELETE
protected static PlatformLogger
LOG
protected Dashboard
parentDashboard
protected java.lang.String
portletName
static java.lang.String
PREFERENCES
static java.lang.String
REFRESH
static java.lang.String
RENAME
static java.lang.String
RESET
static java.lang.String
SAVE_FILTERS
static java.lang.String
SAVE_SORTING
Fields inherited from class com.onenetwork.platform.tools.test.ui.components.Frame
iframeEl, parentFrame
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
collapse()
Collapses the Portlet if its expandedvoid
delete()
Removes the Portlet from Dashboardvoid
editPreferences(java.lang.String... preferences)
Toggles all or one Preferences for Portletprotected void
editRenameField(java.lang.String name)
void
expand()
Expands the portlet if its collapsedGrid
getGrid()
Returns Grid Component of Portletjava.lang.String
getPortletName()
org.openqa.selenium.WebElement
getPreferencesPane()
Returns Preference Pane for PortletReport
getReport()
Returns the Report} in the Portlet, or throws aNoSuchElementException
if it wasn't found.boolean
isChartPresent()
Returns true if chart is present on the Portlet, false otherwiseboolean
isCollapsed()
Returns true if Portlet is in collapse state otherwise falsevoid
refresh()
Refreshes the portlet contentvoid
rename(java.lang.String name)
Renames the Portlet by using Options Menu Item - Renamevoid
renameByDoubleClick(java.lang.String name)
Renames the Portlet by double clicking on its namevoid
reset()
Resets all the preferences set to Portletvoid
selectOptionItem(java.lang.String itemOptionsMenu)
Select menu item from Options Menuvoid
setParentDashboard(Dashboard parentDashboard)
Methods 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, getGridByClass, getGrids, getLink, getMenu, getMessagePanel, getMessagePanelFlux, getNotificationCollaboration, getProbelmDetail, getProblemList, getReadOnlyFieldByLabelCC15, 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
-
portletName
protected java.lang.String portletName -
parentDashboard
-
RESET
public static final java.lang.String RESET- See Also:
- Constant Field Values
-
DELETE
public static final java.lang.String DELETE- See Also:
- Constant Field Values
-
PREFERENCES
public static final java.lang.String PREFERENCES- See Also:
- Constant Field Values
-
REFRESH
public static final java.lang.String REFRESH- See Also:
- Constant Field Values
-
RENAME
public static final java.lang.String RENAME- See Also:
- Constant Field Values
-
SAVE_FILTERS
public static final java.lang.String SAVE_FILTERS- See Also:
- Constant Field Values
-
SAVE_SORTING
public static final java.lang.String SAVE_SORTING- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
setParentDashboard
- Parameters:
parentDashboard
- - the parentDashboard to set
-
getPortletName
public java.lang.String getPortletName()- Returns:
- the portletName
-
isCollapsed
public boolean isCollapsed()Returns true if Portlet is in collapse state otherwise false- Returns:
- boolean
-
collapse
public void collapse()Collapses the Portlet if its expanded -
expand
public void expand()Expands the portlet if its collapsed -
refresh
public void refresh()Refreshes the portlet content -
rename
public void rename(java.lang.String name)Renames the Portlet by using Options Menu Item - Rename- Parameters:
name
- - new name for Portlet
-
renameByDoubleClick
public void renameByDoubleClick(java.lang.String name)Renames the Portlet by double clicking on its name- Parameters:
name
- - new name for Portlet
-
editRenameField
protected void editRenameField(java.lang.String name) -
delete
public void delete()Removes the Portlet from Dashboard -
reset
public void reset()Resets all the preferences set to Portlet -
selectOptionItem
public void selectOptionItem(java.lang.String itemOptionsMenu)Select menu item from Options Menu- Parameters:
itemOptionsMenu
- - RESET, DELETE, PREFERENCES, REFRESH, RENAME
-
editPreferences
public void editPreferences(java.lang.String... preferences)Toggles all or one Preferences for Portlet- Parameters:
preferences
- - SAVE_FILTERS, SAVE_SORTING
-
getPreferencesPane
public org.openqa.selenium.WebElement getPreferencesPane()Returns Preference Pane for Portlet- Returns:
- WebElement
-
getReport
Returns the Report} in the Portlet, or throws aNoSuchElementException
if it wasn't found. -
isChartPresent
public boolean isChartPresent()Returns true if chart is present on the Portlet, false otherwise- Returns:
- boolean
-
getGrid
Returns Grid Component of Portlet
-